JDK-8191511 : LogCompilation needs update for when AOT code is in use
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 10,11,12
  • Priority: P4
  • Status: Resolved
  • Resolution: Won't Fix
  • Submitted: 2017-11-17
  • Updated: 2020-11-05
  • Resolved: 2020-11-05
Related Reports
Relates :  
Description
I tried the LogCompilation tools while doing experiments with Graal and while AOT code was in use. I got some exceptions like below:

java.lang.Error: scope underflow at 57:115
	at com.sun.hotspot.tools.compiler.LogParser.reportInternalError(LogParser.j
...
java.lang.Error: nm == null at 87:72
	at com.sun.hotspot.tools.compiler.LogParser.reportInternalError(LogParser.java:589)
	
With AOT there are some differences in the log now to the model of how the LogCompilation models it, like uncommon traps for AOTed code etc.
Comments
AOT is removed in JDK 16.
05-11-2020

Thanks Eric!
06-12-2018

It was a long time ago and I forgot what I was working on at the time, but I attached what I think is the "hacky workarounds" mentioned above.
05-12-2018

[~ecaspole], could you please attach your workaround patch to this bug?
05-12-2018

ILW = exceptions with LogCompilation; with AOT, graal; no workaround = MLH = P4
22-11-2017

I made some hacky workarounds to get useful output to start with, hopefully I will make a webrev next week.
17-11-2017