Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: src/json-parser.h

Issue 1025333002: Acquire a lock before checking for GC interrupt in JSON parser. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/json-parser.h
diff --git a/src/json-parser.h b/src/json-parser.h
index 7cf80966dfd18d317d61c6ff2e34ee7d38c09fa3..1a9a36f283513bab2f3b72d2d6e5a78c6d0d2de8 100644
--- a/src/json-parser.h
+++ b/src/json-parser.h
@@ -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();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698