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

Unified Diff: runtime/vm/virtual_memory.h

Issue 1406013004: Fixes shutdown crashes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: address comments Created 5 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/service_isolate.cc ('k') | runtime/vm/virtual_memory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/virtual_memory.h
diff --git a/runtime/vm/virtual_memory.h b/runtime/vm/virtual_memory.h
index 44f34910e891741487816ce99bf05c66b6c6c45b..2970979cb57daf1882835ea8d88f367ee37675c9 100644
--- a/runtime/vm/virtual_memory.h
+++ b/runtime/vm/virtual_memory.h
@@ -69,6 +69,8 @@ class VirtualMemory {
// Commit a reserved memory area, so that the memory can be accessed.
bool Commit(uword addr, intptr_t size, bool is_executable);
+ bool embedder_allocated() const { return embedder_allocated_; }
+
static VirtualMemory* ForInstructionsSnapshot(void* pointer, uword size);
private:
@@ -92,6 +94,9 @@ class VirtualMemory {
static uword page_size_;
+ // True for a region provided by the embedder.
+ bool embedder_allocated_;
+
DISALLOW_IMPLICIT_CONSTRUCTORS(VirtualMemory);
};
« no previous file with comments | « runtime/vm/service_isolate.cc ('k') | runtime/vm/virtual_memory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698