From 5bca14a33ee397e5d96ad1b26a62950b0db6ea33 Mon Sep 17 00:00:00 2001 From: "yangguo@chromium.org" Date: Tue, 18 Mar 2014 12:21:07 +0000 Subject: [PATCH] Fix race between VisitSmiRoots and SetStackLimit. R=hpayer@chromium.org Review URL: https://codereview.chromium.org/198833006 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20026 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/heap.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/heap.cc b/src/heap.cc index 66b527456e..4855ac08ae 100644 --- a/src/heap.cc +++ b/src/heap.cc @@ -6161,6 +6161,8 @@ void Heap::IterateWeakRoots(ObjectVisitor* v, VisitMode mode) { void Heap::IterateSmiRoots(ObjectVisitor* v) { + // Acquire execution access since we are going to read stack limit values. + ExecutionAccess access(isolate()); v->VisitPointers(&roots_[kSmiRootsStart], &roots_[kRootListLength]); v->Synchronize(VisitorSynchronization::kSmiRootList); }