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

JVMTI: GetThreadInfo() doesn't work if passed thread is NULL

XMLWordPrintable

    • b44
    • generic, x86
    • generic, windows_xp


      FULL PRODUCT VERSION :
      java version "1.5.0_04"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
      Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [?????? 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      According to the JVMTI specification, GetThreadInfo() should accept NULL as its thread parameter, treating it as the current thread.

      Instead, it returns JVMTI_ERROR_INVALID_THREAD.

      See JvmtiEnv::GetThreadInfo(jthread thread, jvmtiThreadInfo* info_ptr) source code. Compare it with the source code of e.g. GetThreadLocalStorage(), that correctly handles NULL parameter.




      REPRODUCIBILITY :
      This bug can be reproduced always.
      ###@###.### 2005-07-05 15:01:21 GMT

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: