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

Unified Diff: runtime/vm/virtual_memory_android.cc

Issue 1406013004: Fixes shutdown crashes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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
Index: runtime/vm/virtual_memory_android.cc
diff --git a/runtime/vm/virtual_memory_android.cc b/runtime/vm/virtual_memory_android.cc
index b7de39be2cfe4771e0efd0079d08dccb02cc083c..2def1e7fb2831aa7e71b931ee938bdc54e3f0841 100644
--- a/runtime/vm/virtual_memory_android.cc
+++ b/runtime/vm/virtual_memory_android.cc
@@ -53,7 +53,9 @@ static void unmap(void* address, intptr_t size) {
VirtualMemory::~VirtualMemory() {
- unmap(address(), reserved_size_);
+ if (!dummy()) {
+ unmap(address(), reserved_size_);
+ }
}

Powered by Google App Engine
This is Rietveld 408576698