summaryrefslogtreecommitdiff
path: root/src/test/java/org/javacs/BenchmarkPruner.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/org/javacs/BenchmarkPruner.java')
-rw-r--r--src/test/java/org/javacs/BenchmarkPruner.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/org/javacs/BenchmarkPruner.java b/src/test/java/org/javacs/BenchmarkPruner.java
index a44d687..16c0c4c 100644
--- a/src/test/java/org/javacs/BenchmarkPruner.java
+++ b/src/test/java/org/javacs/BenchmarkPruner.java
@@ -51,12 +51,12 @@ public class BenchmarkPruner {
@Benchmark
public void pruned(CompilerState state) {
- state.compiler.compileBatch(List.of(state.pruned));
+ state.compiler.compileBatch(List.of(state.pruned)).close();
}
@Benchmark
public void plain(CompilerState state) {
- state.compiler.compileBatch(List.of(state.file));
+ state.compiler.compileBatch(List.of(state.file)).close();
}
private static final Logger LOG = Logger.getLogger("main");