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

thread.hpp defines some enums but no reference

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b21
    • CPU:
      generic
    • OS:
      generic

      Description

      it seems that they are legacy code. eg.
        enum {
          jump_ring_buffer_size = 16
        }
      and this.
        enum {
          is_definitely_current_thread = true
        };

      Another trivial thing is that some member functions should declare const. eg.
        jlong allocated_bytes() { return _allocated_bytes; }
        bool is_suspendible_thread() { return _suspendible_thread; }


        Attachments

          Issue Links

            Activity

              People

              Assignee:
              xliu Xin Liu
              Reporter:
              xliu Xin Liu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: