static long nextScheduledGC() { for (java.util.Timer timer : _registeredTimersOf(getJavaX())) { L entries = cast get(timer, 'entries); for (O entry : entries) { O task = get(entry, 'task); O runnable = getOpt(task, 'r); if (isString(runnable) && startsWith(runnable/S, "regularGC")) { long firstTime = getLong(entry, 'firstTime); long period = getLong(entry, 'period); long now = now(); long elapsed = mod(now-firstTime, period); ret now-elapsed+period; } } } ret 0; }
Began life as a copy of #1013403
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1013404 |
| Snippet name: | nextScheduledGC - returns in now() time |
| Eternal ID of this version: | #1013404/5 |
| Text MD5: | ed80c84e1cb7165022c21a5e71e169c5 |
| Author: | stefan |
| Category: | javax / monitoring |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-01-05 02:09:32 |
| Source code size: | 566 bytes / 17 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 635 / 694 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |