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

Issue 113095: Before a scavenge collection in debug builds with ENABLE_SLOW_ASSERTS,... (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

Before a scavenge collection in debug builds with ENABLE_SLOW_ASSERTS, we verify that there are no pointers to new space from the code space. Add the old data space to this verification. Committed: http://code.google.com/p/v8/source/detail?r=1897

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -14 lines) Patch
M src/heap.cc View 1 1 chunk +24 lines, -14 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Kevin Millikin (Chromium)
I bet this will make some tests time out, because it roughly doubles scavenge time ...
11 years, 7 months ago (2009-05-07 09:37:13 UTC) #1
Erik Corry
LGTM http://codereview.chromium.org/113095/diff/1001/1002 File src/heap.cc (right): http://codereview.chromium.org/113095/diff/1001/1002#newcode559 Line 559: static void VerifyNonPointerSpacePointers() { If you move ...
11 years, 7 months ago (2009-05-07 09:53:01 UTC) #2
Kevin Millikin (Chromium)
11 years, 7 months ago (2009-05-07 10:24:02 UTC) #3
http://codereview.chromium.org/113095/diff/1001/1002
File src/heap.cc (right):

http://codereview.chromium.org/113095/diff/1001/1002#newcode559
Line 559: static void VerifyNonPointerSpacePointers() {
On 2009/05/07 09:53:01, Erik Corry wrote:
> If you move the flag test into this you and put an empty implementation in an
> #else you can get rid of an intra-function ifdef at the cost of adding an
> extra-function #else.  That seems like a clear style win to me.

Not a clear win.  I actually prefer seeing at the call site that nothing happens
unless in DEBUG and with --enable-slow-asserts.

Powered by Google App Engine
This is Rietveld 408576698