-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b23
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
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