Home
last modified time | relevance | path

Searched refs:Barrier (Results 1 – 25 of 28) sorted by relevance

12

/art/runtime/
Dbarrier.cc28 Barrier::Barrier(int count, bool verify_count_on_shutdown) in Barrier() function in art::Barrier
35 template void Barrier::Increment<Barrier::kAllowHoldingLocks>(Thread* self, int delta);
36 template void Barrier::Increment<Barrier::kDisallowHoldingLocks>(Thread* self, int delta);
38 void Barrier::Pass(Thread* self) { in Pass()
43 void Barrier::Wait(Thread* self) { in Wait()
47 void Barrier::Init(Thread* self, int count) { in Init()
52 template <Barrier::LockHandling locks>
53 void Barrier::Increment(Thread* self, int delta) { in Increment()
73 bool Barrier::Increment(Thread* self, int delta, uint32_t timeout_ms) { in Increment()
94 int Barrier::GetCount(Thread* self) { in GetCount()
[all …]
Dbarrier_test.cc30 CheckWaitTask(Barrier* barrier, AtomicInteger* count1, AtomicInteger* count2) in CheckWaitTask()
48 Barrier* const barrier_;
64 Barrier barrier(num_threads + 1); // One extra Wait() in main thread. in TEST_F()
65 Barrier timeout_barrier(0); // Only used for sleeping on timeout. in TEST_F()
89 CheckPassTask(Barrier* barrier, AtomicInteger* count, size_t subtasks) in CheckPassTask()
106 Barrier* const barrier_;
115 Barrier barrier(0); in TEST_F()
Dbarrier.h40 class Barrier {
49 explicit Barrier(int count, bool verify_count_on_shutdown = true);
50 virtual ~Barrier();
66 template <Barrier::LockHandling locks = kDisallowHoldingLocks>
Dmonitor_test.cc52 std::unique_ptr<Barrier> barrier_;
53 std::unique_ptr<Barrier> complete_barrier_;
255 test->barrier_ = std::make_unique<Barrier>(2); in CommonWaitSetup()
256 test->complete_barrier_ = std::make_unique<Barrier>(3); in CommonWaitSetup()
Dthread_list.h176 Barrier* EmptyCheckpointBarrier() { in EmptyCheckpointBarrier()
236 std::unique_ptr<Barrier> empty_checkpoint_barrier_;
Dread_barrier.h56 ALWAYS_INLINE static MirrorType* Barrier(
Dthread_pool.h199 Barrier creation_barier_;
Dread_barrier-inl.h37 inline MirrorType* ReadBarrier::Barrier( in Barrier() function
Dthread_list.cc81 empty_checkpoint_barrier_(new Barrier(0)) { in ThreadList()
247 Barrier barrier_;
414 Barrier* barrier = empty_checkpoint_barrier_.get(); in RunEmptyCheckpoint()
Dcha.cc273 Barrier barrier_;
Ddebugger.cc345 Barrier finish_barrier(0); in DdmSetThreadNotification()
Dthread.cc1632 barrier_.Increment<Barrier::kDisallowHoldingLocks>(self, 1); in Wait()
1634 barrier_.Increment<Barrier::kAllowHoldingLocks>(self, 1); in Wait()
1640 Barrier barrier_;
Dclass_linker.cc296 void AddBarrier(Barrier* barrier) { in AddBarrier()
300 std::forward_list<Barrier*> GetAndClearBarriers() { in GetAndClearBarriers()
301 std::forward_list<Barrier*> result; in GetAndClearBarriers()
356 std::forward_list<Barrier*> barriers_;
363 std::optional<Barrier> maybe_barrier; // Avoid constructing the Barrier for `wait == false`. in MakeInitializedClassesVisiblyInitialized()
377 Barrier* barrier = std::addressof(*maybe_barrier); in MakeInitializedClassesVisiblyInitialized()
397 for (Barrier* barrier : callback->GetAndClearBarriers()) { in VisiblyInitializedCallbackDone()
/art/test/004-ThreadStress/src-art/
DMain.java601 final Barrier startBarrier = new Barrier(numberOfThreads + numberOfDaemons + 1); in runTest()
794 Barrier startBarrier) { in Daemon()
837 final Barrier startBarrier;
845 private static class Barrier { class in Main
846 public Barrier(int initialCount) { in Barrier() method in Main.Barrier
/art/runtime/gc/collector/
Dmark_sweep.h224 Barrier& GetBarrier() { in GetBarrier()
345 std::unique_ptr<Barrier> gc_barrier_;
Dconcurrent_copying.h31 class Barrier; variable
147 Barrier& GetBarrier() { in GetBarrier()
334 std::unique_ptr<Barrier> gc_barrier_;
Dmark_sweep.cc101 gc_barrier_(new Barrier(0)), in MarkSweep()
/art/openjdkjvmti/
Dalloc_manager.cc200 art::Barrier barrier(0); in PauseAllocations()
Dti_redefine.cc2304 release_barrier_.Increment</*locks=*/art::Barrier::kAllowHoldingLocks>(self_, count); in Release()
2363 art::Barrier barrier_;
2365 art::Barrier release_barrier_;
Dti_stack.cc358 art::Barrier barrier;
/art/runtime/entrypoints/quick/
Dquick_field_entrypoints.cc411 ReadBarrier::Barrier<mirror::Object, /* kIsVolatile= */ false, kReadBarrierOption>( in artReadBarrierSlow()
/art/runtime/jit/
Djit_code_cache.cc1046 MarkCodeClosure(JitCodeCache* code_cache, CodeCacheBitmap* bitmap, Barrier* barrier) in MarkCodeClosure()
1092 Barrier* const barrier_;
1101 Barrier barrier(0); in MarkCompiledCodeOnThreadStacks()
/art/runtime/native/
Dsun_misc_Unsafe.cc79 ReadBarrier::Barrier<mirror::Object, /* kIsVolatile= */ false, kWithReadBarrier, in Unsafe_compareAndSwapObject()
/art/runtime/mirror/
Dobject-inl.h608 T* result = ReadBarrier::Barrier<T, kIsVolatile, kReadBarrierOption>( in GetFieldObject()
/art/runtime/gc/
Dheap.cc1458 explicit TrimIndirectReferenceTableClosure(Barrier* barrier) : barrier_(barrier) { in TrimIndirectReferenceTableClosure()
1468 Barrier* const barrier_;
1478 Barrier barrier(0); in TrimIndirectReferenceTables()

12