Changeset 595
- Timestamp:
- 11/12/08 08:18:17 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Mika/trunk/core-vm/java/wonka/vm/ProcessMonitor.java
r528 r595 53 53 */ 54 54 public void run() { 55 Runtime theRuntime = Runtime.getRuntime(); 55 56 try { 56 57 do { … … 86 87 info.finish(returnvalue); 87 88 } 89 if (theRuntime.freeMemory() < theRuntime.totalMemory() / 3) { 90 theRuntime.runFinalization(); 91 } 88 92 } else if (queue.isEmpty()){ 89 93 wait(10000); … … 100 104 thread = null; 101 105 } 102 Runtime.getRuntime().runFinalization();106 theRuntime.runFinalization(); 103 107 //System.out.println("ProcessMonitor.run() processes = "+processes); 104 108 }
