Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit 061ffc4

Browse files
author
Markus Grönlund
committedJan 18, 2021
8249245: assert(((((JfrTraceIdBits::load(klass)) & ((JfrTraceIdEpoch::this_epoch_method_and_class_bits()))) != 0))) failed: invariant
Reviewed-by: egahlin
1 parent e60c992 commit 061ffc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/hotspot/share/jfr/recorder/checkpoint/types/traceid/jfrTraceIdLoadBarrier.inline.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ inline traceid JfrTraceIdLoadBarrier::load(const Method* method) {
8383
inline traceid JfrTraceIdLoadBarrier::load(const Klass* klass, const Method* method) {
8484
assert(klass != NULL, "invariant");
8585
assert(method != NULL, "invariant");
86-
if (METHOD_FLAG_NOT_USED_THIS_EPOCH(method)) {
86+
if (should_tag(method)) {
8787
SET_METHOD_AND_CLASS_USED_THIS_EPOCH(klass);
8888
SET_METHOD_FLAG_USED_THIS_EPOCH(method);
8989
assert(METHOD_AND_CLASS_USED_THIS_EPOCH(klass), "invariant");
@@ -112,7 +112,7 @@ inline traceid JfrTraceIdLoadBarrier::load_leakp(const Klass* klass, const Metho
112112
assert(METHOD_AND_CLASS_USED_THIS_EPOCH(klass), "invariant");
113113
assert(method != NULL, "invariant");
114114
assert(klass == method->method_holder(), "invariant");
115-
if (METHOD_FLAG_NOT_USED_THIS_EPOCH(method)) {
115+
if (should_tag(method)) {
116116
// the method is already logically tagged, just like the klass,
117117
// but because of redefinition, the latest Method*
118118
// representation might not have a reified tag.

0 commit comments

Comments
 (0)
This repository has been archived.