< prev index next >
src/hotspot/share/runtime/serviceThread.cpp
Print this page
@@ -29,10 +29,11 @@
#include "runtime/javaCalls.hpp"
#include "runtime/serviceThread.hpp"
#include "runtime/mutexLocker.hpp"
#include "runtime/os.hpp"
#include "prims/jvmtiImpl.hpp"
+#include "prims/resolvedMethodTable.hpp"
#include "services/diagnosticArgument.hpp"
#include "services/diagnosticFramework.hpp"
#include "services/gcNotifier.hpp"
#include "services/lowMemoryDetector.hpp"
@@ -84,10 +85,11 @@
bool has_gc_notification_event = false;
bool has_dcmd_notification_event = false;
bool acs_notify = false;
bool stringtable_work = false;
bool symboltable_work = false;
+ bool resolved_method_table_work = false;
JvmtiDeferredEvent jvmti_event;
{
// Need state transition ThreadBlockInVM so that this thread
// will be handled by safepoint correctly when this thread is
// notified at a safepoint.
@@ -102,11 +104,12 @@
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()) &&
!(stringtable_work = StringTable::has_work()) &&
- !(symboltable_work = SymbolTable::has_work())) {
+ !(symboltable_work = SymbolTable::has_work()) &&
+ !(resolved_method_table_work = ResolvedMethodTable::has_work())) {
// 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);
}
@@ -136,10 +139,14 @@
}
if(has_dcmd_notification_event) {
DCmdFactory::send_notification(CHECK);
}
+
+ if (resolved_method_table_work) {
+ ResolvedMethodTable::unlink();
+ }
}
}
bool ServiceThread::is_service_thread(Thread* thread) {
return thread == _instance;
< prev index next >