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

Issue 2565713002: [heap] Initialize the owner on each page after lospace allocation (Closed)

Created:
4 years ago by jgruber
Modified:
4 years ago
Reviewers:
Michael Lippautz
CC:
v8-reviews_googlegroups.com, Hannes Payer (out of office), ulan
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[heap] Initialize the owner on each page after lospace allocation The least two bits of the owner field of a Page are used to determine whether the Page is part of a large object. If these bits are not equal to 0x11, the page is part of a large object and needs special handling e.g. in MemoryChunk::FromAnyPointerAddress to determine which chunk it belongs to. This CL fixes an issue in which the store buffer overflows after a large object space allocation but before the object has been fully initialized. Store buffer overflow handling attempts to look up the chunk of a page, but fails to do so correctly since the page's owner field has not yet been initialized. This CL ensures that the owner field of all pages belonging to a large object allocation are initialized to a value that is interpreted correctly. BUG=chromium:672041 Committed: https://crrev.com/9b6808bfb5366beebe3af30a06f9851edb2039d4 Committed: https://crrev.com/bbf3c697aee6bcde1bf4e110c8aec5cdae26ebcf Cr-Original-Commit-Position: refs/heads/master@{#41641} Cr-Commit-Position: refs/heads/master@{#41687}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comments #

Patch Set 3 : Fix msan marking and page range for owner initialization #

Patch Set 4 : Simplify msan marking #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -3 lines) Patch
M src/heap/spaces.h View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M src/heap/spaces.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M src/heap/spaces-inl.h View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
A test/mjsunit/regress/regress-672041.js View 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (27 generated)
jgruber
4 years ago (2016-12-09 11:29:24 UTC) #6
Michael Lippautz
lgtm % comment Hannes: FYI: CodeStubAssembler supports LO allocation of filler objects through a runtime ...
4 years ago (2016-12-09 20:09:40 UTC) #7
jgruber
https://codereview.chromium.org/2565713002/diff/1/src/heap/spaces-inl.h File src/heap/spaces-inl.h (right): https://codereview.chromium.org/2565713002/diff/1/src/heap/spaces-inl.h#newcode601 src/heap/spaces-inl.h:601: owner_addr = new_owner_value; On 2016/12/09 20:09:40, Michael Lippautz wrote: ...
4 years ago (2016-12-12 12:48:07 UTC) #10
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/2565713002/20001
4 years ago (2016-12-12 13:16:42 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-12 13:18:23 UTC) #18
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/9b6808bfb5366beebe3af30a06f9851edb2039d4 Cr-Commit-Position: refs/heads/master@{#41641}
4 years ago (2016-12-12 13:19:17 UTC) #20
Michael Hablich
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2562273004/ by hablich@chromium.org. ...
4 years ago (2016-12-12 14:36:18 UTC) #21
Michael Achenbach
See also: https://build.chromium.org/p/client.v8.ports/builders/V8%20Linux%20-%20arm64%20-%20sim%20-%20debug/builds/3865
4 years ago (2016-12-12 15:14:33 UTC) #22
jgruber
The newest patchset fixes two issues: * Only initialize the owner field within the object ...
4 years ago (2016-12-13 12:39:54 UTC) #32
Michael Lippautz
lgtm
4 years ago (2016-12-13 15:01:52 UTC) #33
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/2565713002/60001
4 years ago (2016-12-14 06:43:29 UTC) #35
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-14 06:45:30 UTC) #38
commit-bot: I haz the power
4 years ago (2016-12-14 06:45:43 UTC) #40
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/bbf3c697aee6bcde1bf4e110c8aec5cdae26ebcf
Cr-Commit-Position: refs/heads/master@{#41687}

Powered by Google App Engine
This is Rietveld 408576698