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

JVMPI: can not enable INSTRUCTION_START event

XMLWordPrintable

    • kestrel
    • x86
    • windows_nt
    • Not verified



      Name: dkC59003 Date: 12/06/99



      The HotSpot 1.3fcs-P (internal build of 12/02) JVMPI function
      EnableEvent fails to enable JVMPI_EVENT_INSTRUCTION_START event, even
      when -XX:+EnableJVMPIInstructionStartEvent flag is passed.
      The function returns JVMPI_NOT_AVAILABLE value.
      This limits Jcov code coverage tool functionality: without the event
      enabled (generated) Jcov is not able to get block/branch coverage information.
      I guess the problem is caused by that jvmpi::initialize() function
      does not invoke disable_event for JVMPI_EVENT_INSTRUCTION_START event.

      To reproduce the bug run doit.bat <jdk root directory> in
      GammaBase/Bugs/<this bug number>
      VM flag can be given in the script's second parameter like this:
      doit.bat <jdk root directory> -XX:+EnableJVMPIInstructionStartEvent

      The test outputs:

      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-P)
      Java HotSpot(TM) Client VM (build 1.3-internal, mixed mode)
      Built on Dec 2 1999 11:42:24 by srdjan with "MS VC++ 6.0"
      VM option '+EnableJVMPIInstructionStartEvent'

      Can not enable JVMPI_EVENT_INSTRUCTION_START: 1

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

            rgriesemsunw Robert Griesemer (Inactive)
            dkhukhrosunw Dmitry Khukhro (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: