Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/memory/barrierSet.inline.hpp Thu Sep 04 18:40:43 2008 -0700 +++ b/src/share/vm/memory/barrierSet.inline.hpp Wed Sep 17 16:49:18 2008 +0400 @@ -26,6 +26,14 @@ // performance-critical calls when when the barrier is the most common // card-table kind. +void BarrierSet::write_ref_field_pre(void* field, oop new_val) { + if (kind() == CardTableModRef) { + ((CardTableModRefBS*)this)->inline_write_ref_field_pre(field, new_val); + } else { + write_ref_field_pre_work(field, new_val); + } +} + void BarrierSet::write_ref_field(void* field, oop new_val) { if (kind() == CardTableModRef) { ((CardTableModRefBS*)this)->inline_write_ref_field(field, new_val);