Home
last modified time | relevance | path

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

/art/test/674-hotness-compiled/src/
DMain.java33 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/
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.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/
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/test/2029-contended-monitors/src/
DMain.java27 private int counter; field in Main
53 counter += y; in holdFor()
91 counter += 10_000; in run()
159 if (counter != TOTAL_ITERS) { in run()
175 runAll(new RepeatedLockHolder(true, i), () -> { counter = 0; }, new CheckCounter()); in run()
182 runAll(new RepeatedLockHolder(false, i), () -> { counter = 0; }, () -> {}); in run()
186 runAll(new SleepyLockHolder(true), () -> { counter = 0; }, new CheckCounter()); in run()
188 runAll(new SleepyLockHolder(false), () -> { counter = 0; }, () -> {}); in run()
/art/test/1339-dead-reference-safe/src/
DMain.java41 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/
Ddebug_stack.h58 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()
Dvariant_map.h80 static size_t counter = 0; in AllocateCounter() local
81 counter++; in AllocateCounter()
83 return counter; in AllocateCounter()
/art/test/2007-virtual-structural-finalizable/
Dexpected.txt2 counter: 1
/art/test/2007-virtual-structural-finalizable/src-art/art/
DTest2007.java30 public static volatile int counter = 0; field in Test2007
109 System.out.println("counter: " + counter); in doTest()
/art/test/566-polymorphic-inlining/src/
DMain.java81 assertEquals(2000001, counter); in main()
132 counter++; in increment()
134 public static int counter = 0; field in Main
/art/test/441-checker-inliner/src/
DMain.java198 private static int counter = 42; field in Main
201 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/906-iterate-heap/
Diterate_heap.cc83 : 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/
DTestCase.smali29 move v2, p0 # v2 = outer loop counter
36 move v3, p1 # v3 = inner loop counter
/art/runtime/
Doat.cc356 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()
Dclass_loader_context.cc124 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/
Dspace_bitmap_test.cc135 explicit SimpleCounter(size_t* counter) : count_(counter) {} in SimpleCounter() argument
/art/test/989-method-trace-throw/src/art/
DTest989.java431 static int counter = 0; field in Test989
433 return new TestObject(counter++); in mkTestObject()
/art/runtime/jit/
Dprofile_saver.cc386 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/arch/arm64/
Dquick_entrypoints_arm64.S565 .macro LOADREG counter size register return
567 add \counter, \counter, 12