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

Cleanup name handling in the Thread class and subclasses

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 18
    • 18
    • 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

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

              Created:
              Updated:
              Resolved: