Home
last modified time | relevance | path

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

12

/art/runtime/gc/space/
Dspace_create_test.cc62 std::unique_ptr<Space> space(CreateSpace("test", 16 * MB, 32 * MB, 32 * MB)); in TEST_P()
65 space.reset(CreateSpace("test", 16 * MB, 16 * MB, 16 * MB)); in TEST_P()
68 space.reset(CreateSpace("test", 32 * MB, 16 * MB, 16 * MB)); in TEST_P()
71 space.reset(CreateSpace("test", 16 * MB, 16 * MB, 32 * MB)); in TEST_P()
74 space.reset(CreateSpace("test", 16 * MB, 8 * MB, 32 * MB)); in TEST_P()
77 space.reset(CreateSpace("test", 8 * MB, 16 * MB, 32 * MB)); in TEST_P()
80 space.reset(CreateSpace("test", 8 * MB, 32 * MB, 16 * MB)); in TEST_P()
91 MallocSpace* space(CreateSpace("test", 4 * MB, 16 * MB, 16 * MB)); in TEST_P()
104 1 * MB, in TEST_P()
109 EXPECT_LE(1U * MB, ptr1_bytes_allocated); in TEST_P()
[all …]
Dspace_test.h325 size_t initial_size = 4 * MB; in SizeFootPrintGrowthLimitAndTrimDriver()
326 size_t growth_limit = 8 * MB; in SizeFootPrintGrowthLimitAndTrimDriver()
327 size_t capacity = 16 * MB; in SizeFootPrintGrowthLimitAndTrimDriver()
370 TEST_SizeFootPrintGrowthLimitAndTrimStatic(1MB, spaceName, spaceFn, 1 * MB) \
371 TEST_SizeFootPrintGrowthLimitAndTrimStatic(4MB, spaceName, spaceFn, 4 * MB) \
372 TEST_SizeFootPrintGrowthLimitAndTrimStatic(8MB, spaceName, spaceFn, 8 * MB)
385 TEST_SizeFootPrintGrowthLimitAndTrimRandom(1MB, spaceName, spaceFn, 1 * MB) \
386 TEST_SizeFootPrintGrowthLimitAndTrimRandom(4MB, spaceName, spaceFn, 4 * MB) \
387 TEST_SizeFootPrintGrowthLimitAndTrimRandom(8MB, spaceName, spaceFn, 8 * MB)
Dlarge_object_space_test.cc41 const size_t capacity = 128 * MB; in LargeObjectTest()
115 mirror::Object* obj = los->Alloc(self, 100 * MB, &bytes_allocated, nullptr, in LargeObjectTest()
160 los = space::FreeListSpace::Create("large object space", 128 * MB); in RaceTest()
/art/libartbase/base/
Dutils_test.cc31 EXPECT_EQ("1024KB", PrettySize(1 * MB)); in TEST_F()
32 EXPECT_EQ("10MB", PrettySize(10 * MB)); in TEST_F()
33 EXPECT_EQ("100MB", PrettySize(100 * MB)); in TEST_F()
Dglobals.h26 static constexpr size_t MB = KB * KB; variable
Dutils.cc218 10*MB, // MB up to... in PrettySize()
221 static const int64_t kBytesPerUnit[] = { 1, KB, MB, GB }; in PrettySize()
/art/runtime/gc/accounting/
Dspace_bitmap_test.cc35 size_t heap_capacity = 16 * MB; in TEST_F()
62 size_t heap_capacity = 16 * MB; in TEST_F()
93 size_t heap_capacity = 16 * MB; in TEST_F()
159 size_t heap_capacity = 16 * MB; in RunTest()
Dmod_union_table_test.cc188 "other space", 128 * KB, 4 * MB, 4 * MB, /*can_move_objects=*/ false)); in RunTest()
Dcard_table_test.cc52 CardTableTest() : heap_begin_(reinterpret_cast<uint8_t*>(0x2000000)), heap_size_(2 * MB) { in CardTableTest()
/art/dex2oat/linker/arm64/
Drelative_patcher_arm64_test.cc132 constexpr uint32_t kSmallChunkSize = 2 * MB; in Create2MethodsWithGap()
397 ASSERT_LT(b_diff, 128 * MB); in TestNopsAdrpInsn2AndUseHasThunk()
640 constexpr uint32_t just_over_max_negative_disp = 128 * MB + 4; in TEST_F()
658 ASSERT_LT(diff, 128 * MB); in TEST_F()
675 constexpr uint32_t max_positive_disp = 128 * MB - 4u; in TEST_F()
701 constexpr uint32_t max_negative_disp = 128 * MB; in TEST_F()
727 constexpr uint32_t just_over_max_positive_disp = 128 * MB; in TEST_F()
756 ASSERT_LT(diff, 128 * MB); in TEST_F()
771 constexpr uint32_t just_over_max_negative_disp = 128 * MB + 4; in TEST_F()
786 ASSERT_LT(diff, 128 * MB); in TEST_F()
[all …]
/art/dex2oat/linker/arm/
Drelative_patcher_thumb2_test.cc165 constexpr uint32_t kSmallChunkSize = 2 * MB; in Create2MethodsWithGap()
472 constexpr uint32_t just_over_max_negative_disp = 16 * MB + 2 - 4u /* PC adjustment */; in TEST_F()
508 constexpr uint32_t max_positive_disp = 16 * MB - 2u + 4u /* PC adjustment */; in TEST_F()
530 constexpr uint32_t max_negative_disp = 16 * MB - 4u /* PC adjustment */; in TEST_F()
556 constexpr uint32_t just_over_max_positive_disp = 16 * MB + 4u /* PC adjustment */; in TEST_F()
585 ASSERT_GE(diff, 16 * MB - (1u << 22)); // Simple encoding, unknown bits fit into imm10:imm11:0. in TEST_F()
601 constexpr uint32_t just_over_max_negative_disp = 16 * MB + 2 - 4u /* PC adjustment */; in TEST_F()
970 1 * MB - (kLiteralOffset2 + kPcAdjustment) in TEST_F()
989 EXPECT_EQ(2 * MB, last_method_offset - first_method_offset); in TEST_F()
1070 1 * MB - (kReachableFromOffset2 + kPcAdjustment) in TEST_F()
[all …]
/art/tools/
Dbuildbot-setup-device.sh88 buffer_size=16MB
90 buffer_size=32MB
/art/test/175-alloc-big-bignums/
Dinfo.txt5 The test allocates roughly 10GB of native memory, approximately 1MB of which
/art/compiler/utils/
Dswap_space_test.cc41 SwapSpace pool(fd, 1 * MB); in SwapTest()
Dassembler.cc79 size_t new_capacity = std::min(old_capacity * 2, old_capacity + 1 * MB); in ExtendCapacity()
Dswap_space.cc32 static constexpr size_t kMininumMapSize = 16 * MB;
/art/runtime/
Dparsed_options_test.cc93 EXPECT_PARSED_EQ(1 * MB, Opt::StackSize); in TEST_F()
94 EXPECT_PARSED_EQ(200 * MB, Opt::StopForNativeAllocs); in TEST_F()
Dthread_pool.h77 static const size_t kDefaultStackSize = 1 * MB;
Ddexopt_test.cc200 uint64_t reservation_end = ART_BASE_ADDRESS + 384 * MB; in ReserveImageSpace()
/art/libdexfile/dex/
Dstandard_dex_file.h110 return Size() + (HasHiddenapiClassData() ? 1 * MB : 0); in GetDequickenedSize()
Dcompact_dex_file.h265 return 64 * MB; in GetDequickenedSize()
/art/runtime/jit/
Djit_memory_region.cc319 if (current_capacity_ < 1 * MB) { in IncreaseCodeCacheCapacity()
322 current_capacity_ += 1 * MB; in IncreaseCodeCacheCapacity()
/art/cmdline/
Dcmdline_parser_test.cc234 EXPECT_SINGLE_PARSE_VALUE(MemoryKiB(1234*MB), "-Xms1234m", M::MemoryInitialSize); in TEST_F()
479 MemoryKiB(16 * MB), "-Xjitmaxsize:16M", M::JITCodeCacheMaxCapacity); in TEST_F()
/art/compiler/driver/
Dcompiled_method_storage.cc148 : swap_space_(swap_fd == -1 ? nullptr : new SwapSpace(swap_fd, 10 * MB)), in CompiledMethodStorage()
/art/runtime/gc/
Dheap.h137 static constexpr size_t kDefaultInitialSize = 2 * MB;
138 static constexpr size_t kDefaultMaximumSize = 256 * MB;
139 static constexpr size_t kDefaultNonMovingSpaceCapacity = 64 * MB;
140 static constexpr size_t kDefaultMaxFree = 2 * MB;

12