Mercurial > hg > graal-compiler
changeset 12731:8e862906e2e4
removed hash code from name of SnippetTemplate metrics (blows up DebugValueMaps when template caching is disabled)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 08 Nov 2013 18:07:38 +0100 |
parents | 3e88ee655612 |
children | 8212479436e0 |
files | graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/SnippetTemplate.java |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/SnippetTemplate.java Fri Nov 08 16:14:16 2013 +0100 +++ b/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/SnippetTemplate.java Fri Nov 08 18:07:38 2013 +0100 @@ -427,7 +427,7 @@ return false; } - private static String debugValueName(SnippetTemplate template, String category, Arguments args) { + private static String debugValueName(String category, Arguments args) { if (Debug.isEnabled()) { StringBuilder result = new StringBuilder(category).append('['); SnippetInfo info = args.info; @@ -445,7 +445,7 @@ sep = ", "; } } - result.append(")]@").append(template.hashCode()); + result.append(")]"); return result.toString(); } @@ -458,8 +458,8 @@ protected SnippetTemplate(final Providers providers, Arguments args) { StructuredGraph snippetGraph = providers.getReplacements().getSnippet(args.info.method); SnippetGraphsNodeCount.add(snippetGraph.getNodeCount()); - instantiationTimer = Debug.timer(debugValueName(this, "SnippetTemplateInstantiationTime", args)); - instantiationCounter = Debug.metric(debugValueName(this, "SnippetTemplateInstantiationCount", args)); + instantiationTimer = Debug.timer(debugValueName("SnippetTemplateInstantiationTime", args)); + instantiationCounter = Debug.metric(debugValueName("SnippetTemplateInstantiationCount", args)); ResolvedJavaMethod method = snippetGraph.method(); Signature signature = method.getSignature();