--- a/src/hotspot/share/runtime/serviceThread.cpp Thu Feb 22 14:16:18 2018 +0100
+++ b/src/hotspot/share/runtime/serviceThread.cpp Fri Feb 23 09:38:33 2018 +0100
@@ -29,7 +29,6 @@
#include "runtime/mutexLocker.hpp"
#include "runtime/os.hpp"
#include "prims/jvmtiImpl.hpp"
-#include "services/allocationContextService.hpp"
#include "services/diagnosticArgument.hpp"
#include "services/diagnosticFramework.hpp"
#include "services/gcNotifier.hpp"
@@ -105,8 +104,7 @@
while (!(sensors_changed = LowMemoryDetector::has_pending_requests()) &&
!(has_jvmti_events = JvmtiDeferredEventQueue::has_events()) &&
!(has_gc_notification_event = GCNotifier::has_event()) &&
- !(has_dcmd_notification_event = DCmdFactory::has_pending_jmx_notification()) &&
- !(acs_notify = AllocationContextService::should_notify())) {
+ !(has_dcmd_notification_event = DCmdFactory::has_pending_jmx_notification())) {
// wait until one of the sensors has pending requests, or there is a
// pending JVMTI event or JMX GC notification to post
Service_lock->wait(Mutex::_no_safepoint_check_flag);
@@ -132,10 +130,6 @@
if(has_dcmd_notification_event) {
DCmdFactory::send_notification(CHECK);
}
-
- if (acs_notify) {
- AllocationContextService::notify(CHECK);
- }
}
}