Index: src/heap/objects-visiting.cc |
diff --git a/src/heap/objects-visiting.cc b/src/heap/objects-visiting.cc |
index de2cfddb28438137df3641c14c85e48818a9bfef..4adf2a5c85f1d66e65acedee31c804fb4462af3d 100644 |
--- a/src/heap/objects-visiting.cc |
+++ b/src/heap/objects-visiting.cc |
@@ -287,7 +287,7 @@ struct WeakListVisitor<Code> { |
template <> |
struct WeakListVisitor<Context> { |
static void SetWeakNext(Context* context, Object* next) { |
- context->set(Context::NEXT_CONTEXT_LINK, next, UPDATE_WRITE_BARRIER); |
+ context->set(Context::NEXT_CONTEXT_LINK, next, UPDATE_WEAK_WRITE_BARRIER); |
} |
static Object* WeakNext(Context* context) { |