United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7101843 JSR 292: hprof doesn't work with invokedynamic class files
7101843 : JSR 292: hprof doesn't work with invokedynamic class files

Details
Type:
Bug
Submit Date:
2011-10-17
Status:
Closed
Updated Date:
2012-05-21
Project Name:
JDK
Resolved Date:
2012-05-21
Component:
tools
OS:
solaris_10
Sub-Component:
hprof
CPU:
x86
Priority:
P3
Resolution:
Duplicate
Affected Versions:
7
Fixed Versions:
7u6

Related Reports
Duplicate:

Sub Tasks

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

                                    

Comments



Hardware and Software, Engineered to Work Together