< prev index next >
src/hotspot/share/jfr/recorder/checkpoint/types/traceid/jfrTraceId.cpp
Print this page
@@ -44,11 +44,11 @@
traceid compare_value;
traceid exchange_value;
do {
compare_value = *dest;
exchange_value = compare_value + 1;
- } while (Atomic::cmpxchg(exchange_value, dest, compare_value) != compare_value);
+ } while (Atomic::cmpxchg(dest, compare_value, exchange_value) != compare_value);
return exchange_value;
}
static traceid next_class_id() {
static volatile traceid class_id_counter = MaxJfrEventId + 100;
< prev index next >