/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() 40 if (newCounter <= counter) { in main() 41 throw new Error("Expected counter " + newCounter + " to be larger than " + counter); in main() 43 counter = newCounter; in main() 47 if (newCounter <= counter) { in main() 48 throw new Error("Expected counter " + newCounter + " to be larger than " + counter); in main()
|
/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/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/2029-contended-monitors/src/ |
D | Main.java | 27 private int counter; field in Main 53 counter += y; in holdFor() 123 counter += 10_000; in run() 195 if (counter != expected) { in run() 197 + currentThreadCount + " threads, expected " + expected + " got " + counter); in run() 211 runAll(new RepeatedLockHolder(true, i), () -> { counter = 0; }, in run() 217 runAll(new RepeatedIntermittentLockHolder(true, i), () -> { counter = 0; }, in run() 225 runAll(new RepeatedLockHolder(false, i), () -> { counter = 0; }, () -> {}); in run() 229 runAll(new SleepyLockHolder(true), () -> { counter = 0; }, new CheckCounter(TOTAL_ITERS)); in run() 231 runAll(new SleepyLockHolder(false), () -> { counter = 0; }, () -> {}); in run()
|
/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/2007-virtual-structural-finalizable/src-art/art/ |
D | Test2007.java | 30 public static volatile int counter = 0; field in Test2007 109 System.out.println("counter: " + counter); in doTest()
|
/art/test/2007-virtual-structural-finalizable/ |
D | expected.txt | 2 counter: 1
|
/art/test/566-polymorphic-inlining/src/ |
D | Main.java | 81 assertEquals(2000001, 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 | 215 private static int counter = 42; field in Main 218 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/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/ |
D | oat.cc | 356 ssize_t counter = static_cast<ssize_t>(index); in GetStoreKeyValuePairByIndex() local 358 while (ptr < end && counter >= 0) { in GetStoreKeyValuePairByIndex() 365 if (counter == 0) { in GetStoreKeyValuePairByIndex() 370 counter--; in GetStoreKeyValuePairByIndex()
|
D | class_loader_context.cc | 124 uint32_t counter = 1; in FindMatchingSharedLibraryCloseMarker() local 128 while (counter != 0) { in FindMatchingSharedLibraryCloseMarker() 141 --counter; in FindMatchingSharedLibraryCloseMarker() 147 ++counter; in FindMatchingSharedLibraryCloseMarker()
|
/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 | 1327 CpuRegister counter = locations->GetTemp(0).AsRegister<CpuRegister>(); in GenerateStringIndexOf() local 1334 DCHECK_EQ(counter.AsRegister(), RCX); in GenerateStringIndexOf() 1384 __ movl(counter, string_length); in GenerateStringIndexOf() 1395 __ xorl(counter, counter); in GenerateStringIndexOf() 1397 __ cmov(kGreater, counter, start_index, /* is64bit= */ false); // 32-bit copy is enough. in GenerateStringIndexOf() 1403 __ leaq(string_obj, Address(string_obj, counter, ScaleFactor::TIMES_1, value_offset)); in GenerateStringIndexOf() 1407 __ leaq(string_obj, Address(string_obj, counter, ScaleFactor::TIMES_2, value_offset)); in GenerateStringIndexOf() 1410 __ leaq(string_obj, Address(string_obj, counter, ScaleFactor::TIMES_2, value_offset)); in GenerateStringIndexOf() 1413 __ negq(counter); // Needs to be 64-bit negation, as the address computation is 64-bit. in GenerateStringIndexOf() 1414 __ leaq(counter, Address(string_length, counter, ScaleFactor::TIMES_1, 0)); in GenerateStringIndexOf() [all …]
|
D | intrinsics_x86.cc | 1141 Register counter = locations->GetTemp(0).AsRegister<Register>(); in GenerateStringIndexOf() local 1150 DCHECK_EQ(counter, ECX); in GenerateStringIndexOf() 1201 __ movl(counter, string_length); in GenerateStringIndexOf() 1213 __ xorl(counter, counter); in GenerateStringIndexOf() 1215 __ cmovl(kGreater, counter, start_index); in GenerateStringIndexOf() 1222 __ leal(string_obj, Address(string_obj, counter, ScaleFactor::TIMES_1, value_offset)); in GenerateStringIndexOf() 1227 __ leal(string_obj, Address(string_obj, counter, ScaleFactor::TIMES_2, value_offset)); in GenerateStringIndexOf() 1233 __ leal(string_obj, Address(string_obj, counter, ScaleFactor::TIMES_2, value_offset)); in GenerateStringIndexOf() 1235 __ negl(counter); in GenerateStringIndexOf() 1236 __ leal(counter, Address(string_length, counter, ScaleFactor::TIMES_1, 0)); in GenerateStringIndexOf() [all …]
|
D | code_generator_arm64.cc | 1131 Register counter = temps.AcquireX(); in MaybeIncrementHotness() local 1136 __ Ldrh(counter, MemOperand(method, ArtMethod::HotnessCountOffset().Int32Value())); in MaybeIncrementHotness() 1137 __ Add(counter, counter, 1); in MaybeIncrementHotness() 1139 __ Sub(counter, counter, Operand(counter, LSR, 16)); in MaybeIncrementHotness() 1140 __ Strh(counter, MemOperand(method, ArtMethod::HotnessCountOffset().Int32Value())); in MaybeIncrementHotness() 1151 Register counter = temps.AcquireW(); in MaybeIncrementHotness() local 1153 __ Ldrh(counter, MemOperand(temp, ProfilingInfo::BaselineHotnessCountOffset().Int32Value())); in MaybeIncrementHotness() 1154 __ Add(counter, counter, 1); in MaybeIncrementHotness() 1155 __ Strh(counter, MemOperand(temp, ProfilingInfo::BaselineHotnessCountOffset().Int32Value())); in MaybeIncrementHotness() 1156 __ Tst(counter, 0xffff); in MaybeIncrementHotness()
|
/art/runtime/jit/ |
D | profile_saver.cc | 386 const uint16_t counter = method.GetCounter(); in SampleClassesAndExecutedMethods() local 391 counter >= hot_method_sample_threshold) { in SampleClassesAndExecutedMethods() 393 } else if (counter != 0) { in SampleClassesAndExecutedMethods()
|
/art/runtime/interpreter/mterp/ |
D | nterp.cc | 90 uint32_t counter = method->GetCounter(); in UpdateHotness() local 91 uint32_t new_counter = counter + kNterpHotnessLookup; in UpdateHotness()
|
/art/runtime/arch/arm64/ |
D | quick_entrypoints_arm64.S | 565 .macro LOADREG counter size register return 567 add \counter, \counter, 12
|