When "rethrowing" an exception, C2 compiled code fails to notify jvmpi about method exit.
Fails on all platforms with hopper.
How to reproduce on sparc:
With attached HelloWorld.class, run:
$JAVA_HOME/bin/java -client -Xbatch -Xcomp -Xrunhprof:cpu=old HelloWorld
results in
HPROF ERROR: thread local table NULL in method exit fc720
HPROF ERROR: thread local table NULL in method exit fc720
HPROF ERROR: thread local table NULL in method exit fd3e0
HPROF ERROR : stack underflow in method exit
HPROF ERROR : stack underflow in method exit
Compare with C2 run:
$JAVA_HOME/bin/java -server -Xbatch -Xcomp -Xrunhprof:cpu=old HelloWorld
HPROF ERROR: thread local table NULL in method exit fc720
HPROF ERROR: thread local table NULL in method exit fc720
HPROF ERROR: thread local table NULL in method exit fd3e0
HPROF ERROR : stack underflow in method exit
HPROF ERROR : stack underflow in method exit
HPROF ERROR: method on stack top != method exiting..
HPROF ERROR: method on stack top != method exiting..
HPROF ERROR: method on stack top != method exiting..
HPROF ERROR: method on stack top != method exiting..
The additional "stack top != method" errors are indicative of the failure.
Using:
+PrintCompilation
CompileOnly=java/lang/ClassLoader.findBootstrapClass0,java/lang/ClassLoader.findBootstrapClass
-Inline
narrows the problem greatly.
Name: egR10015 Date: 09/23/2002
The following regression test:
nsk/hprof/regression/b4677213
has been developed to catch this bug.
The test belongs to testbase_nsk located at:
/net/sqesvr.sfbay/export/vsn/VM/testbase/testbase_nsk
Eugene Gorbachev <###@###.###>
======================================================================
Fails on all platforms with hopper.
How to reproduce on sparc:
With attached HelloWorld.class, run:
$JAVA_HOME/bin/java -client -Xbatch -Xcomp -Xrunhprof:cpu=old HelloWorld
results in
HPROF ERROR: thread local table NULL in method exit fc720
HPROF ERROR: thread local table NULL in method exit fc720
HPROF ERROR: thread local table NULL in method exit fd3e0
HPROF ERROR : stack underflow in method exit
HPROF ERROR : stack underflow in method exit
Compare with C2 run:
$JAVA_HOME/bin/java -server -Xbatch -Xcomp -Xrunhprof:cpu=old HelloWorld
HPROF ERROR: thread local table NULL in method exit fc720
HPROF ERROR: thread local table NULL in method exit fc720
HPROF ERROR: thread local table NULL in method exit fd3e0
HPROF ERROR : stack underflow in method exit
HPROF ERROR : stack underflow in method exit
HPROF ERROR: method on stack top != method exiting..
HPROF ERROR: method on stack top != method exiting..
HPROF ERROR: method on stack top != method exiting..
HPROF ERROR: method on stack top != method exiting..
The additional "stack top != method" errors are indicative of the failure.
Using:
+PrintCompilation
CompileOnly=java/lang/ClassLoader.findBootstrapClass0,java/lang/ClassLoader.findBootstrapClass
-Inline
narrows the problem greatly.
Name: egR10015 Date: 09/23/2002
The following regression test:
nsk/hprof/regression/b4677213
has been developed to catch this bug.
The test belongs to testbase_nsk located at:
/net/sqesvr.sfbay/export/vsn/VM/testbase/testbase_nsk
Eugene Gorbachev <###@###.###>
======================================================================
- relates to
-
JDK-4662472 Intermittent crash on serverVM hopper b6 weekahead
-
- Resolved
-