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

Unified Diff: runtime/vm/pages.cc

Issue 14190014: - Disassociate old page size from new allocatable size. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 22017)
+++ runtime/vm/pages.cc (working copy)
@@ -32,15 +32,13 @@
HeapPage* result = reinterpret_cast<HeapPage*>(memory->address());
result->memory_ = memory;
result->next_ = NULL;
- result->used_ = 0;
result->executable_ = is_executable;
return result;
}
HeapPage* HeapPage::Allocate(intptr_t size, PageType type) {
- VirtualMemory* memory =
- VirtualMemory::ReserveAligned(size, PageSpace::kPageAlignment);
+ VirtualMemory* memory = VirtualMemory::Reserve(size);
return Initialize(memory, type);
}
« runtime/vm/heap.h ('K') | « runtime/vm/pages.h ('k') | runtime/vm/stub_code_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698