Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 15 of 15) sorted by relevance

/art/runtime/gc/
Dtask_processor_test.cc32 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.LoadSequentiallyConsistent() != kRecursion) { in TEST_F()
90 counter.StoreSequentiallyConsistent(0); in TEST_F()
95 task_processor.AddTask(self, new RecursiveTask(&task_processor, &counter, kRecursion)); in TEST_F()
100 ASSERT_EQ(counter.LoadSequentiallyConsistent(), 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 …]
Dheap.cc1929 InstanceCounter counter(classes, use_is_assignable_from, counts); in CountInstances() local
1930 VisitObjects(InstanceCounter::Callback, &counter); in CountInstances()
/art/test/135-MirandaDispatch/src/
DMain.java20 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/runtime/base/
Ddebug_stack.h57 explicit DebugStackReferenceImpl(DebugStackRefCounterImpl<false>* counter ATTRIBUTE_UNUSED) {} in DebugStackReferenceImpl()
91 explicit DebugStackReferenceImpl(DebugStackRefCounterImpl<kIsDebug>* counter) in DebugStackReferenceImpl() argument
92 : counter_(counter), ref_count_(counter->IncrementRefCount()) { in DebugStackReferenceImpl()
Dvariant_map.h79 static size_t counter = 0; in AllocateCounter() local
80 counter++; in AllocateCounter()
82 return counter; in AllocateCounter()
/art/test/566-polymorphic-inlining/src/
DMain.java78 assertEquals(20001, counter); in main()
127 counter++; in increment()
129 public static int counter = 0; field in Main
/art/test/441-checker-inliner/src/
DMain.java217 private static int counter = 42; field in Main
220 return ++counter; in incCounter()
/art/test/114-ParallelGC/src/
DMain.java33 private final static AtomicInteger counter = new AtomicInteger(); field in Main
112 int number = counter.incrementAndGet(); in work()
/art/test/547-regression-trycatch-critical-edge/smali/
DTestCase.smali29 move v2, p0 # v2 = outer loop counter
36 move v3, p1 # v3 = inner loop counter
/art/runtime/gc/accounting/
Dspace_bitmap_test.cc92 explicit SimpleCounter(size_t* counter) : count_(counter) {} in SimpleCounter() argument
/art/runtime/
Doat.cc434 ssize_t counter = static_cast<ssize_t>(index); in GetStoreKeyValuePairByIndex() local
436 while (ptr < end && counter >= 0) { in GetStoreKeyValuePairByIndex()
443 if (counter == 0) { in GetStoreKeyValuePairByIndex()
448 counter--; in GetStoreKeyValuePairByIndex()
Ddebugger.cc3163 size_t* counter = GetReferenceCounterForEvent(req.InstrumentationEvent()); in RequestDeoptimizationLocked() local
3164 CHECK(counter != nullptr) << StringPrintf("No counter for instrumentation event 0x%x", in RequestDeoptimizationLocked()
3166 if (*counter == 0) { in RequestDeoptimizationLocked()
3171 *counter = *counter + 1; in RequestDeoptimizationLocked()
3176 size_t* counter = GetReferenceCounterForEvent(req.InstrumentationEvent()); in RequestDeoptimizationLocked() local
3177 CHECK(counter != nullptr) << StringPrintf("No counter for instrumentation event 0x%x", in RequestDeoptimizationLocked()
3179 *counter = *counter - 1; in RequestDeoptimizationLocked()
3180 if (*counter == 0) { in RequestDeoptimizationLocked()
/art/compiler/optimizing/
Dintrinsics_x86.cc1410 Register counter = locations->GetTemp(0).AsRegister<Register>(); in GenerateStringIndexOf() local
1417 DCHECK_EQ(counter, ECX); in GenerateStringIndexOf()
1458 __ movl(counter, string_length); in GenerateStringIndexOf()
1470 __ xorl(counter, counter); in GenerateStringIndexOf()
1472 __ cmovl(kGreater, counter, start_index); in GenerateStringIndexOf()
1475 __ leal(string_obj, Address(string_obj, counter, ScaleFactor::TIMES_2, value_offset)); in GenerateStringIndexOf()
1479 __ negl(counter); in GenerateStringIndexOf()
1480 __ leal(counter, Address(string_length, counter, ScaleFactor::TIMES_1, 0)); in GenerateStringIndexOf()
1492 __ subl(string_length, counter); in GenerateStringIndexOf()
Dintrinsics_x86_64.cc1512 CpuRegister counter = locations->GetTemp(0).AsRegister<CpuRegister>(); in GenerateStringIndexOf() local
1519 DCHECK_EQ(counter.AsRegister(), RCX); in GenerateStringIndexOf()
1560 __ movl(counter, string_length); in GenerateStringIndexOf()
1572 __ xorl(counter, counter); in GenerateStringIndexOf()
1574 __ cmov(kGreater, counter, start_index, /* is64bit */ false); // 32-bit copy is enough. in GenerateStringIndexOf()
1577 __ leaq(string_obj, Address(string_obj, counter, ScaleFactor::TIMES_2, value_offset)); in GenerateStringIndexOf()
1580 __ negq(counter); // Needs to be 64-bit negation, as the address computation is 64-bit. in GenerateStringIndexOf()
1581 __ leaq(counter, Address(string_length, counter, ScaleFactor::TIMES_1, 0)); in GenerateStringIndexOf()
1593 __ subl(string_length, counter); in GenerateStringIndexOf()
/art/runtime/arch/arm64/
Dquick_entrypoints_arm64.S738 .macro LOADREG counter size register return
740 add \counter, \counter, 12