< prev index next >

src/hotspot/share/services/lowMemoryDetector.hpp

Print this page

        

*** 57,67 **** // For Code cache, detection will be performed in the allocation // and deallocation. // // May need to deal with hysteresis effect. // ! // Memory detection code runs in the Service thread (serviceThread.hpp). class OopClosure; class MemoryPool; class ThresholdSupport : public CHeapObj<mtInternal> { --- 57,67 ---- // For Code cache, detection will be performed in the allocation // and deallocation. // // May need to deal with hysteresis effect. // ! // Memory detection code runs in the Notification thread (notificationThread.hpp). class OopClosure; class MemoryPool; class ThresholdSupport : public CHeapObj<mtInternal> {
*** 211,221 **** #endif // PRODUCT }; class LowMemoryDetector : public AllStatic { friend class LowMemoryDetectorDisabler; ! friend class ServiceThread; private: // true if any collected heap has low memory detection enabled static volatile bool _enabled_for_collected_pools; // > 0 if temporary disabed static volatile jint _disabled_count; --- 211,221 ---- #endif // PRODUCT }; class LowMemoryDetector : public AllStatic { friend class LowMemoryDetectorDisabler; ! friend class NotificationThread; private: // true if any collected heap has low memory detection enabled static volatile bool _enabled_for_collected_pools; // > 0 if temporary disabed static volatile jint _disabled_count;
< prev index next >