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

Issue 23903008: Drop OS::IsOutsideAllocatedSpace() and move the tracking to the MemoryAllocator. (Closed)

Created:
7 years, 3 months ago by Benedikt Meurer
Modified:
7 years, 3 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Drop OS::IsOutsideAllocatedSpace() and move the tracking to the MemoryAllocator. Instead of globally tracking allocated space limits, which was not implemented properly anyway (i.e. lack of synchronization on the reading side), track it per MemoryAllocator (that is per heap/isolate). In particular, avoid to call IsBadWritePtr() on Windows, it is obsolete and Microsoft strongly discourages its usage. R=mstarzinger@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=16542

Patch Set 1 #

Total comments: 6

Patch Set 2 : Get rid of OS::TearDown. #

Patch Set 3 : Address allows for byte-based arithmetic. #

Patch Set 4 : Drop debugging leftover. #

Patch Set 5 : Fix invalid calculation of committed memory boundaries. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -298 lines) Patch
M src/heap.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/platform.h View 1 2 chunks +0 lines, -10 lines 0 comments Download
M src/platform-cygwin.cc View 1 5 chunks +0 lines, -37 lines 0 comments Download
M src/platform-freebsd.cc View 1 5 chunks +0 lines, -37 lines 0 comments Download
M src/platform-linux.cc View 1 5 chunks +0 lines, -36 lines 0 comments Download
M src/platform-macos.cc View 1 4 chunks +0 lines, -37 lines 0 comments Download
M src/platform-openbsd.cc View 1 5 chunks +0 lines, -37 lines 0 comments Download
M src/platform-solaris.cc View 1 5 chunks +0 lines, -37 lines 0 comments Download
M src/platform-win32.cc View 5 chunks +0 lines, -41 lines 0 comments Download
M src/spaces.h View 1 2 3 5 chunks +26 lines, -4 lines 0 comments Download
M src/spaces.cc View 1 2 3 4 8 chunks +30 lines, -9 lines 0 comments Download
M src/v8.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/test-alloc.cc View 4 chunks +8 lines, -10 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Benedikt Meurer
Hey Michi, This is the change we're talking about offline this noon. PTAL -- Benedikt
7 years, 3 months ago (2013-09-04 13:50:01 UTC) #1
Michael Starzinger
LGTM if all comments are addressed. https://codereview.chromium.org/23903008/diff/1/src/platform-linux.cc File src/platform-linux.cc (left): https://codereview.chromium.org/23903008/diff/1/src/platform-linux.cc#oldcode508 src/platform-linux.cc:508: void OS::TearDown() { ...
7 years, 3 months ago (2013-09-04 15:49:24 UTC) #2
Benedikt Meurer
https://codereview.chromium.org/23903008/diff/1/src/platform-linux.cc File src/platform-linux.cc (left): https://codereview.chromium.org/23903008/diff/1/src/platform-linux.cc#oldcode508 src/platform-linux.cc:508: void OS::TearDown() { On 2013/09/04 15:49:25, Michael Starzinger wrote: ...
7 years, 3 months ago (2013-09-05 08:06:46 UTC) #3
Benedikt Meurer
7 years, 3 months ago (2013-09-05 08:18:13 UTC) #4
Message was sent while issue was closed.
Committed patchset #5 manually as r16542 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698