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

Issue 7865025: Move aligned allocation to the platform files. (Closed)

Created:
9 years, 3 months ago by Lasse Reichstein
Modified:
9 years, 3 months ago
CC:
v8-dev
Visibility:
Public.

Description

Move aligned allocation to the platform files. The Windows platform now don't assume that it can free part of a reservation. Instead it first allocates a too large block, then frees it and tries to allocate an aligned part of the block it just freed. It retries if a race condition allowed someone else in the same procress to allocate the same block. BUG=v8:1467 Committed: http://code.google.com/p/v8/source/detail?r=9296

Patch Set 1 #

Patch Set 2 : Match the VirtualFree return type and arguments. #

Total comments: 4

Patch Set 3 : Make aligned allocation require a VirtualMemory object to hold the origin. #

Patch Set 4 : Working on win32 too #

Total comments: 4

Patch Set 5 : Missing renames added to patch. #

Total comments: 2

Patch Set 6 : Removed leftover debug code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -114 lines) Patch
M src/platform.h View 1 2 3 4 3 chunks +47 lines, -2 lines 0 comments Download
M src/platform-linux.cc View 1 2 3 4 5 3 chunks +40 lines, -1 line 0 comments Download
M src/platform-macos.cc View 1 2 3 chunks +50 lines, -11 lines 0 comments Download
M src/platform-win32.cc View 1 2 3 4 2 chunks +44 lines, -11 lines 0 comments Download
M src/spaces.h View 1 2 3 4 5 6 chunks +25 lines, -7 lines 0 comments Download
M src/spaces.cc View 1 2 3 4 5 10 chunks +71 lines, -82 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Lasse Reichstein
9 years, 3 months ago (2011-09-12 12:56:01 UTC) #1
Vyacheslav Egorov (Chromium)
http://codereview.chromium.org/7865025/diff/2001/src/platform-win32.cc File src/platform-win32.cc (right): http://codereview.chromium.org/7865025/diff/2001/src/platform-win32.cc#newcode1529 src/platform-win32.cc:1529: } while (result == NULL); this looks too fragile ...
9 years, 3 months ago (2011-09-12 13:42:48 UTC) #2
Lasse Reichstein
http://codereview.chromium.org/7865025/diff/2001/src/platform-win32.cc File src/platform-win32.cc (right): http://codereview.chromium.org/7865025/diff/2001/src/platform-win32.cc#newcode1529 src/platform-win32.cc:1529: } while (result == NULL); This was an attempt ...
9 years, 3 months ago (2011-09-12 19:18:02 UTC) #3
Vyacheslav Egorov (Chromium)
lgtm http://codereview.chromium.org/7865025/diff/6001/src/platform-linux.cc File src/platform-linux.cc (right): http://codereview.chromium.org/7865025/diff/6001/src/platform-linux.cc#newcode137 src/platform-linux.cc:137: // Here gcc is telling us that we ...
9 years, 3 months ago (2011-09-14 12:46:51 UTC) #4
Lasse Reichstein
9 years, 3 months ago (2011-09-15 10:58:49 UTC) #5
http://codereview.chromium.org/7865025/diff/6001/src/platform-linux.cc
File src/platform-linux.cc (right):

http://codereview.chromium.org/7865025/diff/6001/src/platform-linux.cc#newcod...
src/platform-linux.cc:137: // Here gcc is telling us that we are on an MIPS and
gcc is assuming that we
No edit visible to me?

http://codereview.chromium.org/7865025/diff/6001/src/platform-win32.cc
File src/platform-win32.cc (right):

http://codereview.chromium.org/7865025/diff/6001/src/platform-win32.cc#newcode70
src/platform-win32.cc:70: }
Also no edit here.
Are you comparing to previous CL (because an update of the working checkout to
tip of tree will make that not work).

Powered by Google App Engine
This is Rietveld 408576698