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

is_Worker_thread is poorly named

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 18
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc

      Description

      The name of is_Worker_thread suggests it might have something to do with GC work gangs, but it doesn't. Rather, it is true for NonJavaThread.

      The only code that uses is_Worker_thread is Shenandoah. and only in asserts. Some of those asserts seem to be confused because of the name, and are clearly tautological, e.g. asserting a thread is either a JavaThread or a Worker (i.e. NonJavaThread).

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: