From 6ee7f3734d6087e7bae8d42ef21eb59b2ca4cbe5 Mon Sep 17 00:00:00 2001 From: Erik Gahlin Date: Tue, 14 Jan 2020 15:25:17 +0100 Subject: [PATCH] 8236691: JFR: assert((((((klass)->trace_id()) & ((JfrTraceIdEpoch::method_and_class_in_use_this_epoch_bits()))) != 0))) failed: invariant Reviewed-by: mgronlun --- .../recorder/checkpoint/types/traceid/jfrTraceId.inline.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hotspot/share/jfr/recorder/checkpoint/types/traceid/jfrTraceId.inline.hpp b/src/hotspot/share/jfr/recorder/checkpoint/types/traceid/jfrTraceId.inline.hpp index 065e3c14c7..b036b29d84 100644 --- a/src/hotspot/share/jfr/recorder/checkpoint/types/traceid/jfrTraceId.inline.hpp +++ b/src/hotspot/share/jfr/recorder/checkpoint/types/traceid/jfrTraceId.inline.hpp @@ -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)); }