8206254: Unable to complete emergency dump during safepoint
Reviewed-by: egahlin
This commit is contained in:
parent
7cefb320e9
commit
84d23a1596
@ -148,9 +148,8 @@ void JfrTypeManager::write_safepoint_types(JfrCheckpointWriter& writer) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void JfrTypeManager::write_type_set() {
|
void JfrTypeManager::write_type_set() {
|
||||||
assert(!SafepointSynchronize::is_at_safepoint(), "invariant");
|
|
||||||
// can safepoint here because of Module_lock
|
// can safepoint here because of Module_lock
|
||||||
MutexLockerEx lock(Module_lock);
|
MutexLockerEx lock(SafepointSynchronize::is_at_safepoint() ? NULL : Module_lock);
|
||||||
JfrCheckpointWriter writer(true, true, Thread::current());
|
JfrCheckpointWriter writer(true, true, Thread::current());
|
||||||
TypeSet set;
|
TypeSet set;
|
||||||
set.serialize(writer);
|
set.serialize(writer);
|
||||||
|
Loading…
Reference in New Issue
Block a user