Mercurial > hg > graal-jvmci-8
diff src/share/vm/memory/barrierSet.inline.hpp @ 845:df6caf649ff7
6700789: G1: Enable use of compressed oops with G1 heaps
Summary: Modifications to G1 so as to allow the use of compressed oops.
Reviewed-by: apetrusenko, coleenp, jmasa, kvn, never, phh, tonyp
author | ysr |
---|---|
date | Tue, 14 Jul 2009 15:40:39 -0700 |
parents | 1ee8caae33af |
children | 6aa7255741f3 |
line wrap: on
line diff
--- a/src/share/vm/memory/barrierSet.inline.hpp Fri Jul 10 16:01:20 2009 -0700 +++ b/src/share/vm/memory/barrierSet.inline.hpp Tue Jul 14 15:40:39 2009 -0700 @@ -23,10 +23,10 @@ */ // Inline functions of BarrierSet, which de-virtualize certain -// performance-critical calls when when the barrier is the most common +// performance-critical calls when the barrier is the most common // card-table kind. -void BarrierSet::write_ref_field_pre(void* field, oop new_val) { +template <class T> void BarrierSet::write_ref_field_pre(T* field, oop new_val) { if (kind() == CardTableModRef) { ((CardTableModRefBS*)this)->inline_write_ref_field_pre(field, new_val); } else {