is_Worker_thread is poorly named

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: 18
    • Component/s: hotspot
    • gc

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

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

              Created:
              Updated:
              Resolved: