Skip to content

Commit 5b6487a

Browse files
committed
back to nofork, reduce memory to 2g, add clearInstances agains mem-leaking.
1 parent f5f29f5 commit 5b6487a

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

key.core.infflow/src/test/java/de/uka/ilkd/key/informationflow/InfFlowProofCollection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static ProofCollection automaticInfFlow() throws IOException {
3737
* perg = c.group("- one subprocess is created for each group
3838
* perFile-one subprocess is created for each file
3939
*/
40-
settings.setForkMode(ForkMode.PERGROUP);
40+
settings.setForkMode(ForkMode.NOFORK);
4141

4242
/*
4343
* Enable or disable proof reloading.
@@ -66,7 +66,7 @@ public static ProofCollection automaticInfFlow() throws IOException {
6666
*
6767
* Heap memory for subprocesses (like 500m or 2G)
6868
*/
69-
settings.setForkMemory("4g");
69+
settings.setForkMemory("2g");
7070

7171
/*
7272
* By default runAllProofs does not print a lot of information.

key.core/src/test/java/de/uka/ilkd/key/proof/runallproofs/RunAllProofsTestUnit.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import java.util.ArrayList;
1212
import java.util.List;
1313

14+
import com.github.javaparser.symbolsolver.javaparsermodel.JavaParserFacade;
1415
import de.uka.ilkd.key.proof.runallproofs.proofcollection.*;
1516

1617
import org.slf4j.Logger;
@@ -93,6 +94,9 @@ public TestResult runTest(JunitXmlWriter xml) throws Exception {
9394
for (TestFile testFile : testFiles) {
9495
TestResult testResult = testFile.runKey();
9596
testResults.add(testResult);
97+
98+
// weigl: avoid data memory leak
99+
JavaParserFacade.clearInstances();
96100
}
97101
}
98102
case PERFILE -> {

0 commit comments

Comments
 (0)