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

Issue 2765353004: Avoid inline capacity of WordMeasurements (Closed)

Created:
3 years, 9 months ago by kojii
Modified:
3 years, 9 months ago
Reviewers:
eae, dcheng
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid inline capacity of WordMeasurements This patch disables the inline capacity of WordMeasurements but to reserve the heap once per line, in order to avoid stack overflow in LayoutBlockFlow::layoutRunsAndFloatsInRange() when stack is critical, such as when V8 initiates the layout. Currently, LayoutBlockFlow::layoutRunsAndFloatsInRange() is the only place we instantiate WordMeasurements. This change is expected to save stack space by ~2k. BUG=704536 Review-Url: https://codereview.chromium.org/2765353004 Cr-Commit-Position: refs/heads/master@{#459485} Committed: https://chromium.googlesource.com/chromium/src/+/704ca0cfcc046d199d31e6502639bc94b89fddb0

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBlock.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp View 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 15 (10 generated)
kojii
eae@, do you think this is worth? govind@ said she wants to merge to stable ...
3 years, 9 months ago (2017-03-24 05:28:30 UTC) #6
eae
Let's give it a try but I wouldn't merge it unless we have to LGTM
3 years, 9 months ago (2017-03-24 18:09:08 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2765353004/1
3 years, 9 months ago (2017-03-24 18:10:08 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/704ca0cfcc046d199d31e6502639bc94b89fddb0
3 years, 9 months ago (2017-03-24 18:35:53 UTC) #14
kojii
3 years, 8 months ago (2017-03-31 19:24:51 UTC) #15
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/2789913002/ by kojii@chromium.org.

The reason for reverting is: Reverting due to 10.2%-11.9% regression in
blink_perf.layout,
reported in issue 706907..

Powered by Google App Engine
This is Rietveld 408576698