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

Unified Diff: runtime/vm/virtual_memory.h

Issue 641243004: Add VerifiedMemory helper for write-barrier verification. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/verified_memory_test.cc ('k') | runtime/vm/vm_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/virtual_memory.h
===================================================================
--- runtime/vm/virtual_memory.h (revision 41212)
+++ runtime/vm/virtual_memory.h (working copy)
@@ -60,9 +60,14 @@
static bool InSamePage(uword address0, uword address1);
- // Truncate this virtual memory segment.
+ // Truncate this virtual memory segment. If try_unmap is false, the
+ // memory beyond the new end is still accessible, but will be returned
+ // upon destruction.
void Truncate(intptr_t new_size, bool try_unmap = true);
+ // Commit a reserved memory area, so that the memory can be accessed.
+ bool Commit(uword addr, intptr_t size, bool is_executable);
+
private:
static VirtualMemory* ReserveInternal(intptr_t size);
@@ -76,9 +81,6 @@
region_(region.pointer(), region.size()),
reserved_size_(region.size()) { }
- // Commit a reserved memory area, so that the memory can be accessed.
- bool Commit(uword addr, intptr_t size, bool is_executable);
-
MemoryRegion region_;
// The size of the underlying reservation not yet given back to the OS.
« no previous file with comments | « runtime/vm/verified_memory_test.cc ('k') | runtime/vm/vm_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698