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

Issue 2702303002: [heap] Notify GC on potentially unsafe object layout changes. (Closed)

Created:
3 years, 10 months ago by ulan
Modified:
3 years, 10 months ago
CC:
v8-reviews_googlegroups.com, Hannes Payer (out of office), ulan
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[heap] Notify GC on potentially unsafe object layout changes. During concurrent marking we need special handling of object layout changes that remove tagged in-object fields or replaces them with untagged in-object fields. This patch adds a function for notifying object layout changes and verification code that is triggered on each map change in runtime. BUG=chromium:694255 Review-Url: https://codereview.chromium.org/2702303002 Cr-Commit-Position: refs/heads/master@{#43342} Committed: https://chromium.googlesource.com/v8/v8/+/fbee722c918ea3842f3e0f3c276860603c4b649b

Patch Set 1 #

Patch Set 2 : Remove debug code #

Patch Set 3 : NULL -> nullptr #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -6 lines) Patch
M src/heap/heap.h View 2 chunks +16 lines, -0 lines 0 comments Download
M src/heap/heap.cc View 1 2 chunks +23 lines, -1 line 1 comment Download
M src/objects.h View 1 chunk +10 lines, -0 lines 0 comments Download
M src/objects.cc View 3 chunks +33 lines, -1 line 3 comments Download
M src/objects-inl.h View 1 2 2 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
ulan
ptal
3 years, 10 months ago (2017-02-20 14:32:44 UTC) #2
ulan
3 years, 10 months ago (2017-02-20 14:33:31 UTC) #4
Hannes Payer (out of office)
lgtm
3 years, 10 months ago (2017-02-20 14:53:04 UTC) #5
Igor Sheludko
https://codereview.chromium.org/2702303002/diff/40001/src/heap/heap.cc File src/heap/heap.cc (right): https://codereview.chromium.org/2702303002/diff/40001/src/heap/heap.cc#newcode4296 src/heap/heap.cc:4296: void Heap::NotifyObjectLayoutChange(HeapObject* object, WDYT about putting this to heap-inl.h? ...
3 years, 10 months ago (2017-02-21 10:22:25 UTC) #6
Igor Sheludko
lgtm https://codereview.chromium.org/2702303002/diff/40001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/2702303002/diff/40001/src/objects.cc#newcode3293 src/objects.cc:3293: FieldIndex index = FieldIndex::ForPropertyIndex(target, i); On 2017/02/21 10:22:25, ...
3 years, 10 months ago (2017-02-21 10:36:37 UTC) #7
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/2702303002/40001
3 years, 10 months ago (2017-02-21 10:37:12 UTC) #9
commit-bot: I haz the power
3 years, 10 months ago (2017-02-21 11:03:53 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/fbee722c918ea3842f3e0f3c276860603c4...

Powered by Google App Engine
This is Rietveld 408576698