JDK-7092278 : "jmap -finalizerinfo" throws "sun.jvm.hotspot.utilities.AssertionFailure: invalid cp index 0 137"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc
  • Affected Version: hs22,6u27
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-09-19
  • Updated: 2012-12-05
  • Resolved: 2011-11-28
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 JDK 8 Other
7u2Fixed 8Fixed hs22Fixed
Related Reports
Relates :  
Description
"jmap -finalizerinfo" stopped working on Solaris and Linux

Comments
EVALUATION http://hg.openjdk.java.net/hsx/hsx22/hotspot/rev/34d69affce86
13-10-2011

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/cb315dc80374
29-09-2011

EVALUATION This is a bug in the changes for 7086585. diff -r 35c656d0b685 agent/src/share/classes/sun/jvm/hotspot/oops/InstanceKlass.java --- a/agent/src/share/classes/sun/jvm/hotspot/oops/InstanceKlass.java +++ b/agent/src/share/classes/sun/jvm/hotspot/oops/InstanceKlass.java @@ -557,7 +557,7 @@ /** Field access by name. */ public Field findLocalField(Symbol name, Symbol sig) { TypeArray fields = getFields(); - int length = (int) fields.getLength(); + int length = (int) javaFieldsCount(); ConstantPool cp = getConstants(); for (int i = 0; i < length; i++) { Symbol f_name = getFieldName(i);
19-09-2011