/ark/runtime_core/libpandabase/os/ |
D | mutex.h | 64 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/ |
D | gc_queue.h | 68 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_);
|
D | gc_queue.cpp | 28 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/ |
D | malloc-proxy-allocator-inl.h | 47 lock_.Lock(); in Alloc() 58 lock_.Unlock(); in Alloc() 73 lock_.Lock(); in Free() 83 lock_.Unlock(); in Free()
|
D | region_space.cpp | 80 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()
|
D | region_space.h | 342 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
|
D | runslots_allocator-inl.h | 517 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()
|
D | runslots_allocator.h | 183 return &lock_; in GetLock() 224 typename LockConfigT::ListLock lock_; variable 399 typename LockConfigT::PoolLock lock_; variable
|
D | malloc-proxy-allocator.h | 65 os::memory::Mutex lock_; variable
|
D | runslots.h | 228 LockTypeT *lock = &lock_; in GetLock() 303 LockTypeT lock_; variable
|
D | internal_allocator.cpp | 68 os::memory::LockHolder lock(lock_); in Alloc() 96 os::memory::LockHolder lock(lock_); in Free()
|
D | internal_allocator.h | 151 os::memory::Mutex lock_;
|
D | runslots.cpp | 46 new (&lock_) LockTypeT(); in Initialize()
|
/ark/runtime_core/runtime/tests/ |
D | multithreaded_intern_string_table_test.cpp | 93 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/ |
D | monitor.cpp | 553 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 …]
|
D | monitor.h | 197 os::memory::Mutex lock_; variable
|
/ark/runtime_core/libpandabase/mem/ |
D | mmap_mem_pool-inl.h | 158 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()
|
D | alloc_tracker.h | 52 os::memory::LockHolder lock(lock_); in TrackAlloc() 64 os::memory::LockHolder lock(lock_); in TrackFree() 125 os::memory::Mutex lock_; variable
|
D | mmap_mem_pool.h | 259 os::memory::RecursiveMutex lock_; variable
|
/ark/js_runtime/ecmascript/mem/ |
D | region-inl.h | 45 os::memory::LockHolder lock(lock_); in GetOrCreateCrossRegionRememberedSet() 56 os::memory::LockHolder lock(lock_); in GetOrCreateOldToNewRememberedSet()
|
D | sparse_space.cpp | 187 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()
|
D | sparse_space.h | 93 os::memory::Mutex lock_; variable 147 os::memory::Mutex lock_; variable
|
D | linear_space.cpp | 112 os::memory::LockHolder lock(lock_); in AllocateSync() 118 os::memory::LockHolder lock(lock_); in SwapRegion()
|
D | linear_space.h | 74 os::memory::Mutex lock_;
|
/ark/runtime_core/libpandabase/events/ |
D | events_gen.h.erb | 53 return lock_; 56 os::memory::Mutex lock_;
|