Implement shrinking of paged spaces during sweeping.
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 29 Sep 2011 12:27:31 +0000 (12:27 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 29 Sep 2011 12:27:31 +0000 (12:27 +0000)
commit279356b4b3a6819b169707566c909760e6719393
treea098db045f68ff0f6b8190bf17774afc02132fb1
parent1a0423b54fa4c75039d11328de4bb140d1bf86b9
Implement shrinking of paged spaces during sweeping.

For each paged space we release all but one of the unused pages after
marking (when we know the number of live bytes) but before actually
sweeping it. This is not yet done for lazy swept pages.

R=erik.corry@gmail.com
BUG=v8:1614

Review URL: http://codereview.chromium.org/7891010

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9481 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/heap.cc
src/heap.h
src/mark-compact.cc
src/spaces.cc
src/spaces.h