Skip to content

Commit 59868a3

Browse files
committed
Fix missing MMTK_ENABLE_WRITE_BARRIER guard
1 parent 905e5ec commit 59868a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

openjdk/mmtkBarrierSet.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ class MMTkBarrierSet : public BarrierSet {
9999
template <typename T>
100100
static void oop_store_in_heap(T* addr, oop value) {
101101
Raw::oop_store(addr, value);
102+
#if MMTK_ENABLE_WRITE_BARRIER
102103
MMTkBarrierRuntime::record_modified_edge((void*) addr);
104+
#endif
103105
}
104106

105107
static void oop_store_in_heap_at(oop base, ptrdiff_t offset, oop value) {

0 commit comments

Comments
 (0)