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

Unified Diff: runtime/vm/pages.cc

Issue 644453003: Simplify VirtualMemory by removing unused ReserveAligned method. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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/pages.cc
===================================================================
--- runtime/vm/pages.cc (revision 41000)
+++ runtime/vm/pages.cc (working copy)
@@ -227,7 +227,7 @@
VirtualMemory* memory = page->memory_;
const intptr_t old_page_size_in_words = (memory->size() >> kWordSizeLog2);
if (new_page_size_in_words < old_page_size_in_words) {
- memory->Truncate(memory->start(), new_page_size_in_words << kWordSizeLog2);
+ memory->Truncate(new_page_size_in_words << kWordSizeLog2);
usage_.capacity_in_words -= old_page_size_in_words;
usage_.capacity_in_words += new_page_size_in_words;
page->set_object_end(page->object_start() + new_object_size_in_bytes);

Powered by Google App Engine
This is Rietveld 408576698