Update of /cvsroot/jrobin/src/org/jrobin/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11359/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.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** RrdNioBackend.java 14 Jul 2004 08:59:55 -0000 1.11
--- RrdNioBackend.java 15 Jul 2004 14:22:12 -0000 1.12
***************
*** 37,52 ****
*/
public class RrdNioBackend extends RrdFileBackend {
- /**
- * Defines if the <code>System.gc()</code> method should be executed when the backend is closed.
- * NIO backend uses large in-memory buffer to cache file data. The buffer remains 'active'
- * (by prohibiting file re-creation, for example) as long as it is not garbage collected.
- * By forcing <code>gc()</code> after the file is closed memory gets freed sooner and file
- * re-creation won't fail.<p>
- *
- * The constant is set to false initially and currently there is no API to change it
- * during runtime.<p>
- */
- public static final boolean SHOULD_GC_AFTER_CLOSE = false;
-
private static final Timer syncTimer = new Timer(true);
--- 37,40 ----
***************
*** 123,130 ****
// release the buffer, make it eligible for GC as soon as possible
byteBuffer = null;
- if(SHOULD_GC_AFTER_CLOSE) {
- // I am not happy with this, but it might be necessary in the future
- System.gc();
- }
}
--- 111,114 ----
|