Reviewers: Erik Corry, Søren Gjesse, Message: This is a first step. Transitioning into or out of state EXTERNAL triggers heap protection/unprotection.
There is no code in V8 yet that causes that state transition. The next step is to identify the places in the API and runtime (eg, callbacks) where we need to go into the EXTERNAL state. 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_LOGGING_AND_PROFILING defined. Implemented on Linux and Windows but not yet for other platforms. Please review this at http://codereview.chromium.org/53004 SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/flag-definitions.h M src/globals.h M src/heap.h M src/heap.cc M src/log.cc M src/platform-linux.cc M src/platform-macos.cc M src/platform-win32.cc M src/platform.h M src/spaces-inl.h M src/spaces.h M src/spaces.cc M tools/test.py --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
