Searched refs:counter (Results 1 - 18 of 18) sorted by relevance

/art/test/674-hotness-compiled/src/
H A DMain.java33 int counter = getHotnessCounter(Main.class, "$noinline$hotnessCount");
34 if (counter == 0) {
35 throw new Error("Expected hotness counter to be updated");
39 if (getHotnessCounter(Main.class, "$noinline$hotnessCountWithLoop") <= counter) {
40 throw new Error("Expected hotness counter of a loop to be greater than without loop");
/art/test/135-MirandaDispatch/src/
H A DMain.java20 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/gc/
H A Dtask_processor_test.cc32 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/profman/
H A Dboot_image_profile.cc57 // This counter is how many profiles contain the method as sampled or hot.
58 size_t counter = 0; local
62 ++counter;
67 // If the counter is greater or equal to the compile threshold, mark the method as hot.
70 if (counter >= options.compiled_method_threshold) {
110 // This counter is how many profiles contain the class.
111 size_t counter = 0; local
116 ++counter;
119 if (counter == 0) {
122 if (counter >
[all...]
/art/libartbase/base/
H A Ddebug_stack.h30 // Reference counter. No references allowed in destructor or in explicitly called CheckNoRefs().
58 explicit DebugStackReferenceImpl(DebugStackRefCounterImpl<false>* counter ATTRIBUTE_UNUSED) {}
92 explicit DebugStackReferenceImpl(DebugStackRefCounterImpl<kIsDebug>* counter) argument
93 : counter_(counter), ref_count_(counter->IncrementRefCount()) {
H A Dvariant_map.h77 // Allocate a unique counter value each time it's called.
80 static size_t counter = 0; local
81 counter++;
83 return counter;
118 // explicit VariantMapKeyRaw(size_t counter)
119 // : key_counter_(counter) {}
149 // explicit VariantMapKey(size_t counter) : detail::VariantMapKeyRaw(counter) {}
/art/test/441-checker-inliner/src/
H A DMain.java200 private static int counter = 42; field in class:Main
203 return ++counter;
/art/test/566-polymorphic-inlining/src/
H A DMain.java81 assertEquals(20001, counter);
132 counter++;
134 public static int counter = 0; field in class:Main
/art/test/114-ParallelGC/src/
H A DMain.java33 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/906-iterate-heap/
H A Diterate_heap.cc83 : counter(_counter),
91 counter++;
92 if (counter == stop_after) {
98 jint counter; member in class:art::Test906IterateHeap::CountIterationConfig
105 if (config.counter > config.stop_after) {
109 return config.counter;
/art/runtime/
H A Doat.cc453 ssize_t counter = static_cast<ssize_t>(index); local
455 while (ptr < end && counter >= 0) {
462 if (counter == 0) {
467 counter--;
H A Ddebugger.cc3291 size_t* counter = GetReferenceCounterForEvent(req.InstrumentationEvent()); local
3292 CHECK(counter != nullptr) << StringPrintf("No counter for instrumentation event 0x%x",
3294 if (*counter == 0) {
3299 *counter = *counter + 1;
3304 size_t* counter = GetReferenceCounterForEvent(req.InstrumentationEvent()); local
3305 CHECK(counter != nullptr) << StringPrintf("No counter for instrumentation event 0x%x",
3307 *counter
[all...]
/art/runtime/gc/accounting/
H A Dspace_bitmap_test.cc135 explicit SimpleCounter(size_t* counter) : count_(counter) {} argument
/art/test/989-method-trace-throw/src/art/
H A DTest989.java431 static int counter = 0; field in class:Test989
433 return new TestObject(counter++);
/art/compiler/optimizing/
H A Dintrinsics_x86.cc1490 // repne scasw uses ECX as the counter.
1511 Register counter = locations->GetTemp(0).AsRegister<Register>(); local
1520 DCHECK_EQ(counter, ECX);
1571 __ movl(counter, string_length);
1583 __ xorl(counter, counter);
1585 __ cmovl(kGreater, counter, start_index);
1592 __ leal(string_obj, Address(string_obj, counter, ScaleFactor::TIMES_1, value_offset));
1597 __ leal(string_obj, Address(string_obj, counter, ScaleFactor::TIMES_2, value_offset));
1599 // Now update ecx (the repne scasw work counter)
[all...]
H A Dintrinsics_x86_64.cc1665 // repne scasw uses RCX as the counter.
1682 CpuRegister counter = locations->GetTemp(0).AsRegister<CpuRegister>(); local
1689 DCHECK_EQ(counter.AsRegister(), RCX);
1739 __ movl(counter, string_length);
1750 __ xorl(counter, counter);
1752 __ cmov(kGreater, counter, start_index, /* is64bit */ false); // 32-bit copy is enough.
1758 __ leaq(string_obj, Address(string_obj, counter, ScaleFactor::TIMES_1, value_offset));
1762 __ leaq(string_obj, Address(string_obj, counter, ScaleFactor::TIMES_2, value_offset));
1765 __ leaq(string_obj, Address(string_obj, counter, ScaleFacto
[all...]
/art/runtime/jit/
H A Dprofile_saver.cc182 // Update the notification counter based on result. Note that there might be contention on this
362 const uint16_t counter = method.GetCounter(); local
367 counter >= hot_method_sample_threshold) {
369 } else if (counter != 0) {
/art/runtime/arch/arm64/
H A Dquick_entrypoints_arm64.S875 // counter - the register with offset into these tables
878 .macro LOADREG counter size register return
880 add \counter, \counter, 12

Completed in 683 milliseconds