Duplicate :
|
This problem is exposed by runtime/InternalApi/ThreadCpuTimesDeadlock.java test with ShenandoahGC. Thread list contains newly allocated/born thread, has yet made runnable, e.g. thread_id = 0. For this particular test, when it iterates through threads with ThreadTimesClosure, it may crash in pthread_getcpuclockid() call if the thread has thread_id = 0.
|