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

nsk/jvmti/MonitorContendedExit/mcontexit001 fails in -Xcomp mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 5.0
    • hotspot
    • generic
    • generic

      nsk/jvmti/MonitorContendedExit/mcontexit001 fails in -Xcomp mode since
      the putback of 4958828 to service_hs_baseline. It passes in -Xmixed mode.

      The failure arises because JvmtiExport::post_monitor_contended_exit
      attempts to create a Handle while there's a NoHandleMark setup.
      Further investigation highlights that the runtime routine used to
      call into the runtime from compiled code is a LEAF routine and that
      explains the NoHandleMark -- LEAF routines aren't suppose to throw
      exceptions, block or GC. So prior to 4958828 was just posting the
      event without the code knowing it has been callde from a leaf
      routine.

      This bug is submitted to track this issue. The changes in 4958828
      aren't really the issue but rather that we need to investigate how
      contended monitor exit events can be posted from compiled code.

      ###@###.### 2004-01-23

            dcubed Daniel Daugherty
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: