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

thread.hpp defines some enums but no reference

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 17
    • 17
    • hotspot
    • b21
    • generic
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: