private static void stopGC(){
  gcShouldLoop=false;
synchronized (LOCK) {
    LOCK.notify();
  }
}

private static void stopGC ( ) { gcShouldLoop = false ; synchronized ( LOCK ) { LOCK . notify ( ) ; } }
invoked from native code
