if (max_old_gen_size > 0) max_old_generation_size_ = max_old_gen_size;
if (max_executable_size > 0) {
- max_executable_size_ = RoundUp(max_executable_size_, Page::kPageSize);
+ max_executable_size_ = RoundUp(max_executable_size, Page::kPageSize);
}
// The new space size must be a power of two to support single-bit testing
// -----------------------------------------------------------------------------
// MemoryAllocator
//
-intptr_t MemoryAllocator::capacity_ = 0;
+intptr_t MemoryAllocator::capacity_ = 0;
intptr_t MemoryAllocator::capacity_executable_ = 0;
-intptr_t MemoryAllocator::size_ = 0;
+intptr_t MemoryAllocator::size_ = 0;
intptr_t MemoryAllocator::size_executable_ = 0;
List<MemoryAllocator::MemoryAllocationCallbackRegistration>
// from new space.
FLAG_gc_global = true;
FLAG_always_compact = true;
- Heap::ConfigureHeap(2*256*KB, 4*MB, 0);
+ Heap::ConfigureHeap(2*256*KB, 4*MB, 4*MB);
InitializeVM();
TEST(NoPromotion) {
- Heap::ConfigureHeap(2*256*KB, 4*MB, 0);
+ Heap::ConfigureHeap(2*256*KB, 4*MB, 4*MB);
// Test the situation that some objects in new space are promoted to
// the old space