Mercurial > hg > graal-jvmci-8
diff src/share/vm/memory/cardTableModRefBS.hpp @ 14909:4ca6dc0799b6
Backout jdk9 merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 01 Apr 2014 13:57:07 +0200 |
parents | d8041d695d19 |
children | 52b4284cb496 |
line wrap: on
line diff
--- a/src/share/vm/memory/cardTableModRefBS.hpp Tue Apr 01 14:09:03 2014 +0200 +++ b/src/share/vm/memory/cardTableModRefBS.hpp Tue Apr 01 13:57:07 2014 +0200 @@ -292,7 +292,7 @@ // these functions here for performance. protected: void write_ref_field_work(oop obj, size_t offset, oop newVal); - virtual void write_ref_field_work(void* field, oop newVal, bool release = false); + virtual void write_ref_field_work(void* field, oop newVal); public: bool has_write_ref_array_opt() { return true; } @@ -324,14 +324,9 @@ template <class T> inline void inline_write_ref_field_pre(T* field, oop newVal) {} - template <class T> inline void inline_write_ref_field(T* field, oop newVal, bool release) { + template <class T> inline void inline_write_ref_field(T* field, oop newVal) { jbyte* byte = byte_for((void*)field); - if (release) { - // Perform a releasing store if requested. - OrderAccess::release_store((volatile jbyte*) byte, dirty_card); - } else { - *byte = dirty_card; - } + *byte = dirty_card; } // These are used by G1, when it uses the card table as a temporary data