Commit f42e09ae authored by ulan's avatar ulan Committed by Commit bot

Acquire a lock before checking for GC interrupt in JSON parser.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#27375}
parent b563ceac
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment