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

is_Worker_thread is poorly named

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Not an Issue
    • P4
    • None
    • 18
    • hotspot
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: