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

Remove unused code in objectMonitor.hpp

XMLWordPrintable

    • b129
    • generic
    • generic

      The following fields and methods are currently unused in objectMonitor.hpp, probably a remnant from an older spin lock implementation:

        volatile int _SpinFreq; // Spin 1-out-of-N attempts: success rate
        volatile int _SpinClock;
        volatile intptr_t _SpinState; // MCS/CLH list of spinners

      A set of methods defined for use in macroAssembler appear to be unused:

        static int FreeNext_offset_in_bytes() { return offset_of(ObjectMonitor, FreeNext); }
        static int WaitSet_offset_in_bytes() { return offset_of(ObjectMonitor, _WaitSet); }
        static int Responsible_offset_in_bytes() { return offset_of(ObjectMonitor, _Responsible); }
        static int Spinner_offset_in_bytes() { return offset_of(ObjectMonitor, _Spinner); }

      Additionally, these methods are declared but not defined:

        int TrySpin_Fixed(Thread * Self);
        int TrySpin_VaryFrequency(Thread * Self);

            dcubed Daniel Daugherty
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: