8236691: JFR: assert((((((klass)->trace_id()) & ((JfrTraceIdEpoch::method_and_class_in_use_this_epoch_bits()))) != 0))) failed: invariant

Reviewed-by: mgronlun
This commit is contained in:
Erik Gahlin 2020-01-14 15:25:17 +01:00
parent 5ff1d72185
commit 6ee7f3734d

View File

@ -97,10 +97,10 @@ inline traceid JfrTraceId::use(const Klass* klass, const Method* method) {
if (METHOD_FLAG_NOT_USED_THIS_EPOCH(method)) {
SET_METHOD_AND_CLASS_USED_THIS_EPOCH(klass);
SET_METHOD_FLAG_USED_THIS_EPOCH(method);
assert(METHOD_AND_CLASS_USED_THIS_EPOCH(klass), "invariant");
assert(METHOD_FLAG_USED_THIS_EPOCH(method), "invariant");
JfrTraceIdEpoch::set_changed_tag_state();
}
assert(METHOD_AND_CLASS_USED_THIS_EPOCH(klass), "invariant");
assert(METHOD_FLAG_USED_THIS_EPOCH(method), "invariant");
return (METHOD_ID(klass, method));
}