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

Unified Diff: runtime/vm/virtual_memory_openbsd.cc

Issue 1559053002: Refs #10260 OpenBSD support #25327 Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address code review issues Created 4 years, 11 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/thread_interrupter_openbsd.cc ('k') | runtime/vm/vm.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/virtual_memory_openbsd.cc
diff --git a/runtime/vm/virtual_memory_android.cc b/runtime/vm/virtual_memory_openbsd.cc
similarity index 94%
copy from runtime/vm/virtual_memory_android.cc
copy to runtime/vm/virtual_memory_openbsd.cc
index 0e0c1b23380041e6e9bedcccc65dad76089f3ed0..13dd23ea50ecf40f93112cb0cba2fa6f47afe3d0 100644
--- a/runtime/vm/virtual_memory_android.cc
+++ b/runtime/vm/virtual_memory_openbsd.cc
@@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
#include "vm/globals.h"
-#if defined(TARGET_OS_ANDROID)
+#if defined(TARGET_OS_OPENBSD)
#include "vm/virtual_memory.h"
@@ -53,9 +53,7 @@ static void unmap(void* address, intptr_t size) {
VirtualMemory::~VirtualMemory() {
- if (!embedder_allocated()) {
- unmap(address(), reserved_size_);
- }
+ unmap(address(), reserved_size_);
}
@@ -108,4 +106,4 @@ bool VirtualMemory::Protect(void* address, intptr_t size, Protection mode) {
} // namespace dart
-#endif // defined(TARGET_OS_ANDROID)
+#endif // defined(TARGET_OS_OPENBSD)
« no previous file with comments | « runtime/vm/thread_interrupter_openbsd.cc ('k') | runtime/vm/vm.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698