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

Issue 724833002: Oilpan: Use WTF::allocPages() to allocate aligned blocks of memory (Closed)

Created:
6 years, 1 month ago by Jens Widell
Modified:
5 years, 6 months ago
Reviewers:
haraken, sof
CC:
blink-reviews, oilpan-reviews, kouhei+heap_chromium.org, Mads Ager (chromium)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Oilpan: Use WTF::allocPages() to allocate aligned blocks of memory PageMemoryRegion::allocate() duplicates the non-trivial functionality of WTF::allocPages(), to allocate an aligned block of memory at a random base address. The two implementations were not identical, but the goals and APIs are currently, so it doesn't seem meaningful at this point to have different implementations.

Patch Set 1 #

Patch Set 2 : round up allocation size, and set pages inaccessible #

Total comments: 1

Patch Set 3 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -93 lines) Patch
M Source/platform/heap/Heap.cpp View 1 2 4 chunks +7 lines, -93 lines 0 comments Download

Messages

Total messages: 34 (12 generated)
Jens Widell
PTAL WTF::allocPages() is what PartitionAlloc uses. Nothing important, just something that stood out a bit ...
6 years, 1 month ago (2014-11-13 16:23:29 UTC) #2
haraken
LGTM
6 years, 1 month ago (2014-11-14 00:47:36 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/724833002/1
6 years, 1 month ago (2014-11-14 06:59:13 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/36492)
6 years, 1 month ago (2014-11-14 07:35:30 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/724833002/1
6 years, 1 month ago (2014-11-14 08:19:04 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/36506)
6 years, 1 month ago (2014-11-14 08:52:05 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/724833002/1
6 years, 1 month ago (2014-11-14 11:48:59 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/36529)
6 years, 1 month ago (2014-11-14 12:29:47 UTC) #15
sof
Minor thing worth mentioning: the goals of these two allocation routines will not necessarily remain ...
6 years, 1 month ago (2014-11-14 13:26:11 UTC) #17
Jens Widell
On 2014/11/14 13:26:11, sof wrote: > Minor thing worth mentioning: the goals of these two ...
6 years, 1 month ago (2014-11-14 13:35:07 UTC) #18
sof
On 2014/11/14 13:35:07, Jens Widell wrote: > On 2014/11/14 13:26:11, sof wrote: > > Minor ...
6 years, 1 month ago (2014-11-14 13:40:07 UTC) #19
Jens Widell
On 2014/11/14 13:40:07, sof wrote: > On 2014/11/14 13:35:07, Jens Widell wrote: > > On ...
6 years, 1 month ago (2014-11-14 13:50:09 UTC) #20
sof
On 2014/11/14 13:50:09, Jens Widell wrote: > On 2014/11/14 13:40:07, sof wrote: > > On ...
6 years, 1 month ago (2014-11-14 13:58:51 UTC) #21
Jens Widell
On 2014/11/14 13:58:51, sof wrote: > On 2014/11/14 13:50:09, Jens Widell wrote: > > On ...
6 years, 1 month ago (2014-11-14 14:24:55 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/724833002/1
6 years, 1 month ago (2014-11-17 07:10:02 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/36778)
6 years, 1 month ago (2014-11-17 07:33:31 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/724833002/1
6 years, 1 month ago (2014-11-17 07:39:04 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/36782)
6 years, 1 month ago (2014-11-17 08:00:42 UTC) #30
Jens Widell
On 2014/11/17 08:00:42, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 1 month ago (2014-11-17 08:29:46 UTC) #31
Jens Widell
On 2014/11/17 08:29:46, Jens Widell wrote: > On 2014/11/17 08:00:42, I haz the power (commit-bot) ...
6 years, 1 month ago (2014-11-17 08:31:16 UTC) #32
Jens Widell
PS#2 takes care of the allocation granularity problem. If I understand it correctly, you can ...
6 years, 1 month ago (2014-11-17 10:20:08 UTC) #33
haraken
5 years, 9 months ago (2015-03-25 00:23:59 UTC) #34
Jens: Sorry for triggering an old issue, but do you have any update on this CL?

We're currently getting some crash reports from PageMemoryRegion::allocatePages
in Windows (https://code.google.com/p/chromium/issues/detail?id=469283). It
seems that the current Windows-specific logic to allocate new OS pages is
causing the crash. So I want to fix the crash by replacing the implementation
with WTF::allocPages (which we already know is working correctly).

Powered by Google App Engine
This is Rietveld 408576698