/art/test/114-ParallelGC/src/ |
H A D | Main.java | 33 private final static AtomicInteger counter = new AtomicInteger(); field in class:Main 111 // Atomically increment the counter and check whether we were last. 112 int number = counter.incrementAndGet(); 117 // Increment the wait counter.
|
/art/test/135-MirandaDispatch/src/ |
H A D | Main.java | 20 static int counter = 0; field in class:Main 31 ++counter; 46 if (counter != loopIterations * loopIterations) { 47 System.out.println("Expected " + loopIterations * loopIterations + " got " + counter);
|
/art/runtime/base/ |
H A D | debug_stack.h | 29 // Reference counter. No references allowed in destructor or in explicitly called CheckNoRefs(). 57 explicit DebugStackReferenceImpl(DebugStackRefCounterImpl<false>* counter ATTRIBUTE_UNUSED) {} 91 explicit DebugStackReferenceImpl(DebugStackRefCounterImpl<kIsDebug>* counter) argument 92 : counter_(counter), ref_count_(counter->IncrementRefCount()) {
|
H A D | variant_map.h | 76 // Allocate a unique counter value each time it's called. 79 static size_t counter = 0; local 80 counter++; 82 return counter; 117 // explicit VariantMapKeyRaw(size_t counter) 118 // : key_counter_(counter) {} 148 // explicit VariantMapKey(size_t counter) : detail::VariantMapKeyRaw(counter) {}
|
/art/runtime/gc/ |
H A D | task_processor_test.cc | 32 RecursiveTask(TaskProcessor* task_processor, Atomic<size_t>* counter, size_t max_recursion) argument 33 : HeapTask(NanoTime() + MsToNs(10)), task_processor_(task_processor), counter_(counter), 71 Atomic<size_t> counter(0); 72 task_processor.AddTask(self, new RecursiveTask(&task_processor, &counter, kRecursion)); 79 while (counter.LoadSequentiallyConsistent() != kRecursion) { 90 counter.StoreSequentiallyConsistent(0); 95 task_processor.AddTask(self, new RecursiveTask(&task_processor, &counter, kRecursion)); 100 ASSERT_EQ(counter.LoadSequentiallyConsistent(), kRecursion); 105 TestOrderTask(uint64_t expected_time, size_t expected_counter, size_t* counter) argument 106 : HeapTask(expected_time), expected_counter_(expected_counter), counter_(counter) { 124 size_t counter = 0; local [all...] |
/art/test/566-polymorphic-inlining/src/ |
H A D | Main.java | 70 assertEquals(20001, counter); 101 counter++; 103 public static int counter = 0; field in class:Main
|
/art/runtime/gc/accounting/ |
H A D | space_bitmap_test.cc | 92 explicit SimpleCounter(size_t* counter) : count_(counter) {} argument
|
/art/test/441-checker-inliner/src/ |
H A D | Main.java | 217 private static int counter = 42; field in class:Main 220 return ++counter;
|
/art/runtime/ |
H A D | oat.cc | 434 ssize_t counter = static_cast<ssize_t>(index); local 436 while (ptr < end && counter >= 0) { 443 if (counter == 0) { 448 counter--;
|
H A D | debugger.cc | 3144 size_t* counter = GetReferenceCounterForEvent(req.InstrumentationEvent()); local 3145 CHECK(counter != nullptr) << StringPrintf("No counter for instrumentation event 0x%x", 3147 if (*counter == 0) { 3152 *counter = *counter + 1; 3157 size_t* counter = GetReferenceCounterForEvent(req.InstrumentationEvent()); local 3158 CHECK(counter != nullptr) << StringPrintf("No counter for instrumentation event 0x%x", 3160 *counter [all...] |
/art/compiler/optimizing/ |
H A D | intrinsics_x86.cc | 1392 // repne scasw uses ECX as the counter. 1410 Register counter = locations->GetTemp(0).AsRegister<Register>(); local 1417 DCHECK_EQ(counter, ECX); 1458 __ movl(counter, string_length); 1470 __ xorl(counter, counter); 1472 __ cmovl(kGreater, counter, start_index); 1475 __ leal(string_obj, Address(string_obj, counter, ScaleFactor::TIMES_2, value_offset)); 1477 // Now update ecx (the repne scasw work counter). We have string.length - start_index left to 1479 __ negl(counter); [all...] |
H A D | intrinsics_x86_64.cc | 1491 // repne scasw uses RCX as the counter. 1509 CpuRegister counter = locations->GetTemp(0).AsRegister<CpuRegister>(); local 1516 DCHECK_EQ(counter.AsRegister(), RCX); 1557 __ movl(counter, string_length); 1569 __ xorl(counter, counter); 1571 __ cmov(kGreater, counter, start_index, /* is64bit */ false); // 32-bit copy is enough. 1574 __ leaq(string_obj, Address(string_obj, counter, ScaleFactor::TIMES_2, value_offset)); 1576 // Now update ecx, the work counter: it's gonna be string.length - start_index. 1577 __ negq(counter); // Need [all...] |