JDK-6840152 : JVM crashes when heavyweight monitors are used
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: hs16,6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-05-12
  • 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 7 Other
7Fixed hs21Fixed
Related Reports
Duplicate :  
Description
There is crash when java is started with -XX:+UseHeavyMonitors and Specjbb2005 is executed.
The issue is NOT reproducible if -XX:-UseBiasedLocking is specified.

The crash is observed in all modes (-Xint, -Xmixed, -Xcomp).

Product jvm, -Xmixed crash is:
------------------------------
#  Internal Error (synchronizer.cpp:1802), pid=14673, tid=2943716240
#  Error: guarantee(mid->header()->is_neutral(),"invariant")

Fastdebug jvm, -Xmixed crash is:
--------------------------------
#  Internal Error (/BUILD_AREA/jdk7/hotspot/src/share/vm/runtime/synchronizer.cpp:1276), pid=16472, tid=2934336400
#  Error: assert(lock != mark->locker(),"must not re-lock the same lock")

Fastdebug jvm, -Xint, Xcomp crash is:
-------------------------------------
#  Internal Error (/BUILD_AREA/jdk7/hotspot/src/share/vm/runtime/synchronizer.cpp:1223), pid=17297, tid=4143336336
#  Error: assert(!object->mark()->has_bias_pattern(),"should not see bias pattern here")
#

Comments
EVALUATION Summary: Turn off biased locking if !UseFastLocking or UseHeavyMonitors options are requested. Reviewed-by: phh, never, dcubed, dholmes
17-02-2011

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/c08677f98289
17-02-2011

EVALUATION This UseHeavyWeightMonitors option doesn't call biased_locking_enter() and biased_locking_exit() is mostly useless. It only saves porting about 10 assembly instructions, but with biased locking doesn't save the 100 or so biased locking assembly instructions. It should be removed.
14-02-2011