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

Remove dead code LowMemoryDetectorDisabler

    XMLWordPrintable

Details

    • svc
    • b23

    Description

      diff --git a/src/hotspot/share/services/lowMemoryDetector.hpp b/src/hotspot/share/services/lowMemoryDetector.hpp
      index 83c4e026d04..3a501a1e2ba 100644
      --- a/src/hotspot/share/services/lowMemoryDetector.hpp
      +++ b/src/hotspot/share/services/lowMemoryDetector.hpp
      @@ -1,5 +1,5 @@
       /*
      - * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
      + * Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
        * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
        *
        * This code is free software; you can redistribute it and/or modify it
      @@ -211,7 +211,6 @@ public:
       };
       
       class LowMemoryDetector : public AllStatic {
      - friend class LowMemoryDetectorDisabler;
         friend class ServiceThread;
         friend class NotificationThread;
       private:
      @@ -276,17 +275,4 @@ public:
         }
       };
       
      -class LowMemoryDetectorDisabler: public StackObj {
      -public:
      - LowMemoryDetectorDisabler()
      - {
      - LowMemoryDetector::disable();
      - }
      - ~LowMemoryDetectorDisabler()
      - {
      - assert(LowMemoryDetector::temporary_disabled(), "should be disabled!");
      - LowMemoryDetector::enable();
      - }
      -};
      -
       #endif // SHARE_SERVICES_LOWMEMORYDETECTOR_HPP

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: