JDK-6986270 : guarantee(*bcp != Bytecodes::_monitorenter || exec_mode != Deoptimization::Unpack_exception) fails
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs20
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2010-09-21
  • Updated: 2011-03-08
  • Resolved: 2011-03-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 Other
6u25Fixed 7Fixed hs20Fixed
Description
A number of jck tests failed in nightly testing the DeoptimizeALot and TieredCompilation with:

#  Internal Error (/tmp/jprt/P1/B/235533.kvn/source/src/share/vm/runtime/vframeArray.cpp:184), pid=9123, tid=2
#  guarantee(*bcp != Bytecodes::_monitorenter || exec_mode != Deoptimization::Unpack_exception) failed: shouldn't get exception during monitorenter

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/fd5d4527cdf5
09-10-2010

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/fd5d4527cdf5
22-09-2010

EVALUATION This guarantee should hold true for C2 but is not necessarily true for C1. The fix would be to propagate the compiler type of the deopting method to vframeArrayElement::unpack_on_stack() and apply the guarantee only to c2-compiled methods.
21-09-2010