/art/runtime/gc/ |
D | task_processor_test.cc | 32 RecursiveTask(TaskProcessor* task_processor, Atomic<size_t>* counter, size_t max_recursion) in RecursiveTask() argument 33 : HeapTask(NanoTime() + MsToNs(10)), task_processor_(task_processor), counter_(counter), in RecursiveTask() 71 Atomic<size_t> counter(0); in TEST_F() local 72 task_processor.AddTask(self, new RecursiveTask(&task_processor, &counter, kRecursion)); in TEST_F() 79 while (counter.load(std::memory_order_seq_cst) != kRecursion) { in TEST_F() 90 counter.store(0, std::memory_order_seq_cst); in TEST_F() 95 task_processor.AddTask(self, new RecursiveTask(&task_processor, &counter, kRecursion)); in TEST_F() 100 ASSERT_EQ(counter.load(std::memory_order_seq_cst), kRecursion); in TEST_F() 105 TestOrderTask(uint64_t expected_time, size_t expected_counter, size_t* counter) in TestOrderTask() argument 106 : HeapTask(expected_time), expected_counter_(expected_counter), counter_(counter) { in TestOrderTask() [all …]
|
/art/profman/ |
D | boot_image_profile.cc | 59 size_t counter = 0; in GenerateBootImageProfile() local 63 ++counter; in GenerateBootImageProfile() 71 if (counter >= options.compiled_method_threshold) { in GenerateBootImageProfile() 105 size_t counter = 0; in GenerateBootImageProfile() local 110 ++counter; in GenerateBootImageProfile() 113 if (counter == 0) { in GenerateBootImageProfile() 116 if (counter >= options.image_class_theshold) { in GenerateBootImageProfile() 119 } else if (is_clean && counter >= options.image_class_clean_theshold) { in GenerateBootImageProfile()
|
/art/test/135-MirandaDispatch/src/ |
D | Main.java | 20 static int counter = 0; field in Main 31 ++counter; in m() 46 if (counter != loopIterations * loopIterations) { in main() 47 System.out.println("Expected " + loopIterations * loopIterations + " got " + counter); in main()
|
/art/test/674-hotness-compiled/src/ |
D | Main.java | 33 int counter = getHotnessCounter(Main.class, "$noinline$hotnessCount"); in main() local 34 if (counter == 0) { in main() 39 if (getHotnessCounter(Main.class, "$noinline$hotnessCountWithLoop") <= counter) { in main()
|
/art/test/1339-dead-reference-safe/src/ |
D | Main.java | 41 public static void $noinline$gcAndCheck(AtomicInteger counter, int expected, String label, in $noinline$gcAndCheck() argument 45 int count = counter.get(); in $noinline$gcAndCheck() 47 if (counter.get() != expected && expected != -1) { in $noinline$gcAndCheck()
|
/art/libartbase/base/ |
D | debug_stack.h | 58 explicit DebugStackReferenceImpl(DebugStackRefCounterImpl<false>* counter ATTRIBUTE_UNUSED) {} in DebugStackReferenceImpl() 92 explicit DebugStackReferenceImpl(DebugStackRefCounterImpl<kIsDebug>* counter) in DebugStackReferenceImpl() argument 93 : counter_(counter), ref_count_(counter->IncrementRefCount()) { in DebugStackReferenceImpl()
|
D | variant_map.h | 80 static size_t counter = 0; in AllocateCounter() local 81 counter++; in AllocateCounter() 83 return counter; in AllocateCounter()
|
/art/test/566-polymorphic-inlining/src/ |
D | Main.java | 81 assertEquals(20001, counter); in main() 132 counter++; in increment() 134 public static int counter = 0; field in Main
|
/art/test/441-checker-inliner/src/ |
D | Main.java | 198 private static int counter = 42; field in Main 201 return ++counter; in incCounter()
|
/art/test/114-ParallelGC/src/ |
D | Main.java | 33 private final static AtomicInteger counter = new AtomicInteger(); field in Main 112 int number = counter.incrementAndGet(); in work()
|
/art/test/906-iterate-heap/ |
D | iterate_heap.cc | 83 : counter(_counter), in Java_art_Test906_iterateThroughHeapCount() 91 counter++; in Java_art_Test906_iterateThroughHeapCount() 92 if (counter == stop_after) { in Java_art_Test906_iterateThroughHeapCount() 98 jint counter; in Java_art_Test906_iterateThroughHeapCount() member in art::Test906IterateHeap::Java_art_Test906_iterateThroughHeapCount::CountIterationConfig 105 if (config.counter > config.stop_after) { in Java_art_Test906_iterateThroughHeapCount() 109 return config.counter; in Java_art_Test906_iterateThroughHeapCount()
|
/art/runtime/ |
D | oat.cc | 338 ssize_t counter = static_cast<ssize_t>(index); in GetStoreKeyValuePairByIndex() local 340 while (ptr < end && counter >= 0) { in GetStoreKeyValuePairByIndex() 347 if (counter == 0) { in GetStoreKeyValuePairByIndex() 352 counter--; in GetStoreKeyValuePairByIndex()
|
D | class_loader_context.cc | 120 uint32_t counter = 1; in FindMatchingSharedLibraryCloseMarker() local 124 while (counter != 0) { in FindMatchingSharedLibraryCloseMarker() 137 --counter; in FindMatchingSharedLibraryCloseMarker() 143 ++counter; in FindMatchingSharedLibraryCloseMarker()
|
D | debugger.cc | 3181 size_t* counter = GetReferenceCounterForEvent(req.InstrumentationEvent()); in RequestDeoptimizationLocked() local 3182 CHECK(counter != nullptr) << StringPrintf("No counter for instrumentation event 0x%x", in RequestDeoptimizationLocked() 3184 if (*counter == 0) { in RequestDeoptimizationLocked() 3189 *counter = *counter + 1; in RequestDeoptimizationLocked() 3194 size_t* counter = GetReferenceCounterForEvent(req.InstrumentationEvent()); in RequestDeoptimizationLocked() local 3195 CHECK(counter != nullptr) << StringPrintf("No counter for instrumentation event 0x%x", in RequestDeoptimizationLocked() 3197 *counter = *counter - 1; in RequestDeoptimizationLocked() 3198 if (*counter == 0) { in RequestDeoptimizationLocked()
|
/art/test/547-regression-trycatch-critic-edge/smali/ |
D | TestCase.smali | 29 move v2, p0 # v2 = outer loop counter 36 move v3, p1 # v3 = inner loop counter
|
/art/runtime/gc/accounting/ |
D | space_bitmap_test.cc | 135 explicit SimpleCounter(size_t* counter) : count_(counter) {} in SimpleCounter() argument
|
/art/test/989-method-trace-throw/src/art/ |
D | Test989.java | 431 static int counter = 0; field in Test989 433 return new TestObject(counter++); in mkTestObject()
|
/art/compiler/optimizing/ |
D | intrinsics_x86_64.cc | 1385 CpuRegister counter = locations->GetTemp(0).AsRegister<CpuRegister>(); in GenerateStringIndexOf() local 1392 DCHECK_EQ(counter.AsRegister(), RCX); in GenerateStringIndexOf() 1442 __ movl(counter, string_length); in GenerateStringIndexOf() 1453 __ xorl(counter, counter); in GenerateStringIndexOf() 1455 __ cmov(kGreater, counter, start_index, /* is64bit= */ false); // 32-bit copy is enough. in GenerateStringIndexOf() 1461 __ leaq(string_obj, Address(string_obj, counter, ScaleFactor::TIMES_1, value_offset)); in GenerateStringIndexOf() 1465 __ leaq(string_obj, Address(string_obj, counter, ScaleFactor::TIMES_2, value_offset)); in GenerateStringIndexOf() 1468 __ leaq(string_obj, Address(string_obj, counter, ScaleFactor::TIMES_2, value_offset)); in GenerateStringIndexOf() 1471 __ negq(counter); // Needs to be 64-bit negation, as the address computation is 64-bit. in GenerateStringIndexOf() 1472 __ leaq(counter, Address(string_length, counter, ScaleFactor::TIMES_1, 0)); in GenerateStringIndexOf() [all …]
|
D | intrinsics_x86.cc | 1186 Register counter = locations->GetTemp(0).AsRegister<Register>(); in GenerateStringIndexOf() local 1195 DCHECK_EQ(counter, ECX); in GenerateStringIndexOf() 1246 __ movl(counter, string_length); in GenerateStringIndexOf() 1258 __ xorl(counter, counter); in GenerateStringIndexOf() 1260 __ cmovl(kGreater, counter, start_index); in GenerateStringIndexOf() 1267 __ leal(string_obj, Address(string_obj, counter, ScaleFactor::TIMES_1, value_offset)); in GenerateStringIndexOf() 1272 __ leal(string_obj, Address(string_obj, counter, ScaleFactor::TIMES_2, value_offset)); in GenerateStringIndexOf() 1278 __ leal(string_obj, Address(string_obj, counter, ScaleFactor::TIMES_2, value_offset)); in GenerateStringIndexOf() 1280 __ negl(counter); in GenerateStringIndexOf() 1281 __ leal(counter, Address(string_length, counter, ScaleFactor::TIMES_1, 0)); in GenerateStringIndexOf() [all …]
|
/art/runtime/jit/ |
D | profile_saver.cc | 380 const uint16_t counter = method.GetCounter(); in SampleClassesAndExecutedMethods() local 385 counter >= hot_method_sample_threshold) { in SampleClassesAndExecutedMethods() 387 } else if (counter != 0) { in SampleClassesAndExecutedMethods()
|
/art/libprofile/profile/ |
D | profile_compilation_info.cc | 93 static uint16_t IncrementAggregationCounter(uint16_t counter, uint16_t value) { in IncrementAggregationCounter() argument 94 if (counter < (std::numeric_limits<uint16_t>::max() - value)) { in IncrementAggregationCounter() 95 return counter + value; in IncrementAggregationCounter()
|
/art/runtime/arch/arm64/ |
D | quick_entrypoints_arm64.S | 805 .macro LOADREG counter size register return 807 add \counter, \counter, 12
|