src/hotspot/share/jfr/recorder/checkpoint/types/traceid/jfrTraceIdBits.inline.hpp
changeset 58966 6c6cce0f149d
parent 58836 31ec3e55fa3d
child 59252 623722a6aeb9
equal deleted inserted replaced
58965:86c8b22945a1 58966:6c6cce0f149d
    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 }