8202083_CMS_cleanup_runtime
14 * You should have received a copy of the GNU General Public License version
15 * 2 along with this work; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17 *
18 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
19 * or visit www.oracle.com if you need additional information or have any
20 * questions.
21 *
22 */
23
24 #ifndef SHARE_VM_GC_SHARED_CARDTABLEBARRIERSET_INLINE_HPP
25 #define SHARE_VM_GC_SHARED_CARDTABLEBARRIERSET_INLINE_HPP
26
27 #include "gc/shared/cardTableBarrierSet.hpp"
28 #include "gc/shared/cardTable.hpp"
29 #include "runtime/orderAccess.inline.hpp"
30
31 template <DecoratorSet decorators, typename T>
32 inline void CardTableBarrierSet::write_ref_field_post(T* field, oop newVal) {
33 volatile jbyte* byte = _card_table->byte_for(field);
34 if (UseConcMarkSweepGC) {
35 // Perform a releasing store if using CMS so that it may
36 // scan and clear the cards concurrently during pre-cleaning.
37 OrderAccess::release_store(byte, CardTable::dirty_card_val());
38 } else {
39 *byte = CardTable::dirty_card_val();
40 }
41 }
42
43 #endif // SHARE_VM_GC_SHARED_CARDTABLEBARRIERSET_INLINE_HPP
|
14 * You should have received a copy of the GNU General Public License version
15 * 2 along with this work; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17 *
18 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
19 * or visit www.oracle.com if you need additional information or have any
20 * questions.
21 *
22 */
23
24 #ifndef SHARE_VM_GC_SHARED_CARDTABLEBARRIERSET_INLINE_HPP
25 #define SHARE_VM_GC_SHARED_CARDTABLEBARRIERSET_INLINE_HPP
26
27 #include "gc/shared/cardTableBarrierSet.hpp"
28 #include "gc/shared/cardTable.hpp"
29 #include "runtime/orderAccess.inline.hpp"
30
31 template <DecoratorSet decorators, typename T>
32 inline void CardTableBarrierSet::write_ref_field_post(T* field, oop newVal) {
33 volatile jbyte* byte = _card_table->byte_for(field);
34 if (_card_table->scanned_concurrently()) {
35 // Perform a releasing store if using CMS so that it may
36 // scan and clear the cards concurrently during pre-cleaning.
37 OrderAccess::release_store(byte, CardTable::dirty_card_val());
38 } else {
39 *byte = CardTable::dirty_card_val();
40 }
41 }
42
43 #endif // SHARE_VM_GC_SHARED_CARDTABLEBARRIERSET_INLINE_HPP
|