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

Issue 641243004: Add VerifiedMemory helper for write-barrier verification. (Closed)

Created:
6 years, 2 months ago by koda
Modified:
6 years, 1 month ago
Reviewers:
Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Add VerifiedMemory helper for write-barrier verification. Allocates hidden extra memory after VirtualMemory, and verified writes are duplicated at a fixed offset. This CL only adds the helper. Next steps: 1. Use Reserve when reserving semi-spaces and heap pages. 2. Use Write for storing pointers (+ offset in generated code). 3. Use Accept for GC-related object lifecycle. 4. Call Verify regularly. 5. Fix failures (= places where we forget/ignore write barriers). Committed: https://code.google.com/p/dart/source/detail?r=41399

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -4 lines) Patch
M runtime/tests/vm/vm.status View 1 chunk +6 lines, -0 lines 0 comments Download
A runtime/vm/verified_memory.h View 1 2 1 chunk +88 lines, -0 lines 0 comments Download
A runtime/vm/verified_memory.cc View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
A runtime/vm/verified_memory_test.cc View 1 chunk +85 lines, -0 lines 0 comments Download
M runtime/vm/virtual_memory.h View 1 2 3 4 5 2 chunks +6 lines, -4 lines 0 comments Download
M runtime/vm/vm_sources.gypi View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
koda
6 years, 2 months ago (2014-10-21 22:17:02 UTC) #1
Ivan Posva
LGTMwC -Ivan https://codereview.chromium.org/641243004/diff/100001/runtime/vm/verified_memory.cc File runtime/vm/verified_memory.cc (right): https://codereview.chromium.org/641243004/diff/100001/runtime/vm/verified_memory.cc#newcode24 runtime/vm/verified_memory.cc:24: // Commit the offset part of the ...
6 years, 1 month ago (2014-10-29 05:06:07 UTC) #3
koda
Also upped the default offset to 32 MB for 64 bit (to match default semi ...
6 years, 1 month ago (2014-10-29 19:47:31 UTC) #4
koda
6 years, 1 month ago (2014-10-29 19:56:17 UTC) #5
Message was sent while issue was closed.
Committed patchset #6 (id:120001) manually as r41399 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698