bugfix: do not switch off standard memory strategy when performing a

forced GC
PLEASE CHECK if your peer has standard memory switched on!
pull/1/head
Michael Peter Christen 13 years ago
parent dd14b19c26
commit ea0dceb55d

@ -61,11 +61,12 @@ public class PerformanceMemory_p {
if (post.containsKey("gc")) {
System.gc();
prop.put("gc", "1");
} else {
MemoryControl.setSimulatedShortStatus(post.containsKey("simulatedshortmemory"));
final boolean std = post.containsKey("useStandardmemoryStrategy");
env.setConfig("memory.standardStrategy", std);
MemoryControl.setStandardStrategy(std);
}
MemoryControl.setSimulatedShortStatus(post.containsKey("simulatedshortmemory"));
final boolean std = post.containsKey("useStandardmemoryStrategy");
env.setConfig("memory.standardStrategy", std);
MemoryControl.setStandardStrategy(std);
}
prop.put("simulatedshortmemory.checked", MemoryControl.getSimulatedShortStatus() ? 1 : 0);

Loading…
Cancel
Save