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

Issue 115074: Changed the PageIterator class so that it only returns pages existing... (Closed)

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

Description

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). Committed: http://code.google.com/p/v8/source/detail?r=1895

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -21 lines) Patch
M src/spaces.h View 4 chunks +45 lines, -12 lines 4 comments Download
M src/spaces.cc View 4 chunks +8 lines, -5 lines 0 comments Download
M src/spaces-inl.h View 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Kevin Millikin (Chromium)
11 years, 7 months ago (2009-05-07 07:52:05 UTC) #1
Erik Corry
LGTM. http://codereview.chromium.org/115074/diff/1/3 File src/spaces.h (right): http://codereview.chromium.org/115074/diff/1/3#newcode601 Line 601: }; I liked the old version better. ...
11 years, 7 months ago (2009-05-07 09:48:07 UTC) #2
Kevin Millikin (Chromium)
11 years, 7 months ago (2009-05-07 10:17:16 UTC) #3
http://codereview.chromium.org/115074/diff/1/3
File src/spaces.h (right):

http://codereview.chromium.org/115074/diff/1/3#newcode601
Line 601: };
On 2009/05/07 09:48:07, Erik Corry wrote:
> I liked the old version better.  Does the style guide mandate this?

Not mandated and we have a mix in the codebase.  I've been migrating to this....

http://codereview.chromium.org/115074/diff/1/3#newcode843
Line 843: Page* last_page_;
On 2009/05/07 09:48:07, Erik Corry wrote:
> The way this is updated is subtle.  It at least deserves a comment here.

Commented here and in the places where it's modified.

Powered by Google App Engine
This is Rietveld 408576698