equal
deleted
inserted
replaced
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; |