Cleanup name handling in the Thread class and subclasses

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 18
    • Affects Version/s: 18
    • Component/s: hotspot
    • b04

      We can simplify and cleanup up name() management

      - make name() return "const char *" and only cast away constness at API boundaries when essential
      - add type_name() so that we can avoid code like "if (t->is_VM_Thread()) print("VMThread");
      - Rename JavaThread::get_thread_name() to name() (no need for the extra indirection)
      - avoid need for special handling of NamedThread

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

              Created:
              Updated:
              Resolved: