jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1344748 - /jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/fs/FilePathDisk.java
Date Thu, 31 May 2012 14:36:07 GMT
Author: thomasm
Date: Thu May 31 14:36:06 2012
New Revision: 1344748

URL: http://svn.apache.org/viewvc?rev=1344748&view=rev
Log:
Remove unused code.

Modified:
    jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/fs/FilePathDisk.java

Modified: jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/fs/FilePathDisk.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/fs/FilePathDisk.java?rev=1344748&r1=1344747&r2=1344748&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/fs/FilePathDisk.java
(original)
+++ jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/fs/FilePathDisk.java
Thu May 31 14:36:06 2012
@@ -299,24 +299,6 @@ public class FilePathDisk extends FilePa
         return in;
     }
 
-    /**
-     * Call the garbage collection and run finalization. This close all files that
-     * were not closed, and are no longer referenced.
-     */
-    static void freeMemoryAndFinalize() {
-        Runtime rt = Runtime.getRuntime();
-        long mem = rt.freeMemory();
-        for (int i = 0; i < 16; i++) {
-            rt.gc();
-            long now = rt.freeMemory();
-            rt.runFinalization();
-            if (now == mem) {
-                break;
-            }
-            mem = now;
-        }
-    }
-
     @Override
     public FileChannel open(String mode) throws IOException {
         return new FileDisk(name, mode);



Mime
View raw message