src/hotspot/share/jfr/recorder/checkpoint/types/traceid/jfrTraceIdBits.inline.hpp
equal
deleted
inserted
replaced
38 static const int meta_offset = low_offset - 1; |
38 static const int meta_offset = low_offset - 1; |
39 #endif |
39 #endif |
40 |
40 |
41 inline void set_bits(jbyte bits, jbyte volatile* const dest) { |
41 inline void set_bits(jbyte bits, jbyte volatile* const dest) { |
42 assert(dest != NULL, "invariant"); |
42 assert(dest != NULL, "invariant"); |
43 if (bits != (*dest & bits)) { |
43 *dest |= bits; |
44 *dest |= bits; |
44 OrderAccess::storestore(); |
45 OrderAccess::storestore(); |
|
46 } |
|
47 } |
45 } |
48 |
46 |
49 inline jbyte traceid_and(jbyte current, jbyte bits) { |
47 inline jbyte traceid_and(jbyte current, jbyte bits) { |
50 return current & bits; |
48 return current & bits; |
51 } |
49 } |