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

Issue 7635014: NewGC: Don't put tagged null pointers in garbage objects when updating pointers (Closed)

Created:
9 years, 4 months ago by Erik Corry
Modified:
9 years, 4 months ago
CC:
v8-dev
Visibility:
Public.

Description

NewGC: Don't put tagged null pointers in garbage objects when updating pointers to dead new space objects. These null pointers can be found later by the evacuation pointer updater, which will crash. Committed: http://code.google.com/p/v8/source/detail?r=8917

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/mark-compact.cc View 1 chunk +1 line, -1 line 6 comments Download

Messages

Total messages: 5 (0 generated)
Erik Corry
9 years, 4 months ago (2011-08-12 08:11:53 UTC) #1
Vyacheslav Egorov (Chromium)
LGTM!
9 years, 4 months ago (2011-08-12 08:39:10 UTC) #2
Lasse Reichstein
LGTM http://codereview.chromium.org/7635014/diff/1/src/mark-compact.cc File src/mark-compact.cc (right): http://codereview.chromium.org/7635014/diff/1/src/mark-compact.cc#newcode2373 src/mark-compact.cc:2373: // with NULL. In this case we do ...
9 years, 4 months ago (2011-08-12 08:47:12 UTC) #3
Erik Corry
http://codereview.chromium.org/7635014/diff/1/src/mark-compact.cc File src/mark-compact.cc (right): http://codereview.chromium.org/7635014/diff/1/src/mark-compact.cc#newcode2373 src/mark-compact.cc:2373: // with NULL. In this case we do not ...
9 years, 4 months ago (2011-08-12 08:56:40 UTC) #4
Lasse Reichstein
9 years, 4 months ago (2011-08-12 09:21:48 UTC) #5
http://codereview.chromium.org/7635014/diff/1/src/mark-compact.cc
File src/mark-compact.cc (right):

http://codereview.chromium.org/7635014/diff/1/src/mark-compact.cc#newcode2373
src/mark-compact.cc:2373: // with NULL. In this case we do not need to transfer
this entry to
So the comment is incorrect and we don't store NULL, but "HeapObject tagged
NULL"?

http://codereview.chromium.org/7635014/diff/1/src/mark-compact.cc#newcode2381
src/mark-compact.cc:2381: *p = reinterpret_cast<HeapObject*>(Smi::FromInt(0));
Ah, so *p is always in the heap, and not in a store-buffer?

Powered by Google App Engine
This is Rietveld 408576698