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

JVMPI_EVENT_INSTRUCTION_START is never dispatched since JDK1.5.0-b15

    XMLWordPrintable

Details

    • tiger
    • generic
    • generic
    • Verified

    Description



      Name: kbR10066 Date: 09/29/2003


      Starting from build JDK1.5.0-b15, JVMPI implementation does not dispatch
      JVMPI_EVENT_INSTRUCTION_START event, even if
        * -Xint and -XX:+EnableJVMPIInstructionStartEvent JVM switches are specified
        * either JVMPI_VERSION_1_1 or JVMPI_VERSION_1_2 is used by the agent

      This breaks such tool as JCov, regularly used by a number of QA teams to measure
      JDK classes code coverage.

      To reproduce, store the attachments (makefile, simple agent source, simple Java app source)
      in some <DIR>, tune paths in the Makefile, then run

      % cd <DIR>; gnumake run

      This will produce the following output:
      --- output start ---
      *** JVMPI version used: JVMPI_VERSION_1_2
      *** event: JVMPI_EVENT_JVM_INIT_DONE
      Hello world!
      *** event: JVMPI_EVENT_JVM_SHUT_DOWN
      *** Test failed: JVMPI_EVENT_INSTRUCTION_START did not occur!
      --- output end ---
      Then change the JDK_BUILD_NUM macro to "b14" - the test will then pass.

      OS/hardware used:
      % uname -a
      SunOS novo3 5.8 Generic_108528-19 sun4u sparc SUNW,Ultra-2
      ======================================================================

      Name: pvR10198 Date: 10/12/2003


      The test was adopted into testbase_nsk.v15r23 under the following name:

          nsk/jvmpi/events/instrstart001

      Pavel Vyssotski <###@###.###>

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

      Attachments

        Activity

          People

            dcubed Daniel Daugherty
            konstsunw Konst Konst (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: