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

Fix for JDK-8212207 was incorrect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • tbd
    • 12
    • hotspot
    • None

      JDK-8212207 skipped NJT's until they had their stack size set, but the pthread_id may be set _after_ that:

      Thomas Stuefe writes:
      On Linux, pthread id is set in the parent thread, after pthread_create returns. Only the kernel thread id is set by the child (I find this duality confusing). thread_cpu_time uses pthread_id. So, on Linux, it may or may not be set before the thread stack boundaries are initialized, depending on whether the native entry function ran before the parent thread continued.

      ---

      So it is still possible to see a zero pthread_t for the new thread..


            dholmes David Holmes
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: