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

thread.hpp defines some enums but no reference

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 17
    • hotspot
    • b21
    • generic
    • generic

      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; }


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

              Created:
              Updated:
              Resolved: