--- old/src/utils/LogCompilation/src/main/java/com/sun/hotspot/tools/compiler/CallSite.java 2017-12-04 11:31:18.348525677 -0500 +++ new/src/utils/LogCompilation/src/main/java/com/sun/hotspot/tools/compiler/CallSite.java 2017-12-04 11:31:18.076513105 -0500 @@ -105,6 +105,11 @@ private List traps; /** + * The name of the intrinsic at this call site. + */ + private String intrinsicName; + + /** * Default constructor: used to create an instance that represents the top * scope of a compilation. */ @@ -179,6 +184,7 @@ } else { stream.print(" @ " + getBci() + " " + m + " " + getReason()); } + stream.print(getIntrinsicOrEmptyString()); stream.printf(" (end time: %6.4f", getTimeStamp()); if (getEndNodes() > 0) { stream.printf(" nodes: %d live: %d", getEndNodes(), getEndLiveNodes()); @@ -368,4 +374,19 @@ public void setInlineId(long inlineId) { this.inlineId = inlineId; } + + public String getIntrinsicName() { + return intrinsicName; + } + + public void setIntrinsicName(String name) { + this.intrinsicName = name; + } + + public String getIntrinsicOrEmptyString() { + if (intrinsicName != null) { + return " (intrinsic: " + getIntrinsicName() + ")"; + } + return ""; + } } --- old/src/utils/LogCompilation/src/main/java/com/sun/hotspot/tools/compiler/LogParser.java 2017-12-04 11:31:18.872549895 -0500 +++ new/src/utils/LogCompilation/src/main/java/com/sun/hotspot/tools/compiler/LogParser.java 2017-12-04 11:31:18.656539912 -0500 @@ -975,6 +975,13 @@ // track of it but don't add it to the list yet. methodHandleSite = site; } + } else if (qname.equals("intrinsic")) { + String id = atts.getValue("id"); + assert id != null : "intrinsic id is null"; + CallSite cs = (site != null ) ? site : scopes.peek(); + assert cs != null : "no CallSite?"; + Method m = cs.getMethod(); + cs.setIntrinsicName(id); } else if (qname.equals("regalloc")) { compile.setAttempts(Integer.parseInt(search(atts, "attempts"))); } else if (qname.equals("inline_fail")) {