From: Sasa M. <sa...@us...> - 2004-09-28 09:01:46
|
Update of /cvsroot/jrobin/src/org/jrobin/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19466/org/jrobin/core Modified Files: RrdNioBackend.java Log Message: Minor changes Index: RrdNioBackend.java =================================================================== RCS file: /cvsroot/jrobin/src/org/jrobin/core/RrdNioBackend.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** RrdNioBackend.java 27 Sep 2004 14:32:13 -0000 1.16 --- RrdNioBackend.java 28 Sep 2004 09:01:31 -0000 1.17 *************** *** 52,68 **** */ public static final boolean SHOULD_GC = true; - private static final String NIO_CLOSING_THREAD_NAME = "RrdNioBackend closing thread"; - - static { - if(SHOULD_GC) { - final Runtime runtime = Runtime.getRuntime(); - runtime.addShutdownHook(new Thread(NIO_CLOSING_THREAD_NAME) { - public void run() { - runtime.runFinalization(); - runtime.gc(); - } - }); - } - } private static final Timer syncTimer = new Timer(true); --- 52,55 ---- |