--- old/src/utils/LogCompilation/src/com/sun/hotspot/tools/compiler/LogParser.java 2017-11-27 18:01:20.988648015 -0500 +++ new/src/utils/LogCompilation/src/com/sun/hotspot/tools/compiler/LogParser.java 2017-11-27 18:01:20.788638718 -0500 @@ -1025,13 +1025,20 @@ return; } try { + UncommonTrap unc = new UncommonTrap(Integer.parseInt(search(atts, "bci")), + search(atts, "reason"), + search(atts, "action"), + bytecodes[current_bytecode]); if (scopes.size() == 0) { - reportInternalError("scope underflow"); + // There may be a dangling site not yet in scopes after a late_inline + if (site != null) { + site.add(unc); + } else { + reportInternalError("scope underflow"); + } + } else { + scopes.peek().add(unc); } - scopes.peek().add(new UncommonTrap(Integer.parseInt(search(atts, "bci")), - search(atts, "reason"), - search(atts, "action"), - bytecodes[current_bytecode])); } catch (Error e) { e.printStackTrace(); }