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

JVMDI spec: RawMonitorExit returns JVMDI_ERROR_NOT_MONITOR_OWNER

XMLWordPrintable

    • beta
    • generic, sparc
    • generic, solaris_7
    • Verified



      Name: pvR10198 Date: 06/03/2002


      The Hotspot VM (build 1.4.1-beta-b13) fails the following test
      from testbase_nsk:

          nsk/jvmdi/RawMonitorExit/rawmonexit005

      The test exercises JVMDI function RawMonitorExit(monitor).
      The test checks if the function returns JVMDI_ERROR_NONE
      if the current thread doesn't own the monitor.

      The test is based on the following spec:

      | Raw Monitor Exit
      |
      | jvmdiError
      | RawMonitorExit(JVMDI_RawMonitor monitor)
      |
      | Release exclusive ownership of a raw monitor.
      |
      | Parameters:
      |
      | monitor
      | the monitor
      |
      | This function returns either a universal error or one of the following errors:
      |
      | JVMDI_ERROR_INVALID_MONITOR
      | Invalid monitor.

      I am sure this is a spec bug and the function should return
      JVMDI_ERROR_NOT_MONITOR_OWNER as implemented.

      To reproduce the bug run script in GammaBase/Bugs/<this bug number> directory:

          sh doit.sh <JAVA_HOME>

      Running the test outputs:

      java version "1.4.1-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b13)
      Java HotSpot(TM) Client VM (build 1.4.1-beta-b13, mixed mode)
      (RawMonitorExit) unexpected error: JVMDI_ERROR_NOT_MONITOR_OWNER (51)
      Exit Code: 97
      ======================================================================

            busersunw Btplusnull User (Inactive)
            vpnsunw Vpn Vpn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: