Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4677213

compiled method fails to register method exit w/JVMPI on uncaught exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.2
    • 1.4.1
    • hotspot
    • None
    • mantis
    • generic
    • solaris
    • Verified

      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 <###@###.###>

      ======================================================================

            rasbold Chuck Rasbold
            rasbold Chuck Rasbold
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: