static int regularGC_interval = 60000; // every minute static int regularGC_firstDelay = 20000; // clean up 20 seconds after loading VM static volatile java.util.Timer regularGC_timer; static int regularGC_countdown = -1; static void regularGC() { if (!_inCore()) call(javax, 'regularGC); lock generalLock(); if (regularGC_timer == null) regularGC_timer = doEvery_daemon(regularGC_interval, regularGC_firstDelay, f regularGC_doIt); } static void regularGC_doIt() { if (regularGC_countdown == 0) ret; else if (regularGC_countdown > 0) --regularGC_countdown; timedGCPlusDeadlockSolving(); }