mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-31 05:28:33 +00:00
8234433: TestUnloadEventClassCount fails with "assert(SafepointSynchronize::is_at_safepoint()) failed: invariant"
Reviewed-by: pliden
This commit is contained in:
parent
6eedae02a7
commit
cebc2be1cb
@ -33,12 +33,11 @@
|
||||
#include "memory/resourceArea.hpp"
|
||||
#include "runtime/handles.inline.hpp"
|
||||
#include "runtime/mutexLocker.hpp"
|
||||
#include "runtime/safepoint.hpp"
|
||||
#include "runtime/thread.inline.hpp"
|
||||
#include "utilities/growableArray.hpp"
|
||||
#include "utilities/stack.inline.hpp"
|
||||
|
||||
// incremented during class unloading (safepoint) for each unloaded event class
|
||||
// incremented during class unloading for each unloaded event class
|
||||
static jlong unloaded_event_classes = 0;
|
||||
|
||||
jlong JfrEventClasses::unloaded_event_classes_count() {
|
||||
@ -46,8 +45,7 @@ jlong JfrEventClasses::unloaded_event_classes_count() {
|
||||
}
|
||||
|
||||
void JfrEventClasses::increment_unloaded_event_class() {
|
||||
// incremented during class unloading (safepoint) for each unloaded event class
|
||||
assert(SafepointSynchronize::is_at_safepoint(), "invariant");
|
||||
assert_locked_or_safepoint(ClassLoaderDataGraph_lock);
|
||||
++unloaded_event_classes;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user