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

Issue 10696029: Implement a 2-pass heap verification algorithm. (Closed)

Created:
8 years, 5 months ago by cshapiro
Modified:
8 years, 5 months ago
Reviewers:
siva, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Implement a 2-pass heap verification algorithm. The previous algorithm would visit each pointer in the heap and verify it without regard for whether the pointer had already been visited. The new algorithm computes the set of allocated objects and verifies each object in the set. In a second pass, each pointer is visited and tested for membership in the set. BUG=2606 Committed: https://code.google.com/p/dart/source/detail?r=9532

Patch Set 1 #

Patch Set 2 : add missing delete #

Total comments: 8

Patch Set 3 : address review comments #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -25 lines) Patch
M runtime/vm/dart.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M runtime/vm/heap.h View 1 2 3 chunks +12 lines, -0 lines 0 comments Download
M runtime/vm/heap.cc View 1 2 4 chunks +64 lines, -10 lines 0 comments Download
M runtime/vm/heap_profiler.h View 1 chunk +2 lines, -2 lines 0 comments Download
A runtime/vm/object_set.h View 1 2 1 chunk +74 lines, -0 lines 0 comments Download
M runtime/vm/pages.h View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/pages.cc View 3 chunks +19 lines, -2 lines 0 comments Download
M runtime/vm/scavenger.h View 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/scavenger.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/verifier.h View 3 chunks +23 lines, -2 lines 0 comments Download
M runtime/vm/verifier.cc View 1 2 4 chunks +13 lines, -6 lines 0 comments Download
M runtime/vm/visitor.h View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
cshapiro
I have yet to finish running my benchmark (verify takes forever on the old algorithm) ...
8 years, 5 months ago (2012-06-28 05:07:39 UTC) #1
Ivan Posva
Cosmetic comments only. At least the major ones should be addressed, otherwise LGTM. -Ivan https://chromiumcodereview.appspot.com/10696029/diff/3001/runtime/vm/heap.cc ...
8 years, 5 months ago (2012-06-29 22:20:41 UTC) #2
cshapiro
https://chromiumcodereview.appspot.com/10696029/diff/3001/runtime/vm/heap.cc File runtime/vm/heap.cc (right): https://chromiumcodereview.appspot.com/10696029/diff/3001/runtime/vm/heap.cc#newcode257 runtime/vm/heap.cc:257: ObjectSet* Heap::GetAllocatedObjects() const { That is reasonable. Renamed. Done. ...
8 years, 5 months ago (2012-07-10 21:48:17 UTC) #3
Ivan Posva
8 years, 5 months ago (2012-07-10 22:01:36 UTC) #4
Still LGTM. -ip

Powered by Google App Engine
This is Rietveld 408576698