[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] [ernie/master 2/2] Call garbage collector manually after sanitizing a tarball.
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Thu, 8 Apr 2010 14:38:06 +0200
Subject: Call garbage collector manually after sanitizing a tarball.
Commit: 07e2f791ce259b6e3dd7a3775dfb47e21bb67887
---
src/BridgeSnapshotReader.java | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/BridgeSnapshotReader.java b/src/BridgeSnapshotReader.java
index f278b90..792b539 100644
--- a/src/BridgeSnapshotReader.java
+++ b/src/BridgeSnapshotReader.java
@@ -108,6 +108,10 @@ public class BridgeSnapshotReader {
}
}
in.close();
+
+ /* Let's give some memory back, or we'll run out of it. */
+ System.gc();
+
parsed.add(pop.getName());
modified = true;
} catch (IOException e) {
--
1.6.5