Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(18)

Issue 1190863003: Oilpan: Allocation should be allowed in pre-finalizers (Closed)

Created:
4 years, 10 months ago by haraken
Modified:
4 years, 10 months ago
Reviewers:
oilpan-reviews, tkent, sof
CC:
blink-reviews, oilpan-reviews, kouhei+heap_chromium.org, Mads Ager (chromium)
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Oilpan: Allocation should be allowed in pre-finalizers There is no reason we need to forbid allocations during pre-finalizers. Pages to be swept are already linked in the list of m_firstUnsweptPage, and thus pages allocated during pre-finalizers will just go to a list of m_firstPage. No issue here. The only substantial change in this CL is that NoAllocationScope is removed from invokePrefinalizer's scope. BUG=420515 TEST=HeapTest.AllocationDuringPrefinalizer Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197399

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 8

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -34 lines) Patch
M Source/platform/heap/HeapTest.cpp View 1 2 3 4 5 2 chunks +54 lines, -0 lines 0 comments Download
M Source/platform/heap/ThreadState.h View 1 2 3 4 5 2 chunks +8 lines, -5 lines 0 comments Download
M Source/platform/heap/ThreadState.cpp View 1 2 3 4 9 chunks +50 lines, -29 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
haraken
PTAL
4 years, 10 months ago (2015-06-17 23:12:37 UTC) #2
sof
+tkent who introduced prefinalizers - they're explicitly exempted from allocation (see ThreadState.h comment), so getting ...
4 years, 10 months ago (2015-06-18 06:41:00 UTC) #4
haraken
On 2015/06/18 06:41:00, sof wrote: > +tkent who introduced prefinalizers - they're explicitly exempted from ...
4 years, 10 months ago (2015-06-18 06:51:49 UTC) #5
tkent
I also don't remember the exact reason. Probably it was same as thread-local weak processing.
4 years, 10 months ago (2015-06-18 06:55:43 UTC) #6
haraken
On 2015/06/18 06:55:43, tkent wrote: > I also don't remember the exact reason. Probably it ...
4 years, 10 months ago (2015-06-18 06:59:03 UTC) #7
sof
https://codereview.chromium.org/1190863003/diff/60001/Source/platform/heap/HeapTest.cpp File Source/platform/heap/HeapTest.cpp (right): https://codereview.chromium.org/1190863003/diff/60001/Source/platform/heap/HeapTest.cpp#newcode4351 Source/platform/heap/HeapTest.cpp:4351: EXPECT_EQ(42, IntWrapper::s_destructorCalls); Could you add a comment where the ...
4 years, 10 months ago (2015-06-18 12:18:03 UTC) #8
haraken
Thanks for review! https://codereview.chromium.org/1190863003/diff/60001/Source/platform/heap/HeapTest.cpp File Source/platform/heap/HeapTest.cpp (right): https://codereview.chromium.org/1190863003/diff/60001/Source/platform/heap/HeapTest.cpp#newcode4351 Source/platform/heap/HeapTest.cpp:4351: EXPECT_EQ(42, IntWrapper::s_destructorCalls); On 2015/06/18 12:18:03, sof ...
4 years, 10 months ago (2015-06-18 16:30:13 UTC) #9
sof
lgtm https://codereview.chromium.org/1190863003/diff/80001/Source/platform/heap/HeapTest.cpp File Source/platform/heap/HeapTest.cpp (right): https://codereview.chromium.org/1190863003/diff/80001/Source/platform/heap/HeapTest.cpp#newcode4352 Source/platform/heap/HeapTest.cpp:4352: // The 42 IntWrappers were the ones allocated ...
4 years, 10 months ago (2015-06-18 18:14:04 UTC) #10
haraken
https://codereview.chromium.org/1190863003/diff/80001/Source/platform/heap/HeapTest.cpp File Source/platform/heap/HeapTest.cpp (right): https://codereview.chromium.org/1190863003/diff/80001/Source/platform/heap/HeapTest.cpp#newcode4352 Source/platform/heap/HeapTest.cpp:4352: // The 42 IntWrappers were the ones allocated in ...
4 years, 10 months ago (2015-06-18 18:54:38 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1190863003/100001
4 years, 10 months ago (2015-06-18 18:55:33 UTC) #14
commit-bot: I haz the power
4 years, 10 months ago (2015-06-18 21:53:54 UTC) #15
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197399

Powered by Google App Engine
This is Rietveld 408576698