Home
last modified time | relevance | path

Searched refs:MB (Results 1 – 18 of 18) sorted by relevance

/art/runtime/gc/space/
Dspace_test.h132 std::unique_ptr<Space> space(create_space("test", 16 * MB, 32 * MB, 32 * MB, nullptr)); in InitTestBody()
137 std::unique_ptr<Space> space(create_space("test", 16 * MB, 16 * MB, 16 * MB, nullptr)); in InitTestBody()
142 std::unique_ptr<Space> space(create_space("test", 32 * MB, 16 * MB, 16 * MB, nullptr)); in InitTestBody()
147 std::unique_ptr<Space> space(create_space("test", 16 * MB, 16 * MB, 32 * MB, nullptr)); in InitTestBody()
152 std::unique_ptr<Space> space(create_space("test", 16 * MB, 8 * MB, 32 * MB, nullptr)); in InitTestBody()
157 std::unique_ptr<Space> space(create_space("test", 8 * MB, 16 * MB, 32 * MB, nullptr)); in InitTestBody()
162 std::unique_ptr<Space> space(create_space("test", 8 * MB, 32 * MB, 16 * MB, nullptr)); in InitTestBody()
173 MallocSpace* space(create_space("test", 4 * MB, 16 * MB, 16 * MB, nullptr)); in ZygoteSpaceTestBody()
185 hs.NewHandle(Alloc(space, self, 1 * MB, &ptr1_bytes_allocated, &ptr1_usable_size))); in ZygoteSpaceTestBody()
187 EXPECT_LE(1U * MB, ptr1_bytes_allocated); in ZygoteSpaceTestBody()
[all …]
Dlarge_object_space_test.cc41 los = space::FreeListSpace::Create("large object space", nullptr, 128 * MB); in LargeObjectTest()
88 mirror::Object* obj = los->Alloc(Thread::Current(), 100 * MB, &bytes_allocated, nullptr); in LargeObjectTest()
131 los = space::FreeListSpace::Create("large object space", nullptr, 128 * MB); in RaceTest()
/art/runtime/gc/accounting/
Dspace_bitmap_test.cc34 size_t heap_capacity = 16 * MB; in TEST_F()
61 size_t heap_capacity = 16 * MB; in TEST_F()
116 size_t heap_capacity = 16 * MB; in RunTest()
Dcard_table_test.cc50 CardTableTest() : heap_begin_(reinterpret_cast<byte*>(0x2000000)), heap_size_(2 * MB) { in CardTableTest()
/art/runtime/
Dglobals.h32 static constexpr size_t MB = KB * KB; variable
Dutils_test.cc164 EXPECT_EQ("1024KB", PrettySize(1 * MB)); in TEST_F()
165 EXPECT_EQ("10MB", PrettySize(10 * MB)); in TEST_F()
166 EXPECT_EQ("100MB", PrettySize(100 * MB)); in TEST_F()
Dparsed_options_test.cc66 EXPECT_EQ(1 * MB, parsed->stack_size_); in TEST_F()
Dcommon_runtime_test.cc194 std::string min_heap_string(StringPrintf("-Xms%zdm", gc::Heap::kDefaultInitialSize / MB)); in SetUp()
195 std::string max_heap_string(StringPrintf("-Xmx%zdm", gc::Heap::kDefaultMaximumSize / MB)); in SetUp()
Dthread_pool.h40 static const size_t kDefaultStackSize = 1 * MB;
Dparsed_options.cc79 mul = MB; in ParseMemoryOption()
271 method_trace_file_size_ = 10 * MB; in Parse()
Dutils.cc460 static const int64_t kBytesPerUnit[] = { 1, KB, MB, GB }; in PrettySize()
Dthread.cc212 stack_size += 1 * MB; in FixStackSize()
/art/runtime/gc/
Dheap.h134 static constexpr size_t kDefaultInitialSize = 2 * MB;
135 static constexpr size_t kDefaultMaximumSize = 256 * MB;
136 static constexpr size_t kDefaultNonMovingSpaceCapacity = 64 * MB;
137 static constexpr size_t kDefaultMaxFree = 2 * MB;
Dheap.cc104 static constexpr size_t kGSSBumpPointerSpaceCapacity = 32 * MB;
171 : (kVerifyObjectSupport > kVerifyObjectModeFast) ? KB : MB), in Heap()
269 request_begin = reinterpret_cast<byte*>(300 * MB); in Heap()
/art/compiler/utils/
Dassembler.cc85 size_t new_capacity = std::min(old_capacity * 2, old_capacity + 1 * MB); in ExtendCapacity()
/art/runtime/gc/collector/
Dsemi_space.cc58 static constexpr size_t kBytesPromotedThreshold = 4 * MB;
59 static constexpr size_t kLargeObjectBytesAllocatedThreshold = 16 * MB;
/art/runtime/gc/allocator/
Drosalloc.h402 static constexpr size_t kDefaultPageReleaseSizeThreshold = 4 * MB;
Drosalloc.cc171 size_t increment = std::min(std::max(2 * MB, req_byte_size - last_free_page_run_size), in AllocPages()