Changed the PageIterator class so that it only returns pages existing
authorkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 7 May 2009 10:19:38 +0000 (10:19 +0000)
committerkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 7 May 2009 10:19:38 +0000 (10:19 +0000)
commitbd3019f2b6e2a68c85de650b84e29b9f49707e54
tree75d7b3897a7cd84e2f52d7f4b42775efbe30cd0f
parent883b2826b9ae56d25c61c320d49022cacae816a9
Changed the PageIterator class so that it only returns pages existing
at construction time.  If allocation during iteration causes a paged
space to expand, the iterator will not return the new pages.

This makes it more closely match the HeapObjectIterator behavior, and
it removes a possible source of bugs (if the allocation top was in the
last page in the space, the old iterator would stop only when it
reached the end of the space, potentially returning invalid pages from
a freshly expanded space).

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

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