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

JVMPI: THREAD_START event is sent twice for main thread

XMLWordPrintable

    • kestrel
    • x86
    • windows_nt
    • Not verified



      Name: dkC59003 Date: 11/10/99



      When the test program is running profiling agent catches two
      JVMPI_EVENT_THREAD_START events which both indicate the start of the thread
      main. This is observed only if JVMPI_EVENT_JVM_INIT_DONE event is enabled
      in JVM_OnLoad function, otherwise main thread starts once.
      Classic VM passes the test (doit -classic).

      To reproduce the bug run doit.bat in
      GammaBase/Bugs/<this bug number>

      Running on HS 1.3fcs-O the test outputs:

      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-N)
      Java HotSpot(TM) Client VM (build 1.3-O, mixed mode)
      New thread Finalizer (7823484)
      New thread Reference Handler (7819532)
      New thread main (7805020)
      New thread Signal Dispatcher (7842732)
      New thread main (7805020)

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

            smitrovisunw Srdjan Mitrovic (Inactive)
            dkhukhrosunw Dmitry Khukhro (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: