Searched refs:barrier (Results 1 - 12 of 12) sorted by relevance

/art/runtime/
H A Dbarrier_test.cc17 #include "barrier.h"
30 CheckWaitTask(Barrier* barrier, AtomicInteger* count1, AtomicInteger* count2) argument
31 : barrier_(barrier),
36 LOG(INFO) << "Before barrier" << *self;
40 LOG(INFO) << "After barrier" << *self;
60 // Check that barrier wait and barrier increment work.
64 Barrier barrier(num_threads + 1); // One extra Wait() in main thread.
69 thread_pool.AddTask(self, new CheckWaitTask(&barrier, &count1, &count2));
75 // Count 2 should still be zero since no thread should have gone past the barrier
89 CheckPassTask(Barrier* barrier, AtomicInteger* count, size_t subtasks) argument
[all...]
H A Dthread_list.cc246 // The barrier to be passed through and for the requestor to wait upon.
411 Barrier* barrier = empty_checkpoint_barrier_.get(); local
412 barrier->Init(self, 0);
420 // This thread will run an empty checkpoint (decrement the empty checkpoint barrier)
460 first_iter = false; // Don't add to the barrier count from the second iteration on.
461 bool timed_out = barrier->Increment(self, barrier_count, kEmptyCheckpointPeriodicTimeoutMs);
470 ss << "Barrier count " << barrier->GetCount(self) << "\n";
718 // The atomic counter for number of threads that need to pass the barrier.
756 // Wait for the barrier to be passed by all runnable threads. This wait
/art/test/033-class-init-deadlock/src/
H A DMain.java28 public static CyclicBarrier barrier = new CyclicBarrier(3); field in class:Main
40 try { barrier.await(); } catch (Exception e) { System.out.println(e); }
56 try { Main.barrier.await(); } catch (Exception e) { System.out.println(e); }
66 try { Main.barrier.await(); } catch (Exception e) { System.out.println(e); }
/art/test/952-invoke-custom/src/
H A DTestInvokeCustomWithConcurrentThreads.java49 // Synchronization barrier all threads will wait on in the bootstrap method.
50 private static final CyclicBarrier barrier = new CyclicBarrier(NUMBER_OF_THREADS); field in class:TestInvokeCustomWithConcurrentThreads
99 barrier.await();
/art/test/708-jit-cache-churn/src/
H A DJitCacheChurnTest.java93 private static CyclicBarrier barrier = new CyclicBarrier(CONCURRENCY); field in class:JitCacheChurnTest.BaseTask
96 barrier.await();
/art/runtime/arch/mips/
H A Dquick_entrypoints_mips.S1309 # Unlocked case - $t1: original lock word that's zero except for the read barrier bits.
1310 or $t2, $t1, $t0 # $t2 holds thread id with count of 0 with preserved read barrier bits
1315 sync # full (LoadLoad|LoadStore) memory barrier
1317 # $t1: original lock word, $t0: thread_id with count of 0 and zero read barrier bits
1364 ll $t1, MIRROR_OBJECT_LOCK_WORD_OFFSET($a0) # Need to use atomic read-modify-write for read barrier
1378 sync # full (LoadStore|StoreStore) memory barrier
1468 * Macro to insert read barrier, only used in art_quick_aput_obj.
1470 * TODO: When read barrier has a fast path, add heap unpoisoning support for the fast path.
1811 # This barrier is only necessary when the allocation also requires a class initialization check.
1814 # from publishing by the compiler which inserts its own StoreStore barrier
[all...]
/art/runtime/arch/mips64/
H A Dquick_entrypoints_mips64.S1256 # Unlocked case - $t1: original lock word that's zero except for the read barrier bits.
1257 or $t2, $t1, $t0 # $t2 holds thread id with count of 0 with preserved read barrier bits
1260 sync # full (LoadLoad|LoadStore) memory barrier
1263 # $t1: original lock word, $t0: thread_id with count of 0 and zero read barrier bits
1309 ll $t1, MIRROR_OBJECT_LOCK_WORD_OFFSET($a0) # Need to use atomic read-modify-write for read barrier
1323 sync # full (LoadStore|StoreStore) memory barrier
1408 * Macro to insert read barrier, only used in art_quick_aput_obj.
1410 * TODO: When read barrier has a fast path, add heap unpoisoning support for the fast path.
1735 # This barrier is only necessary when the allocation also requires a class initialization check.
1738 # from publishing by the compiler which inserts its own StoreStore barrier
[all...]
/art/openjdkjvmti/
H A Dti_stack.cc43 #include "barrier.h"
288 : barrier(0), stop_input(stop), data(data_) {}
295 barrier.Pass(self);
319 art::Barrier barrier; member in struct:openjdkjvmti::GetAllStackTracesVectorClosure
333 closure.barrier.Increment(self, barrier_count);
/art/runtime/jit/
H A Djit_code_cache.cc511 // This does not need a read barrier because this is called by GC.
516 // This does not need a read barrier because this is called by GC.
540 // This does not need a read barrier because this is called by GC.
711 // Don't do any read barrier, as the declaring class of `method` may
843 // We also need a TLB shootdown to act as memory barrier across cores.
1105 MarkCodeClosure(JitCodeCache* code_cache, Barrier* barrier) argument
1106 : code_cache_(code_cache), barrier_(barrier) {}
1178 Barrier barrier(0);
1180 MarkCodeClosure closure(this, &barrier);
1186 barrier
[all...]
/art/compiler/optimizing/
H A Dgraph_visualizer.cc370 void VisitMemoryBarrier(HMemoryBarrier* barrier) OVERRIDE {
371 StartAttributeStream("kind") << barrier->GetBarrierKind();
/art/runtime/gc/
H A Dheap.cc1290 explicit TrimIndirectReferenceTableClosure(Barrier* barrier) : barrier_(barrier) { argument
1310 Barrier barrier(0);
1311 TrimIndirectReferenceTableClosure closure(&barrier);
1315 barrier.Increment(self, barrier_count);
/art/runtime/arch/arm/
H A Dquick_entrypoints_arm.S692 @ unlocked case - r1: original lock word that's zero except for the read barrier bits.
693 orr r2, r1, r2 @ r2 holds thread id with count of 0 with preserved read barrier bits
696 dmb ish @ full (LoadLoad|LoadStore) memory barrier
698 .Lnot_unlocked: @ r1: original lock word, r2: thread_id with count of 0 and zero read barrier bits
711 strex r3, r2, [r0, #MIRROR_OBJECT_LOCK_WORD_OFFSET] @ strex necessary for read barrier bits
747 ldrex r1, [r0, #MIRROR_OBJECT_LOCK_WORD_OFFSET] @ Need to use atomic instructions for read barrier
764 dmb ish @ full (LoadStore|StoreStore) memory barrier
768 strex r2, r3, [r0, #MIRROR_OBJECT_LOCK_WORD_OFFSET] @ strex necessary for read barrier bits
777 strex r2, r1, [r0, #MIRROR_OBJECT_LOCK_WORD_OFFSET] @ strex necessary for read barrier bits
851 * Macro to insert read barrier, onl
[all...]

Completed in 687 milliseconds