JDK-6885297 : java -XX:RefDiscoveryPolicy=2 or -XX:TLABWasteTargetPercent=0 cause VM crash
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs17
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: x86
  • Submitted: 2009-09-24
  • 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
6u21Fixed 7Fixed hs17Fixed
The error should be reported without VM crashes.

Here is the output.
-->java -XX:RefDiscoveryPolicy=2
# A fatal error has been detected by the Java Runtime Environment:
#  Internal Error (referenceProcessor.cpp:94), pid=4141, tid=2
#  Error: guarantee(RefDiscoveryPolicy == ReferenceBasedDiscovery || RefDiscoveryPolicy == ReferentBasedDiscovery,"Unrecongnized RefDiscoveryPolicy")
# JRE version: 7.0-b72
# Java VM: Java HotSpot(TM) Server VM (17.0-b01 mixed mode solaris-x86 )
# An error report file with more information is saved as:
# /tmp/xx/hs_err_pid4141.log
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
Abort (core dumped)
Also -XX:TLABWasteTargetPercent=0 causes VM crash.

EVALUATION ChangeSet=http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/745c853ee57f,ChangeRequest=6885297

SUGGESTED FIX Perform a suitable interval range check for the two flags listed in the CR.

EVALUATION The two flags in this report have been given invalid out-of-range values on the command line. Was this part of a security audit?