Acquire a lock before checking for GC interrupt in JSON parser.
authorulan <ulan@chromium.org>
Mon, 23 Mar 2015 17:16:05 +0000 (10:16 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 23 Mar 2015 17:16:14 +0000 (17:16 +0000)
BUG=

Review URL: https://codereview.chromium.org/1025333002

Cr-Commit-Position: refs/heads/master@{#27375}

src/json-parser.h

index 7cf80966dfd18d317d61c6ff2e34ee7d38c09fa3..1a9a36f283513bab2f3b72d2d6e5a78c6d0d2de8 100644 (file)
@@ -262,6 +262,7 @@ Handle<Object> JsonParser<seq_one_byte>::ParseJsonValue() {
   }
 
   if (isolate_->stack_guard()->InterruptRequested()) {
+    ExecutionAccess access(isolate_);
     // Avoid blocking GC in long running parser (v8:3974).
     isolate_->stack_guard()->CheckAndHandleGCInterrupt();
   }