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

Issue 706533005: Retry: Parser & internalization fix: ensure no heap allocs during GetString(Handle<String>). (Closed)

Created:
6 years, 1 month ago by marja
Modified:
6 years, 1 month ago
Reviewers:
rossberg
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

Retry: Parser & internalization fix: ensure no heap allocs during GetString(Handle<String>). The bug has always been there: when the parser is operating in the "immediately internalize" mode and calls GetString, we get FlatContent of a string and then do heap allocation. The bug was uncovered by https://codereview.chromium.org/693803004/ (which put the parser to the "immediately internalize" mode more often), but looking at the code, it's possible that it can happen in other cases too. This CL makes AstValueFactory handle this situation gracefully: it won't try to internalize inside GetString(Handle<String>); it's unnecessary anyway since we have the Handle<String> already. BUG= R=rossberg@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=25179

Patch Set 1 #

Patch Set 2 : maybe fix #

Patch Set 3 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -14 lines) Patch
M src/ast-value-factory.h View 2 chunks +10 lines, -4 lines 0 comments Download
M src/ast-value-factory.cc View 1 4 chunks +21 lines, -10 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
marja
rossberg, ptal at this fixed fix. The failing test was WebPageNewSerializeTest.BlankFrames and it passes with ...
6 years, 1 month ago (2014-11-05 15:08:37 UTC) #3
rossberg
lgtm
6 years, 1 month ago (2014-11-05 15:13:34 UTC) #4
marja
6 years, 1 month ago (2014-11-06 08:28:51 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 (id:50001) manually as 25179 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698