| 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)
|
|
|