--- old/src/hotspot/share/runtime/serviceThread.cpp 2018-02-20 13:59:59.181648323 +0100 +++ new/src/hotspot/share/runtime/serviceThread.cpp 2018-02-20 13:59:58.881636565 +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); - } } }