Home
last modified time | relevance | path

Searched refs:runslots (Results 1 - 4 of 4) sorted by relevance

/arkcompiler/runtime_core/static_core/runtime/mem/
H A Drunslots_allocator-inl.h68 RunSlotsType *runslots = nullptr; in Alloc() local
72 runslots = runslots_[arrayIndex].PopFromHead(); in Alloc()
74 if (runslots == nullptr) { in Alloc()
82 runslots = freeRunslots_.PopFromHead(); in Alloc()
84 if (runslots != nullptr) { in Alloc()
90 runslots = CreateNewRunSlotsFromMemory(runSlotSize); in Alloc()
91 if (runslots == nullptr) { in Alloc()
99 os::memory::LockHolder<typename LockConfigT::RunSlotsLock, NEED_LOCK> runslotsLock(*runslots->GetLock()); in Alloc()
103 if (runslots->GetSlotsSize() != runSlotSize) { in Alloc()
104 runslots in Alloc()
107 LOG_RUNSLOTS_ALLOCATOR(DEBUG) << "Used runslots with addr " << std::hex << runslots; Alloc() local
151 FreeUnsafeInternal(RunSlotsType *runslots, void *mem) FreeUnsafeInternal() argument
209 auto runslots = static_cast<RunSlotsType *>(ToVoidPtr(runslotsAddr)); FreeUnsafe() local
272 RunSlotsType *runslots = memoryPool_.template GetNewRunSlots<NEED_LOCK>(slotsSize); CreateNewRunSlotsFromMemory() local
275 << std::hex << runslots; CreateNewRunSlotsFromMemory() local
348 auto runslots = static_cast<RunSlotsType *>(ToVoidPtr(runslotsAddr)); IterateOverObjectsInRange() local
363 RunSlotsType *runslots = nullptr; VerifyAllocator() local
415 PushToTail(RunSlotsType *runslots) PushToTail() argument
479 PopFromList(RunSlotsType *runslots) PopFromList() argument
481 LOG_RUNSLOTS_ALLOCATOR(DEBUG) << "PopFromList RunSlots with addr " << std::hex << runslots; PopFromList() local
574 ReturnAndReleaseRunSlotsMemory( RunSlotsType *runslots) ReturnAndReleaseRunSlotsMemory() argument
785 RunSlotsType *runslots = GetFreedRunSlots(slotsSize); GetMemoryForRunSlots() local
[all...]
H A Drunslots_allocator.h26 #include "runtime/mem/runslots.h"
195 void PushToTail(RunSlotsType *runslots);
201 void PopFromList(RunSlotsType *runslots);
203 bool IsInThisList(RunSlotsType *runslots) in IsInThisList() argument
207 if (current == runslots) { in IsInThisList()
273 void ReturnAndReleaseRunSlotsMemory(RunSlotsType *runslots);
407 bool FreeUnsafeInternal(RunSlotsType *runslots, void *mem);
H A Drunslots.h128 void SetNextRunSlots(RunSlots *runslots) in SetNextRunSlots() argument
131 nextRunslot_ = runslots; in SetNextRunSlots()
147 void SetPrevRunSlots(RunSlots *runslots) in SetPrevRunSlots() argument
150 prevRunslot_ = runslots; in SetPrevRunSlots()
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Drunslots_allocator_test.cpp91 auto runslots = reinterpret_cast<RunSlotsType *>(mem); in TestRunSlots() local
92 runslots->Initialize(slotsSize, ToUintPtr(mem), true); in TestRunSlots()
94 while (runslots->PopFreeSlot() != nullptr) { in TestRunSlots()
313 // Alloc one big object. this must cause runslots init with it size in TEST_F()

Completed in 4 milliseconds