src/hotspot/share/gc/g1/g1BarrierSet.inline.hpp
changeset 54110 f4f0dce5d0bb
parent 53244 9807daeb47c4
equal deleted inserted replaced
54109:debb15cc04ee 54110:f4f0dce5d0bb
    45   }
    45   }
    46 }
    46 }
    47 
    47 
    48 template <DecoratorSet decorators, typename T>
    48 template <DecoratorSet decorators, typename T>
    49 inline void G1BarrierSet::write_ref_field_post(T* field, oop new_val) {
    49 inline void G1BarrierSet::write_ref_field_post(T* field, oop new_val) {
    50   volatile jbyte* byte = _card_table->byte_for(field);
    50   volatile CardValue* byte = _card_table->byte_for(field);
    51   if (*byte != G1CardTable::g1_young_card_val()) {
    51   if (*byte != G1CardTable::g1_young_card_val()) {
    52     // Take a slow path for cards in old
    52     // Take a slow path for cards in old
    53     write_ref_field_post_slow(byte);
    53     write_ref_field_post_slow(byte);
    54   }
    54   }
    55 }
    55 }