Home
last modified time | relevance | path

Searched refs:KB (Results 1 – 25 of 32) sorted by relevance

12

/art/runtime/
Dglobals.h27 static constexpr size_t KB = 1024; variable
28 static constexpr size_t MB = KB * KB;
29 static constexpr size_t GB = KB * KB * KB;
Dthread_linux.cc43 32 * KB < MINSIGSTKSZ ? MINSIGSTKSZ : 32 * KB;
Dutils_test.cc165 EXPECT_EQ("1024B", PrettySize(1 * KB)); in TEST_F()
166 EXPECT_EQ("10KB", PrettySize(10 * KB)); in TEST_F()
167 EXPECT_EQ("100KB", PrettySize(100 * KB)); in TEST_F()
Dparsed_options_test.cc77 EXPECT_PARSED_EQ(4 * KB, Opt::MemoryMaximumSize); in TEST_F()
Dmem_map_test.cc111 EXPECT_LE(64 * KB, start); in TEST_F()
Dmonitor_test.cc75 size_t length = 128 * KB / 4; in FillHeap()
Dutils.cc140 std::vector<char> buf(8 * KB); in ReadFileToString()
470 static const int64_t kBytesPerUnit[] = { 1, KB, MB, GB }; in PrettySize()
Dmem_map.cc86 static constexpr uintptr_t LOW_MEM_START = 64 * KB;
Dthread.h145 static constexpr size_t kStackOverflowProtectedSize = 4 * KB;
/art/runtime/arch/
Dinstruction_set.cc116 static constexpr size_t kDefaultStackOverflowReservedBytes = 16 * KB;
120 static constexpr size_t kArmStackOverflowReservedBytes = 8 * KB;
121 static constexpr size_t kArm64StackOverflowReservedBytes = 8 * KB;
122 static constexpr size_t kX86StackOverflowReservedBytes = 8 * KB;
123 static constexpr size_t kX86_64StackOverflowReservedBytes = 8 * KB;
/art/runtime/gc/allocator/
Drosalloc.h302 DCHECK(16 <= size && ((size < 1 * KB && size % 16 == 0) || size == 1 * KB || size == 2 * KB)); in BracketSizeToIndex()
304 if (UNLIKELY(size == 1 * KB)) { in BracketSizeToIndex()
306 } else if (UNLIKELY(size == 2 * KB)) { in BracketSizeToIndex()
309 DCHECK(size < 1 * KB); in BracketSizeToIndex()
330 } else if (512 < size && size <= 1 * KB) { in RoundToBracketSize()
331 return 1 * KB; in RoundToBracketSize()
333 DCHECK(1 * KB < size && size <= 2 * KB); in RoundToBracketSize()
334 return 2 * KB; in RoundToBracketSize()
342 } else if (512 < size && size <= 1 * KB) { in SizeToIndex()
345 DCHECK(1 * KB < size && size <= 2 * KB); in SizeToIndex()
[all …]
/art/compiler/utils/
Dstack_checks.h26 static constexpr size_t kLargeFrameSize = 2 * KB;
31 static constexpr size_t kSmallFrameSize = 1 * KB;
Dassembler.cc40 static const size_t kInitialBufferCapacity = 4 * KB; in AssemblerBuffer()
/art/compiler/
Dimage_test.cc203 uint32_t image_size_ = 16 * KB; in TEST_F()
204 uint32_t image_roots = ART_BASE_ADDRESS + (1 * KB); in TEST_F()
206 uint32_t oat_file_begin = ART_BASE_ADDRESS + (4 * KB); // page aligned in TEST_F()
207 uint32_t oat_data_begin = ART_BASE_ADDRESS + (8 * KB); // page aligned in TEST_F()
208 uint32_t oat_data_end = ART_BASE_ADDRESS + (9 * KB); in TEST_F()
209 uint32_t oat_file_end = ART_BASE_ADDRESS + (10 * KB); in TEST_F()
Dbuffered_output_stream.h40 static const size_t kBufferSize = 8 * KB;
/art/runtime/jit/
Djit_code_cache_test.cc48 uint8_t* const reserved_code = code_cache->ReserveCode(soa.Self(), 4 * KB); in TEST_F()
77 constexpr size_t kCodeArrSize = 4 * KB; in TEST_F()
78 constexpr size_t kDataArrSize = 4 * KB; in TEST_F()
/art/runtime/gc/space/
Dspace_test.h644 TEST_SizeFootPrintGrowthLimitAndTrimStatic(1KB, spaceName, spaceFn, 1 * KB) \
645 TEST_SizeFootPrintGrowthLimitAndTrimStatic(4KB, spaceName, spaceFn, 4 * KB) \
659 TEST_SizeFootPrintGrowthLimitAndTrimRandom(1KB, spaceName, spaceFn, 1 * KB) \
660 TEST_SizeFootPrintGrowthLimitAndTrimRandom(4KB, spaceName, spaceFn, 4 * KB) \
Dlarge_object_space_test.cc156 thread_pool.AddTask(self, new AllocRaceTask(i, kNumIterations, 16 * KB, los)); in RaceTest()
/art/runtime/base/
Darena_allocator.h118 static constexpr size_t kDefaultSize = 128 * KB;
/art/runtime/gc/accounting/
Dmod_union_table_test.cc173 "other space", 128 * KB, 4 * MB, 4 * MB, nullptr, false)); in RunTest()
/art/compiler/linker/
Drelative_patcher_test.h62 patched_code_.reserve(16 * KB); in RelativePatcherTest()
/art/runtime/gc/collector/
Dmark_sweep.cc649 static const size_t kMaxSize = 1 * KB;
968 delta = RoundUp(delta, KB); in RecursiveMark()
969 if (delta < 16 * KB) delta = end - begin; in RecursiveMark()
/art/cmdline/
Dcmdline_parser_test.cc432 … EXPECT_SINGLE_PARSE_VALUE(MemoryKiB(16 * KB), "-Xjitcodecachesize:16K", M::JITCodeCacheCapacity); in TEST_F()
Dcmdline_types.h231 mul = KB;
/art/runtime/gc/
Dheap.cc85 static constexpr size_t kMinConcurrentRemainingBytes = 128 * KB;
86 static constexpr size_t kMaxConcurrentRemainingBytes = 512 * KB;
97 static const size_t kDefaultMarkStackSize = 64 * KB;
107 static constexpr size_t kGcAlotAllocationStackSize = 4 * KB /
110 static constexpr size_t kVerifyObjectAllocationStackSize = 16 * KB /
1430 if (UNLIKELY(static_cast<size_t>(num_bytes_allocated_.LoadRelaxed()) < 10 * KB)) { in VerifyObjectBody()
2415 ATRACE_INT("Heap size (KB)", bytes_allocated_before_gc / KB); in CollectGarbageInternal()

12