Skip to content

Commit fdb02b8

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

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
@@ -13,6 +13,7 @@
1313

1414
import de.uka.ilkd.key.proof.runallproofs.proofcollection.*;
1515

16+
import com.github.javaparser.symbolsolver.javaparsermodel.JavaParserFacade;
1617
import org.slf4j.Logger;
1718
import org.slf4j.LoggerFactory;
1819

@@ -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)