/dports/devel/llvm-cheri/llvm-project-37c49ff00e3eadce5d8703fdc4497f28458c64a8/compiler-rt/lib/gwp_asan/ |
H A D | guarded_pool_allocator.cpp | 91 BytesRequired = State.MaxSimultaneousAllocations * sizeof(*FreeSlots); in init() 92 FreeSlots = reinterpret_cast<size_t *>( in init() 94 markReadWrite(FreeSlots, BytesRequired, kGwpAsanFreeSlotsName); in init() 143 if (FreeSlots) { in uninitTestOnly() 144 unmapMemory(FreeSlots, in uninitTestOnly() 145 State.MaxSimultaneousAllocations * sizeof(*FreeSlots), in uninitTestOnly() 147 FreeSlots = nullptr; in uninitTestOnly() 279 size_t SlotIndex = FreeSlots[ReservedIndex]; in reserveSlot() 280 FreeSlots[ReservedIndex] = FreeSlots[--FreeSlotsLength]; in reserveSlot() 286 FreeSlots[FreeSlotsLength++] = SlotIndex; in freeSlot()
|
/dports/devel/wasi-compiler-rt11/compiler-rt-11.0.1.src/lib/gwp_asan/ |
H A D | guarded_pool_allocator.cpp | 91 BytesRequired = State.MaxSimultaneousAllocations * sizeof(*FreeSlots); in init() 92 FreeSlots = reinterpret_cast<size_t *>( in init() 94 markReadWrite(FreeSlots, BytesRequired, kGwpAsanFreeSlotsName); in init() 143 if (FreeSlots) { in uninitTestOnly() 144 unmapMemory(FreeSlots, in uninitTestOnly() 145 State.MaxSimultaneousAllocations * sizeof(*FreeSlots), in uninitTestOnly() 147 FreeSlots = nullptr; in uninitTestOnly() 279 size_t SlotIndex = FreeSlots[ReservedIndex]; in reserveSlot() 280 FreeSlots[ReservedIndex] = FreeSlots[--FreeSlotsLength]; in reserveSlot() 286 FreeSlots[FreeSlotsLength++] = SlotIndex; in freeSlot()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/compiler-rt/lib/gwp_asan/ |
H A D | guarded_pool_allocator.cpp | 94 State.MaxSimultaneousAllocations * sizeof(*FreeSlots), PageSize); in init() 95 FreeSlots = in init() 145 if (FreeSlots) { in uninitTestOnly() 146 unmap(FreeSlots, in uninitTestOnly() 147 roundUpTo(State.MaxSimultaneousAllocations * sizeof(*FreeSlots), in uninitTestOnly() 149 FreeSlots = nullptr; in uninitTestOnly() 282 size_t SlotIndex = FreeSlots[ReservedIndex]; in reserveSlot() 283 FreeSlots[ReservedIndex] = FreeSlots[--FreeSlotsLength]; in reserveSlot() 289 FreeSlots[FreeSlotsLength++] = SlotIndex; in freeSlot()
|
/dports/devel/wasi-compiler-rt12/llvm-project-12.0.1.src/compiler-rt/lib/gwp_asan/ |
H A D | guarded_pool_allocator.cpp | 81 State.MaxSimultaneousAllocations * sizeof(*FreeSlots), PageSize); in init() 82 FreeSlots = in init() 132 if (FreeSlots) { in uninitTestOnly() 133 unmap(FreeSlots, in uninitTestOnly() 134 roundUpTo(State.MaxSimultaneousAllocations * sizeof(*FreeSlots), in uninitTestOnly() 136 FreeSlots = nullptr; in uninitTestOnly() 270 size_t SlotIndex = FreeSlots[ReservedIndex]; in reserveSlot() 271 FreeSlots[ReservedIndex] = FreeSlots[--FreeSlotsLength]; in reserveSlot() 277 FreeSlots[FreeSlotsLength++] = SlotIndex; in freeSlot()
|
/dports/devel/llvm12/llvm-project-12.0.1.src/compiler-rt/lib/gwp_asan/ |
H A D | guarded_pool_allocator.cpp | 81 State.MaxSimultaneousAllocations * sizeof(*FreeSlots), PageSize); in init() 82 FreeSlots = in init() 132 if (FreeSlots) { in uninitTestOnly() 133 unmap(FreeSlots, in uninitTestOnly() 134 roundUpTo(State.MaxSimultaneousAllocations * sizeof(*FreeSlots), in uninitTestOnly() 136 FreeSlots = nullptr; in uninitTestOnly() 270 size_t SlotIndex = FreeSlots[ReservedIndex]; in reserveSlot() 271 FreeSlots[ReservedIndex] = FreeSlots[--FreeSlotsLength]; in reserveSlot() 277 FreeSlots[FreeSlotsLength++] = SlotIndex; in freeSlot()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/clang-tools-extra/clangd/support/ |
H A D | Threading.cpp | 34 Semaphore::Semaphore(std::size_t MaxLocks) : FreeSlots(MaxLocks) {} in Semaphore() 38 if (FreeSlots > 0) { in try_lock() 39 --FreeSlots; in try_lock() 51 SlotsChanged.wait(Lock, [&]() { return FreeSlots > 0; }); in lock() 52 --FreeSlots; in lock() 58 ++FreeSlots; in unlock()
|
/dports/devel/tinygo/tinygo-0.14.1/llvm-project/clang-tools-extra/clangd/ |
H A D | Threading.cpp | 33 Semaphore::Semaphore(std::size_t MaxLocks) : FreeSlots(MaxLocks) {} in Semaphore() 37 if (FreeSlots > 0) { in try_lock() 38 --FreeSlots; in try_lock() 50 SlotsChanged.wait(Lock, [&]() { return FreeSlots > 0; }); in lock() 51 --FreeSlots; in lock() 57 ++FreeSlots; in unlock()
|
/dports/devel/llvm11/llvm-11.0.1.src/tools/clang/tools/extra/clangd/support/ |
H A D | Threading.cpp | 34 Semaphore::Semaphore(std::size_t MaxLocks) : FreeSlots(MaxLocks) {} in Semaphore() 38 if (FreeSlots > 0) { in try_lock() 39 --FreeSlots; in try_lock() 51 SlotsChanged.wait(Lock, [&]() { return FreeSlots > 0; }); in lock() 52 --FreeSlots; in lock() 58 ++FreeSlots; in unlock()
|
/dports/devel/llvm-cheri/llvm-project-37c49ff00e3eadce5d8703fdc4497f28458c64a8/clang-tools-extra/clangd/support/ |
H A D | Threading.cpp | 34 Semaphore::Semaphore(std::size_t MaxLocks) : FreeSlots(MaxLocks) {} in Semaphore() 38 if (FreeSlots > 0) { in try_lock() 39 --FreeSlots; in try_lock() 51 SlotsChanged.wait(Lock, [&]() { return FreeSlots > 0; }); in lock() 52 --FreeSlots; in lock() 58 ++FreeSlots; in unlock()
|
/dports/devel/llvm90/llvm-9.0.1.src/tools/clang/tools/extra/clangd/ |
H A D | Threading.cpp | 32 Semaphore::Semaphore(std::size_t MaxLocks) : FreeSlots(MaxLocks) {} in Semaphore() 36 if (FreeSlots > 0) { in try_lock() 37 --FreeSlots; in try_lock() 49 SlotsChanged.wait(Lock, [&]() { return FreeSlots > 0; }); in lock() 50 --FreeSlots; in lock() 56 ++FreeSlots; in unlock()
|
/dports/devel/llvm10/llvm-10.0.1.src/tools/clang/tools/extra/clangd/ |
H A D | Threading.cpp | 33 Semaphore::Semaphore(std::size_t MaxLocks) : FreeSlots(MaxLocks) {} in Semaphore() 37 if (FreeSlots > 0) { in try_lock() 38 --FreeSlots; in try_lock() 50 SlotsChanged.wait(Lock, [&]() { return FreeSlots > 0; }); in lock() 51 --FreeSlots; in lock() 57 ++FreeSlots; in unlock()
|
/dports/devel/llvm12/llvm-project-12.0.1.src/clang-tools-extra/clangd/support/ |
H A D | Threading.cpp | 34 Semaphore::Semaphore(std::size_t MaxLocks) : FreeSlots(MaxLocks) {} in Semaphore() 38 if (FreeSlots > 0) { in try_lock() 39 --FreeSlots; in try_lock() 51 SlotsChanged.wait(Lock, [&]() { return FreeSlots > 0; }); in lock() 52 --FreeSlots; in lock() 58 ++FreeSlots; in unlock()
|
/dports/devel/wasi-compiler-rt12/llvm-project-12.0.1.src/clang-tools-extra/clangd/support/ |
H A D | Threading.cpp | 34 Semaphore::Semaphore(std::size_t MaxLocks) : FreeSlots(MaxLocks) {} in Semaphore() 38 if (FreeSlots > 0) { in try_lock() 39 --FreeSlots; in try_lock() 51 SlotsChanged.wait(Lock, [&]() { return FreeSlots > 0; }); in lock() 52 --FreeSlots; in lock() 58 ++FreeSlots; in unlock()
|
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/clang-tools-extra/clangd/support/ |
H A D | Threading.cpp | 35 Semaphore::Semaphore(std::size_t MaxLocks) : FreeSlots(MaxLocks) {} in Semaphore() 39 if (FreeSlots > 0) { in try_lock() 40 --FreeSlots; in try_lock() 52 SlotsChanged.wait(Lock, [&]() { return FreeSlots > 0; }); in lock() 53 --FreeSlots; in lock() 59 ++FreeSlots; in unlock()
|
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/clang-tools-extra/clangd/support/ |
H A D | Threading.cpp | 35 Semaphore::Semaphore(std::size_t MaxLocks) : FreeSlots(MaxLocks) {} in Semaphore() 39 if (FreeSlots > 0) { in try_lock() 40 --FreeSlots; in try_lock() 52 SlotsChanged.wait(Lock, [&]() { return FreeSlots > 0; }); in lock() 53 --FreeSlots; in lock() 59 ++FreeSlots; in unlock()
|
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/clang-tools-extra/clangd/support/ |
H A D | Threading.cpp | 35 Semaphore::Semaphore(std::size_t MaxLocks) : FreeSlots(MaxLocks) {} in Semaphore() 39 if (FreeSlots > 0) { in try_lock() 40 --FreeSlots; in try_lock() 52 SlotsChanged.wait(Lock, [&]() { return FreeSlots > 0; }); in lock() 53 --FreeSlots; in lock() 59 ++FreeSlots; in unlock()
|
/dports/lang/rust/rustc-1.58.1-src/src/llvm-project/clang-tools-extra/clangd/support/ |
H A D | Threading.cpp | 35 Semaphore::Semaphore(std::size_t MaxLocks) : FreeSlots(MaxLocks) {} in Semaphore() 39 if (FreeSlots > 0) { in try_lock() 40 --FreeSlots; in try_lock() 52 SlotsChanged.wait(Lock, [&]() { return FreeSlots > 0; }); in lock() 53 --FreeSlots; in lock() 59 ++FreeSlots; in unlock()
|
/dports/devel/llvm13/llvm-project-13.0.1.src/clang-tools-extra/clangd/support/ |
H A D | Threading.cpp | 35 Semaphore::Semaphore(std::size_t MaxLocks) : FreeSlots(MaxLocks) {} in Semaphore() 39 if (FreeSlots > 0) { in try_lock() 40 --FreeSlots; in try_lock() 52 SlotsChanged.wait(Lock, [&]() { return FreeSlots > 0; }); in lock() 53 --FreeSlots; in lock() 59 ++FreeSlots; in unlock()
|
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/compiler-rt/lib/gwp_asan/ |
H A D | guarded_pool_allocator.cpp | 82 State.MaxSimultaneousAllocations * sizeof(*FreeSlots), PageSize); in init() 83 FreeSlots = in init() 139 if (FreeSlots) { in uninitTestOnly() 140 unmap(FreeSlots, in uninitTestOnly() 141 roundUpTo(State.MaxSimultaneousAllocations * sizeof(*FreeSlots), in uninitTestOnly() 143 FreeSlots = nullptr; in uninitTestOnly() 336 size_t SlotIndex = FreeSlots[ReservedIndex]; in reserveSlot() 337 FreeSlots[ReservedIndex] = FreeSlots[--FreeSlotsLength]; in reserveSlot() 343 FreeSlots[FreeSlotsLength++] = SlotIndex; in freeSlot()
|
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/compiler-rt/lib/gwp_asan/ |
H A D | guarded_pool_allocator.cpp | 89 State.MaxSimultaneousAllocations * sizeof(*FreeSlots), PageSize); in init() 90 FreeSlots = in init() 146 if (FreeSlots) { in uninitTestOnly() 147 unmap(FreeSlots, in uninitTestOnly() 148 roundUpTo(State.MaxSimultaneousAllocations * sizeof(*FreeSlots), in uninitTestOnly() 150 FreeSlots = nullptr; in uninitTestOnly() 343 size_t SlotIndex = FreeSlots[ReservedIndex]; in reserveSlot() 344 FreeSlots[ReservedIndex] = FreeSlots[--FreeSlotsLength]; in reserveSlot() 350 FreeSlots[FreeSlotsLength++] = SlotIndex; in freeSlot()
|
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/compiler-rt/lib/gwp_asan/ |
H A D | guarded_pool_allocator.cpp | 82 State.MaxSimultaneousAllocations * sizeof(*FreeSlots), PageSize); in init() 83 FreeSlots = in init() 139 if (FreeSlots) { in uninitTestOnly() 140 unmap(FreeSlots, in uninitTestOnly() 141 roundUpTo(State.MaxSimultaneousAllocations * sizeof(*FreeSlots), in uninitTestOnly() 143 FreeSlots = nullptr; in uninitTestOnly() 336 size_t SlotIndex = FreeSlots[ReservedIndex]; in reserveSlot() 337 FreeSlots[ReservedIndex] = FreeSlots[--FreeSlotsLength]; in reserveSlot() 343 FreeSlots[FreeSlotsLength++] = SlotIndex; in freeSlot()
|
/dports/lang/rust/rustc-1.58.1-src/src/llvm-project/compiler-rt/lib/gwp_asan/ |
H A D | guarded_pool_allocator.cpp | 82 State.MaxSimultaneousAllocations * sizeof(*FreeSlots), PageSize); in init() 83 FreeSlots = in init() 139 if (FreeSlots) { in uninitTestOnly() 140 unmap(FreeSlots, in uninitTestOnly() 141 roundUpTo(State.MaxSimultaneousAllocations * sizeof(*FreeSlots), in uninitTestOnly() 143 FreeSlots = nullptr; in uninitTestOnly() 336 size_t SlotIndex = FreeSlots[ReservedIndex]; in reserveSlot() 337 FreeSlots[ReservedIndex] = FreeSlots[--FreeSlotsLength]; in reserveSlot() 343 FreeSlots[FreeSlotsLength++] = SlotIndex; in freeSlot()
|
/dports/devel/llvm13/llvm-project-13.0.1.src/compiler-rt/lib/gwp_asan/ |
H A D | guarded_pool_allocator.cpp | 82 State.MaxSimultaneousAllocations * sizeof(*FreeSlots), PageSize); in map_attrs_collect_remote() 83 FreeSlots = 139 if (FreeSlots) { 140 unmap(FreeSlots, 141 roundUpTo(State.MaxSimultaneousAllocations * sizeof(*FreeSlots), 143 FreeSlots = nullptr; 336 size_t SlotIndex = FreeSlots[ReservedIndex]; 337 FreeSlots[ReservedIndex] = FreeSlots[--FreeSlotsLength]; 343 FreeSlots[FreeSlotsLength++] = SlotIndex;
|
/dports/devel/llvm80/llvm-8.0.1.src/tools/clang/tools/extra/clangd/ |
H A D | Threading.cpp | 32 Semaphore::Semaphore(std::size_t MaxLocks) : FreeSlots(MaxLocks) {} in Semaphore() 36 if (FreeSlots > 0) { in try_lock() 37 --FreeSlots; in try_lock() 49 SlotsChanged.wait(Lock, [&]() { return FreeSlots > 0; }); in lock() 50 --FreeSlots; in lock() 56 ++FreeSlots; in unlock()
|
/dports/devel/llvm70/llvm-7.0.1.src/tools/clang/tools/extra/clangd/ |
H A D | Threading.cpp | 24 Semaphore::Semaphore(std::size_t MaxLocks) : FreeSlots(MaxLocks) {} in Semaphore() 32 SlotsChanged.wait(Lock, [&]() { return FreeSlots > 0; }); in lock() 33 --FreeSlots; in lock() 39 ++FreeSlots; in unlock()
|