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

enablev002 fails intermitently on SMP machines

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description



      Name: pvR10198 Date: 09/16/2003


      ---------------------------------------------------
      Test : nsk/jvmpi/EnableEvent/enablev002
      VM : all
      Mode : all
      Platform : generic (SMP machines)
      OS : generic
      JDK : 1.5.0, 1.4.0, 1.4.1, 1.4.2, 1.3.1
      ---------------------------------------------------

      The test exercises JVMPI function EnableEvent.
      Profiling agent enables events:
          JVMPI_EVENT_MONITOR_CONTENDED_ENTER
          JVMPI_EVENT_MONITOR_CONTENDED_ENTERED
          JVMPI_EVENT_MONITOR_CONTENDED_EXIT
          JVMPI_EVENT_MONITOR_DUMP
          JVMPI_EVENT_MONITOR_WAIT
          JVMPI_EVENT_MONITOR_WAITED
          JVMPI_EVENT_RAW_MONITOR_CONTENDED_ENTER
          JVMPI_EVENT_RAW_MONITOR_CONTENDED_ENTERED
          JVMPI_EVENT_RAW_MONITOR_CONTENDED_EXIT
      and checks if all they are sent after been enabled.

      The JVMPI spec says:

          "If the raw monitor is created with a name beginning with
          an underscore ('_'), then its monitor contention events are
          not sent to the profiler agent."

      so the test considers such raw monitor contention event as an error.

      The tests passes on single processor machines and fails intermitently
      on SMP machines.

      To reproduce the test failure run doit.sh script in
      /net/jano.sfbay/export/disk20/GammaBase/Bugs/<this bug number> directory:

          sh doit.sh <JAVA_HOME>

      Running the test outputs:

      $ sh doit.sh /export/ld59/java/dest/jdk1.5.0-b19/solaris-sparc
      java version "1.5.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b19)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b19, mixed mode)
      Error: JVMPI_EVENT_RAW_MONITOR_CONTENDED_EXIT for _access_lock monitor
      Error: JVMPI_EVENT_RAW_MONITOR_CONTENDED_ENTER for _access_lock monitor
      Error: JVMPI_EVENT_RAW_MONITOR_CONTENDED_ENTERED for _access_lock monitor
      Exit Code: 97 (9 iteration)
      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            vpnsunw Vpn Vpn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: