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
- duplicates
-
JDK-7114166 GetThreadInfo doesn't return information for current thread if NULL passed as thread parameter
- Closed