Example #1
0
 public static void stop() {
   ReferenceQueueDaemon.INSTANCE.stop();
   FinalizerDaemon.INSTANCE.stop();
   FinalizerWatchdogDaemon.INSTANCE.stop();
   HeapTrimmerDaemon.INSTANCE.stop();
   GCDaemon.INSTANCE.stop();
 }
Example #2
0
 // Invoked by the GC to request that the HeapTrimmerDaemon thread attempt to trim the heap.
 public static void requestHeapTrim() {
   synchronized (HeapTrimmerDaemon.INSTANCE) {
     HeapTrimmerDaemon.INSTANCE.notify();
   }
 }