src/hotspot/share/jfr/recorder/checkpoint/types/traceid/jfrTraceId.cpp
changeset 59252 623722a6aeb9
parent 58863 c16ac7a2eba4
equal deleted inserted replaced
59251:4cbfa5077d68 59252:623722a6aeb9
    44   traceid compare_value;
    44   traceid compare_value;
    45   traceid exchange_value;
    45   traceid exchange_value;
    46   do {
    46   do {
    47     compare_value = *dest;
    47     compare_value = *dest;
    48     exchange_value = compare_value + 1;
    48     exchange_value = compare_value + 1;
    49   } while (Atomic::cmpxchg(exchange_value, dest, compare_value) != compare_value);
    49   } while (Atomic::cmpxchg(dest, compare_value, exchange_value) != compare_value);
    50   return exchange_value;
    50   return exchange_value;
    51 }
    51 }
    52 
    52 
    53 static traceid next_class_id() {
    53 static traceid next_class_id() {
    54   static volatile traceid class_id_counter = MaxJfrEventId + 100;
    54   static volatile traceid class_id_counter = MaxJfrEventId + 100;