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

Issue 53004: Add basic infrastructure for protecting V8's heap when leaving the VM... (Closed)

Created:
11 years, 9 months ago by Kevin Millikin (Chromium)
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Add basic infrastructure for protecting V8's heap when leaving the VM and unprotecting it when (re)entering. The functionality is enabled by the flag --protect-heap and requires V8 to be built with ENABLE_HEAP_PROTECTION and ENABLE_LOGGING_AND_PROFILING defined. Implemented on Linux and Windows but not yet for other platforms. Committed: http://code.google.com/p/v8/source/detail?r=1595

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+335 lines, -49 lines) Patch
M src/flag-definitions.h View 1 2 1 chunk +14 lines, -2 lines 0 comments Download
M src/globals.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/heap.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M src/heap.cc View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M src/log.cc View 1 2 3 chunks +29 lines, -3 lines 1 comment Download
M src/platform.h View 1 2 2 chunks +9 lines, -3 lines 0 comments Download
M src/platform-freebsd.cc View 1 chunk +14 lines, -0 lines 0 comments Download
M src/platform-linux.cc View 1 2 4 chunks +24 lines, -7 lines 1 comment Download
M src/platform-macos.cc View 1 2 4 chunks +21 lines, -6 lines 0 comments Download
M src/platform-nullos.cc View 1 chunk +14 lines, -0 lines 0 comments Download
M src/platform-win32.cc View 1 2 3 chunks +26 lines, -7 lines 0 comments Download
M src/spaces.h View 1 2 10 chunks +42 lines, -2 lines 1 comment Download
M src/spaces.cc View 1 2 6 chunks +69 lines, -14 lines 0 comments Download
M src/spaces-inl.h View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
M tools/test.py View 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Kevin Millikin (Chromium)
This is a first step. Transitioning into or out of state EXTERNAL triggers heap protection/unprotection. ...
11 years, 9 months ago (2009-03-24 09:25:56 UTC) #1
Erik Corry
LGTM http://codereview.chromium.org/53004/diff/28/1011 File src/heap.h (right): http://codereview.chromium.org/53004/diff/28/1011#newcode276 Line 276: #ifdef ENABLE_LOGGING_AND_PROFILING I'd like to hide behind ...
11 years, 9 months ago (2009-03-24 10:02:36 UTC) #2
Kevin Millikin (Chromium)
http://codereview.chromium.org/53004/diff/31/1022 File src/spaces.h (right): http://codereview.chromium.org/53004/diff/31/1022#newcode1641 Line 1641: #ifdef ENABLE_LOGGING_AND_PROFILING Ooops. Fixed.
11 years, 9 months ago (2009-03-24 11:42:43 UTC) #3
Søren Thygesen Gjesse
LGTM I also like the cleanup of parameter names etc. http://codereview.chromium.org/53004/diff/31/1028 File src/log.cc (right): http://codereview.chromium.org/53004/diff/31/1028#newcode1128 ...
11 years, 9 months ago (2009-03-24 11:43:55 UTC) #4
Erik Corry
11 years, 9 months ago (2009-03-24 12:32:31 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698