Home
last modified time | relevance | path

Searched refs:lock_ (Results 1 – 25 of 26) sorted by relevance

12

/ark/runtime_core/libpandabase/os/
Dmutex.h64 explicit LockHolder(T &lock) ACQUIRE(lock) : lock_(lock) in LockHolder()
66 lock_.Lock(); in LockHolder()
71 lock_.Unlock(); in RELEASE()
75 T &lock_;
84 explicit ReadLockHolder(T &lock) ACQUIRE_SHARED(lock) : lock_(lock) in ReadLockHolder()
86 lock_.ReadLock(); in ReadLockHolder()
91 lock_.Unlock(); in RELEASE()
95 T &lock_;
104 explicit WriteLockHolder(T &lock) ACQUIRE(lock) : lock_(lock) in WriteLockHolder()
106 lock_.WriteLock(); in WriteLockHolder()
[all …]
/ark/runtime_core/runtime/mem/gc/
Dgc_queue.h68 os::memory::LockHolder lock(lock_); in Signal()
74 os::memory::LockHolder lock(lock_); in WaitForGCTask()
75 return cond_var_.TimedWait(&lock_, GC_WAIT_TIMEOUT); in WaitForGCTask()
88 os::memory::Mutex lock_; variable
89 PandaPriorityQueue<GCTask *, PandaVector<GCTask *>, CompareByTime> queue_ GUARDED_BY(lock_);
Dgc_queue.cpp28 os::memory::LockHolder lock(lock_); in GetTask()
35 cond_var_.Wait(&lock_); in GetTask()
44 cond_var_.TimedWait(&lock_, ms, ns); in GetTask()
55 os::memory::LockHolder lock(lock_); in AddTask()
76 os::memory::LockHolder lock(lock_); in Finalize()
/ark/runtime_core/runtime/mem/
Dmalloc-proxy-allocator-inl.h47 lock_.Lock(); in Alloc()
58 lock_.Unlock(); in Alloc()
73 lock_.Lock(); in Free()
83 lock_.Unlock(); in Free()
Dregion_space.cpp80 os::memory::LockHolder lock(lock_); in Init()
98 os::memory::LockHolder lock(lock_); in AllocRegion()
112 os::memory::LockHolder lock(lock_); in AllocLargeRegion()
143 os::memory::LockHolder lock(lock_); in FreeRegion()
Dregion_space.h342 os::memory::LockHolder lock(lock_); in GetAllocatedRegion()
348 os::memory::LockHolder lock(lock_); in GetFreeRegionsNum()
368 Span<Region *> occupied_ GUARDED_BY(lock_);
369 mutable os::memory::Mutex lock_; variable
Drunslots_allocator-inl.h517 os::memory::WriteLockHolder wlock(lock_); in GetNewRunSlots()
556 os::memory::WriteLockHolder wlock(lock_); in AddNewMemoryPool()
573 os::memory::WriteLockHolder wlock(lock_); in ReturnAndReleaseRunSlotsMemory()
609 os::memory::ReadLockHolder rlock(lock_); in IsInMemPools()
627 os::memory::ReadLockHolder rlock(lock_); in IterateOverObjects()
638 os::memory::ReadLockHolder rlock(lock_); in IterateOverObjects()
648 os::memory::WriteLockHolder wlock(lock_); in VisitAllPools()
663 os::memory::WriteLockHolder wlock(lock_); in VisitAllPoolsWithOccupiedSize()
678 os::memory::WriteLockHolder wlock(lock_); in VisitAndRemoveFreePools()
Drunslots_allocator.h183 return &lock_; in GetLock()
224 typename LockConfigT::ListLock lock_; variable
399 typename LockConfigT::PoolLock lock_; variable
Dmalloc-proxy-allocator.h65 os::memory::Mutex lock_; variable
Drunslots.h228 LockTypeT *lock = &lock_; in GetLock()
303 LockTypeT lock_; variable
Dinternal_allocator.cpp68 os::memory::LockHolder lock(lock_); in Alloc()
96 os::memory::LockHolder lock(lock_); in Free()
Dinternal_allocator.h151 os::memory::Mutex lock_;
Drunslots.cpp46 new (&lock_) LockTypeT(); in Initialize()
/ark/runtime_core/runtime/tests/
Dmultithreaded_intern_string_table_test.cpp93 while (lock_.test_and_set(std::memory_order_seq_cst)) { in CheckSameString()
100 lock_.clear(std::memory_order_seq_cst); in CheckSameString()
139 std::atomic_flag lock_ {0}; member in panda::mem::test::MultithreadedInternStringTableTest
/ark/runtime_core/runtime/
Dmonitor.cpp553 if (!lock_.TryLock()) { in Acquire()
558 if (!lock_.TryLockWithSpinning()) { in Acquire()
560 if (!lock_.TryLock()) { in Acquire()
569 lock_.Lock(); in Acquire()
602 lock_.LockForOther(thread->GetId()); in Acquire()
605 [[maybe_unused]] bool res = lock_.TryLock(); in Acquire()
630 lock_.UnlockForOther(thread->GetId()); in Acquire()
633 lock_.Unlock(); in Acquire()
666 lock_.Unlock(); in Acquire()
782 if (!lock_.TryLock()) { in Acquire()
[all …]
Dmonitor.h197 os::memory::Mutex lock_; variable
/ark/runtime_core/libpandabase/mem/
Dmmap_mem_pool-inl.h158 os::memory::LockHolder lk(lock_); in AllocArenaImpl()
180 os::memory::LockHolder lk(lock_); in FreeArenaImpl()
243 os::memory::LockHolder lk(lock_); in AllocRawMemImpl()
386 os::memory::LockHolder lk(lock_); in AllocPoolImpl()
397 os::memory::LockHolder lk(lock_); in FreePoolImpl()
436 os::memory::LockHolder lk(lock_); in GetAllocatorInfoForAddrImpl()
448 os::memory::LockHolder lk(lock_); in GetSpaceTypeForAddrImpl()
460 os::memory::LockHolder lk(lock_); in GetStartAddrPoolForAddrImpl()
470 os::memory::LockHolder lk(lock_); in GetObjectSpaceFreeBytes()
Dalloc_tracker.h52 os::memory::LockHolder lock(lock_); in TrackAlloc()
64 os::memory::LockHolder lock(lock_); in TrackFree()
125 os::memory::Mutex lock_; variable
Dmmap_mem_pool.h259 os::memory::RecursiveMutex lock_; variable
/ark/js_runtime/ecmascript/mem/
Dregion-inl.h45 os::memory::LockHolder lock(lock_); in GetOrCreateCrossRegionRememberedSet()
56 os::memory::LockHolder lock(lock_); in GetOrCreateOldToNewRememberedSet()
Dsparse_space.cpp187 os::memory::LockHolder holder(lock_); in GetSweepingRegionSafe()
198 os::memory::LockHolder holder(lock_); in AddSweptRegionSafe()
204 os::memory::LockHolder holder(lock_); in GetSweptRegionSafe()
288 os::memory::LockHolder lock(lock_); in TryToGetExclusiveRegion()
304 os::memory::LockHolder lock(lock_); in Merge()
Dsparse_space.h93 os::memory::Mutex lock_; variable
147 os::memory::Mutex lock_; variable
Dlinear_space.cpp112 os::memory::LockHolder lock(lock_); in AllocateSync()
118 os::memory::LockHolder lock(lock_); in SwapRegion()
Dlinear_space.h74 os::memory::Mutex lock_;
/ark/runtime_core/libpandabase/events/
Devents_gen.h.erb53 return lock_;
56 os::memory::Mutex lock_;

12