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

remove dead code in commitLimitter

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 17
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b26

      Description

      diff --git a/src/hotspot/share/memory/metaspace/commitLimiter.hpp b/src/hotspot/share/memory/metaspace/commitLimiter.hpp
      index f9b6598127c..be54677237c 100644
      --- a/src/hotspot/share/memory/metaspace/commitLimiter.hpp
      +++ b/src/hotspot/share/memory/metaspace/commitLimiter.hpp
      @@ -72,7 +72,6 @@ public:
         void decrease_committed(size_t word_size) { _cnt.decrement_by(word_size); }

         size_t committed_words() const { return _cnt.get(); }
      - size_t cap() const { return _cap; }

         // Returns the global metaspace commit counter
         static CommitLimiter* globalLimiter();

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mli Hamlin Li
              Reporter:
              mli Hamlin Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: