Skip to content

Commit 4cec8df

Browse files
committed
Encoded snippets should use snippet debug context
1 parent c5cb475 commit 4cec8df

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/EncodedSnippets.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ static StructuredGraph decodeSnippetGraph(SymbolicEncodedGraph encodedGraph, Res
349349
nodePlugins = new NodePlugin[]{new SnippetCounterFoldingPlugin()};
350350
}
351351

352-
try (DebugContext debug = replacements.openDebugContext("LibGraal", method, options)) {
352+
try (DebugContext debug = replacements.openSnippetDebugContext("LibGraal", method, options)) {
353353
// @formatter:off
354354
boolean isSubstitution = true;
355355
StructuredGraph result = new StructuredGraph.Builder(options, debug, allowAssumptions)

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/SymbolicSnippetEncoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ private StructuredGraph buildGraph(ResolvedJavaMethod method, ResolvedJavaMethod
279279
// Dumps of the graph preparation step can be captured with -H:Dump=LibGraal:2 and
280280
// MethodFilter can be used to focus on particular snippets.
281281
IntrinsicContext.CompilationContext contextToUse = IntrinsicContext.CompilationContext.INLINE_AFTER_PARSING;
282-
try (DebugContext debug = snippetReplacements.openDebugContext("LibGraalBuildGraph_", method, options)) {
282+
try (DebugContext debug = snippetReplacements.openSnippetDebugContext("LibGraalBuildGraph_", method, options)) {
283283
StructuredGraph graph;
284284
try (DebugContext.Scope s = debug.scope("LibGraal", method)) {
285285
graph = snippetReplacements.makeGraph(debug, snippetReplacements.getDefaultReplacementBytecodeProvider(), method, args, nonNullParameters, original,

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/replacements/ReplacementsImpl.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,6 @@ public DebugContext openSnippetDebugContext(String idPrefix, ResolvedJavaMethod
272272
return openSnippetDebugContext(idPrefix, method, DebugContext.forCurrentThread(), options);
273273
}
274274

275-
public DebugContext openDebugContext(String idPrefix, ResolvedJavaMethod method, OptionValues options) {
276-
return openDebugContext(idPrefix, method, options, DebugContext.forCurrentThread(), false);
277-
}
278-
279275
private static final AtomicInteger nextDebugContextId = new AtomicInteger();
280276

281277
private DebugContext openDebugContext(String idPrefix, ResolvedJavaMethod method, OptionValues options, DebugContext outer, boolean disabled) {

0 commit comments

Comments
 (0)