Home
last modified time | relevance | path

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

12

/art/runtime/gc/space/
Dspace_test.h141 std::unique_ptr<Space> space(create_space("test", 16 * MB, 32 * MB, 32 * MB, nullptr)); in InitTestBody()
146 std::unique_ptr<Space> space(create_space("test", 16 * MB, 16 * MB, 16 * MB, nullptr)); in InitTestBody()
151 std::unique_ptr<Space> space(create_space("test", 32 * MB, 16 * MB, 16 * MB, nullptr)); in InitTestBody()
156 std::unique_ptr<Space> space(create_space("test", 16 * MB, 16 * MB, 32 * MB, nullptr)); in InitTestBody()
161 std::unique_ptr<Space> space(create_space("test", 16 * MB, 8 * MB, 32 * MB, nullptr)); in InitTestBody()
166 std::unique_ptr<Space> space(create_space("test", 8 * MB, 16 * MB, 32 * MB, nullptr)); in InitTestBody()
171 std::unique_ptr<Space> space(create_space("test", 8 * MB, 32 * MB, 16 * MB, nullptr)); in InitTestBody()
182 MallocSpace* space(create_space("test", 4 * MB, 16 * MB, 16 * MB, nullptr)); in ZygoteSpaceTestBody()
194 hs.NewHandle(Alloc(space, self, 1 * MB, &ptr1_bytes_allocated, &ptr1_usable_size, in ZygoteSpaceTestBody()
197 EXPECT_LE(1U * MB, ptr1_bytes_allocated); in ZygoteSpaceTestBody()
[all …]
Dlarge_object_space_test.cc43 los = space::FreeListSpace::Create("large object space", nullptr, 128 * MB); in LargeObjectTest()
105 mirror::Object* obj = los->Alloc(self, 100 * MB, &bytes_allocated, nullptr, in LargeObjectTest()
150 los = space::FreeListSpace::Create("large object space", nullptr, 128 * MB); in RaceTest()
Dregion_space.h169 static constexpr size_t kRegionSize = 1 * MB;
322 DCHECK_LT(begin_ + 1 * MB, top_); in IsLarge()
417 DCHECK_LT(begin_ + 1 * MB, top_); in ObjectsAllocated()
Dimage_space.cc439 static constexpr uint64_t kLowSpaceValue = 50 * MB;
440 static constexpr uint64_t kTmpFsSentinelValue = 384 * MB;
466 static_cast<double>(fs_free_size) / MB, in CheckSpace()
467 kLowSpaceValue / MB); in CheckSpace()
/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()
Dmod_union_table_test.cc173 "other space", 128 * KB, 4 * MB, 4 * MB, nullptr, false)); in RunTest()
Dread_barrier_table.h83 static constexpr size_t kRegionSize = 1 * MB;
Dcard_table_test.cc52 CardTableTest() : heap_begin_(reinterpret_cast<uint8_t*>(0x2000000)), heap_size_(2 * MB) { in CardTableTest()
/art/compiler/linker/arm/
Drelative_patcher_thumb2_test.cc244 constexpr uint32_t max_positive_disp = 16 * MB - 2u + 4u /* PC adjustment */; in TEST_F()
264 constexpr uint32_t just_over_max_negative_disp = 16 * MB - 4u /* PC adjustment */; in TEST_F()
284 constexpr uint32_t just_over_max_positive_disp = 16 * MB + 4u /* PC adjustment */; in TEST_F()
298 ASSERT_GE(diff, 16 * MB - (1u << 9)); // Simple encoding, unknown bits fit into the low 8 bits. in TEST_F()
313 constexpr uint32_t just_over_max_negative_disp = 16 * MB + 2 - 4u /* PC adjustment */; in TEST_F()
/art/runtime/jit/
Djit_code_cache_test.cc34 constexpr size_t kSize = 1 * MB; in TEST_F()
70 constexpr size_t kSize = 1 * MB; in TEST_F()
Djit_code_cache.h45 static constexpr size_t kDefaultCapacity = 2 * MB;
/art/compiler/linker/arm64/
Drelative_patcher_arm64_test.cc75 constexpr uint32_t kSmallChunkSize = 2 * MB; in Create2MethodsWithGap()
243 ASSERT_LT(b_diff, 128 * MB); in TestNopsAdrpInsn2LdrHasThunk()
398 constexpr uint32_t max_positive_disp = 128 * MB - 4u; in TEST_F()
422 constexpr uint32_t max_negative_disp = 128 * MB; in TEST_F()
446 constexpr uint32_t just_over_max_positive_disp = 128 * MB; in TEST_F()
460 ASSERT_LT(diff, 128 * MB); in TEST_F()
475 constexpr uint32_t just_over_max_negative_disp = 128 * MB + 4; in TEST_F()
489 ASSERT_LT(diff, 128 * MB); in TEST_F()
/art/compiler/utils/
Dswap_space_test.cc39 SwapSpace pool(fd, 1 * MB); in SwapTest()
Dassembler.cc86 size_t new_capacity = std::min(old_capacity * 2, old_capacity + 1 * MB); in ExtendCapacity()
Dswap_space.cc30 static constexpr size_t kMininumMapSize = 16 * MB;
/art/runtime/
Dglobals.h28 static constexpr size_t MB = KB * KB; variable
Dutils_test.cc162 EXPECT_EQ("1024KB", PrettySize(1 * MB)); in TEST_F()
163 EXPECT_EQ("10MB", PrettySize(10 * MB)); in TEST_F()
164 EXPECT_EQ("100MB", PrettySize(100 * MB)); in TEST_F()
Dthread_pool.h53 static const size_t kDefaultStackSize = 1 * MB;
Dparsed_options_test.cc78 EXPECT_PARSED_EQ(1 * MB, Opt::StackSize); in TEST_F()
Dcommon_runtime_test.cc300 std::string min_heap_string(StringPrintf("-Xms%zdm", gc::Heap::kDefaultInitialSize / MB)); in SetUp()
301 std::string max_heap_string(StringPrintf("-Xmx%zdm", gc::Heap::kDefaultMaximumSize / MB)); in SetUp()
Druntime_options.def97 RUNTIME_OPTIONS_KEY (unsigned int, MethodTraceFileSize, 10 * MB)
Dutils.cc121 *stack_size = 8 * MB; in GetThreadStack()
470 static const int64_t kBytesPerUnit[] = { 1, KB, MB, GB }; in PrettySize()
/art/cmdline/
Dcmdline_parser_test.cc200 EXPECT_SINGLE_PARSE_VALUE(MemoryKiB(1234*MB), "-Xms1234m", M::MemoryInitialSize); in TEST_F()
433 … EXPECT_SINGLE_PARSE_VALUE(MemoryKiB(16 * MB), "-Xjitcodecachesize:16M", M::JITCodeCacheCapacity); in TEST_F()
/art/runtime/gc/
Dheap.h138 static constexpr size_t kDefaultInitialSize = 2 * MB;
139 static constexpr size_t kDefaultMaximumSize = 256 * MB;
140 static constexpr size_t kDefaultNonMovingSpaceCapacity = 64 * MB;
141 static constexpr size_t kDefaultMaxFree = 2 * MB;
/art/runtime/gc/collector/
Dsemi_space.cc59 static constexpr size_t kBytesPromotedThreshold = 4 * MB;
60 static constexpr size_t kLargeObjectBytesAllocatedThreshold = 16 * MB;

12