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

Unified Diff: vm/pages.h

Issue 8962006: - Honor max_capacity even for large page allocation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 9 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 | « no previous file | vm/pages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/pages.h
===================================================================
--- vm/pages.h (revision 2528)
+++ vm/pages.h (working copy)
@@ -102,6 +102,12 @@
void FreeLargePage(HeapPage* page, HeapPage* previous_page);
void FreePages(HeapPage* pages);
+ static intptr_t LargePageSizeFor(intptr_t size);
+ bool CanIncreaseCapacity(intptr_t increase) {
+ ASSERT(capacity_ < max_capacity_);
+ return increase <= (max_capacity_ - capacity_);
+ }
+
uword TryBumpAllocate(intptr_t size);
FreeList freelist_;
« no previous file with comments | « no previous file | vm/pages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698