Chromium Code Reviews| Index: runtime/vm/heap.h |
| =================================================================== |
| --- runtime/vm/heap.h (revision 43033) |
| +++ runtime/vm/heap.h (working copy) |
| @@ -58,9 +58,7 @@ |
| kGCTestCase, |
| }; |
| - // Default allocation sizes in MB for the old gen and code heaps. |
| - static const intptr_t kHeapSizeInMWords = 128; |
| - static const intptr_t kHeapSizeInMB = kHeapSizeInMWords * kWordSize; |
| + // Default allocation sizes in MB for the code heap. |
| static const intptr_t kCodeHeapSizeInMB = 18; |
|
Ivan Posva
2015/01/22 01:45:15
Where is kCodeHeapSizeInMB being used?
koda
2015/01/22 03:26:08
Nowhere! Remove.
|
| #if defined(DEBUG) |
| @@ -161,7 +159,8 @@ |
| // Initialize the heap and register it with the isolate. |
| static void Init(Isolate* isolate, |
| intptr_t max_new_gen_words, |
| - intptr_t max_old_gen_words); |
| + intptr_t max_old_gen_words, |
| + intptr_t max_external_words); |
| // Verify that all pointers in the heap point to the heap. |
| bool Verify(MarkExpectation mark_expectation = kForbidMarked) const; |
| @@ -284,7 +283,8 @@ |
| Heap(Isolate* isolate, |
| intptr_t max_new_gen_semi_words, // Max capacity of new semi-space. |
| - intptr_t max_old_gen_words); |
| + intptr_t max_old_gen_words, |
| + intptr_t max_external_words); |
| uword AllocateNew(intptr_t size); |
| uword AllocateOld(intptr_t size, HeapPage::PageType type); |