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

Issue 1364303002: [heap] Fix PagedSpace::SizeOfObjects calling from within FreeList::Allocate (Closed)

Created:
5 years, 3 months ago by Michael Lippautz
Modified:
5 years, 2 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[heap] Fix PagedSpace::SizeOfObjects calling from within FreeList::Allocate Not resetting the allocation area after freeing it potentially results in negative SizeOfObjects() because the area is accounted for as allocated while it has already been freed. BUG= Committed: https://crrev.com/f5b1409f5fa8776589d952aa71e5929cd5bbd0e1 Cr-Commit-Position: refs/heads/master@{#30928}

Patch Set 1 #

Total comments: 5

Patch Set 2 : CHECK -> DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -9 lines) Patch
M src/heap/spaces.cc View 1 3 chunks +6 lines, -9 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1364303002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1364303002/1
5 years, 3 months ago (2015-09-24 16:23:37 UTC) #2
Michael Lippautz
SizeOfObjects was sometimes negative since we did not reset the linear allocation area after freeing ...
5 years, 3 months ago (2015-09-24 16:39:54 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-24 16:47:44 UTC) #6
Hannes Payer (out of office)
LGTM https://codereview.chromium.org/1364303002/diff/1/src/heap/spaces.cc File src/heap/spaces.cc (right): https://codereview.chromium.org/1364303002/diff/1/src/heap/spaces.cc#newcode2391 src/heap/spaces.cc:2391: owner_->heap()->incremental_marking()->OldSpaceStep(size_in_bytes - On 2015/09/24 16:39:53, Michael Lippautz wrote: ...
5 years, 2 months ago (2015-09-25 08:33:09 UTC) #7
Michael Lippautz
https://codereview.chromium.org/1364303002/diff/1/src/heap/spaces.cc File src/heap/spaces.cc (right): https://codereview.chromium.org/1364303002/diff/1/src/heap/spaces.cc#newcode2551 src/heap/spaces.cc:2551: CHECK_GE(size, 0); On 2015/09/25 08:33:08, Hannes Payer wrote: > ...
5 years, 2 months ago (2015-09-25 09:05:17 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1364303002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1364303002/20001
5 years, 2 months ago (2015-09-25 09:05:43 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 2 months ago (2015-09-25 09:28:00 UTC) #12
commit-bot: I haz the power
5 years, 2 months ago (2015-09-25 09:28:17 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f5b1409f5fa8776589d952aa71e5929cd5bbd0e1
Cr-Commit-Position: refs/heads/master@{#30928}

Powered by Google App Engine
This is Rietveld 408576698