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

Unified Diff: runtime/vm/virtual_memory.cc

Issue 2594733003: Fuchsia: Memory reservation and partial unmapping (Closed)
Patch Set: Format Created 4 years 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/virtual_memory.h ('k') | runtime/vm/virtual_memory_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/virtual_memory.cc
diff --git a/runtime/vm/virtual_memory.cc b/runtime/vm/virtual_memory.cc
index 1e62f8b7a380a7645ac918b88dd2c137b3c4ef30..93e3b84e08c8c17ec6baaeab7ed9482abadd43d3 100644
--- a/runtime/vm/virtual_memory.cc
+++ b/runtime/vm/virtual_memory.cc
@@ -20,7 +20,7 @@ void VirtualMemory::Truncate(intptr_t new_size, bool try_unmap) {
ASSERT(new_size <= size());
if (try_unmap &&
(reserved_size_ == size()) && /* Don't create holes in reservation. */
- FreeSubSegment(reinterpret_cast<void*>(start() + new_size),
+ FreeSubSegment(handle(), reinterpret_cast<void*>(start() + new_size),
size() - new_size)) {
reserved_size_ = new_size;
}
« no previous file with comments | « runtime/vm/virtual_memory.h ('k') | runtime/vm/virtual_memory_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698