--- old/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.microbenchmarks/src/org/graalvm/compiler/microbenchmarks/graal/GraphCopyBenchmark.java 2017-07-07 09:31:14.000000000 -0700 +++ new/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.microbenchmarks/src/org/graalvm/compiler/microbenchmarks/graal/GraphCopyBenchmark.java 2017-07-07 09:31:14.000000000 -0700 @@ -32,7 +32,7 @@ import org.graalvm.compiler.nodes.StructuredGraph; /** - * Benchmarks the performance of {@link Graph#copy()}. + * Benchmarks the performance of {@link Graph#copy(org.graalvm.compiler.debug.DebugContext)}. */ public class GraphCopyBenchmark extends GraalBenchmark { @@ -75,8 +75,8 @@ @Benchmark @Warmup(iterations = 20) - public StructuredGraph nullness(Nullness s, @SuppressWarnings("unused") GraalState g) { - return (StructuredGraph) s.graph.copy(); + public StructuredGraph nullness(Nullness s, GraalState g) { + return (StructuredGraph) s.graph.copy(g.debug); } @MethodSpec(declaringClass = GraphCopyBenchmark.class, name = "searchSnippet") @@ -127,7 +127,7 @@ @Benchmark @Warmup(iterations = 20) - public StructuredGraph search(Search s, @SuppressWarnings("unused") GraalState g) { - return (StructuredGraph) s.graph.copy(); + public StructuredGraph search(Search s, GraalState g) { + return (StructuredGraph) s.graph.copy(g.debug); } }