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

Fix for JDK-8212207 was incorrect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 12
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
      None

      Description

      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..


        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: