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

Remove the unused thread_type field from OSThread

XMLWordPrintable

    • master

      The thread_type field was introduced way back in May 2000 on Linux as it was needed for the newly started thread to determine whether it had to install (and later remove) an alternate signal stack. When we later stopped using alt-signal-stack (I'm going to guess this was when we switched from LinuxThreads to NPTL) the field was no longer used, but meanwhile we used the ThreadType enum to control initial stack sizes.

      Windows never had a thread_type field and BSD/AIX likely just blindly copied it from the Linux code.

      Attaching a thread never involved using alt-signal-stack so for attached threads it was left uninitialized.

            amitkumar Amit Kumar
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: