Mercurial > hg > truffle
comparison src/share/vm/memory/barrierSet.inline.hpp @ 362:f8199438385b
Merge
author | apetrusenko |
---|---|
date | Wed, 17 Sep 2008 16:49:18 +0400 |
parents | 1ee8caae33af |
children | df6caf649ff7 |
comparison
equal
deleted
inserted
replaced
316:5fa96a5a7e76 | 362:f8199438385b |
---|---|
24 | 24 |
25 // Inline functions of BarrierSet, which de-virtualize certain | 25 // Inline functions of BarrierSet, which de-virtualize certain |
26 // performance-critical calls when when the barrier is the most common | 26 // performance-critical calls when when the barrier is the most common |
27 // card-table kind. | 27 // card-table kind. |
28 | 28 |
29 void BarrierSet::write_ref_field_pre(void* field, oop new_val) { | |
30 if (kind() == CardTableModRef) { | |
31 ((CardTableModRefBS*)this)->inline_write_ref_field_pre(field, new_val); | |
32 } else { | |
33 write_ref_field_pre_work(field, new_val); | |
34 } | |
35 } | |
36 | |
29 void BarrierSet::write_ref_field(void* field, oop new_val) { | 37 void BarrierSet::write_ref_field(void* field, oop new_val) { |
30 if (kind() == CardTableModRef) { | 38 if (kind() == CardTableModRef) { |
31 ((CardTableModRefBS*)this)->inline_write_ref_field(field, new_val); | 39 ((CardTableModRefBS*)this)->inline_write_ref_field(field, new_val); |
32 } else { | 40 } else { |
33 write_ref_field_work(field, new_val); | 41 write_ref_field_work(field, new_val); |