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

GetThreadInfo doesn't return information for current thread if NULL passed as thread parameter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 5.0u34
    • hotspot
    • generic
    • generic

      Issue was found during testing of JDK 1.5.0_34 b01_j4b.
      Behavior of jvmti function GetThreadInfo doesn't corresponds to specification:
      http://download.oracle.com/javase/1.5.0/docs/guide/jvmti/jvmti.html#GetThreadInfo

      As it mentioned in specification, GetThreadInfo should returns information for current thread in case when NULL was passed as pointer to thread. But it returns JVMTI_ERROR_INVALID_THREAD error.

      Test nsk/jvmti/GetThreadInfo/thrinfo002 failed with next error:
      [2011-11-21T07:11:06.53] Error expected: JVMTI_ERROR_NONE,
      [2011-11-21T07:11:11.76] got: JVMTI_ERROR_INVALID_THREAD (10)

      Full log: http://vice.russia.sun.com/results/1.5.0_34/b01_j4b/vm/oel5.6-x86-32_nsk.jvmti.testlist_01/ResultDir/thrinfo002/thrinfo002.log

      Test also failed with JDK 1.5.0 FCS.
      Issue was not found earlier because failed test was not work as specified. It was updated during testbase backporting.

            Unassigned Unassigned
            fzhinkin Filipp Zhinkin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: