JDK-7101843 : JSR 292: hprof doesn't work with invokedynamic class files
  • Type: Bug
  • Component: tools
  • Sub-Component: hprof
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_10
  • CPU: x86
  • Submitted: 2011-10-17
  • Updated: 2012-05-21
  • Resolved: 2012-05-21
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
7u6Resolved
Related Reports
Duplicate :  
Description
hprof aborts when run with classes using the new 292 features.

FWIW, option 2 (hprof) seems like a no-show on u2b08:

headius@headius-vbox-ubuntu:~/projects/redblack$
JAVA_HOME=~/jdk1.7.0_02/ ../jruby/bin/jruby -X+C
-J-Xrunhprof:cpu=times bm1.rb 20
HPROF ERROR: Unknown constant
[../../../src/share/demo/jvmti/java_crw_demo/java_crw_demo.c:693]
[hprof_init.c:210]
HPROF TERMINATED PROCESS

So I'm stuck with sampling.

- Charlie

This should reproduce with any jruby test or one of the 292 tests from mlvm or the JCK ones.  Here's a simple command line which will show at least one issue.

/java/re/jdk/1.7.0/latest/binaries/solaris-amd64/bin/java -cp /java/re/jck/7/fcs/binaries/JCK-runtime-7/classes -Xrunhprof:cpu=times javasoft.sqe.tests.vm.instr.invokedynamic.invokedynamic001.invokedynamic00101m1.invokedynamic00101m1