Reviewers: vogelheim, Jakob, Michael Starzinger,

Message:
PTAL

Description:
Deactivate Parser Bookmarks.

Bookmarks may create a race condition which
results in syntax errors. The more files are parsed
in parallel the higher the probability that the error
occurs.
Unfortunately it is not possible to simply revert the
CLs related to Bookmarks.

BUG=chromium:527930,chromium:510825

Please review this at https://codereview.chromium.org/1315173007/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+3, -2 lines):
  M src/parser.cc


Index: src/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index 319d468e4d61db43f529e8424139842d7bede8ba..1fb7adba67a6c079b5709732aa07e0ea0e84f229 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -4168,8 +4168,9 @@ FunctionLiteral* Parser::ParseFunctionLiteral(
     // try to lazy parse in the first place, we'll have to parse eagerly.
     Scanner::BookmarkScope bookmark(scanner());
     if (is_lazily_parsed) {
-      Scanner::BookmarkScope* maybe_bookmark =
-          bookmark.Set() ? &bookmark : nullptr;
+      // Deactivate bookmarks for now because they result
+      // race conditions while parsing.
+      Scanner::BookmarkScope* maybe_bookmark = nullptr;
       SkipLazyFunctionBody(&materialized_literal_count,
                            &expected_property_count, /*CHECK_OK*/ ok,
                            maybe_bookmark);


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to