Home
last modified time | relevance | path

Searched refs:RunSlots (Results 1 - 9 of 9) sorted by relevance

/arkcompiler/runtime_core/static_core/runtime/mem/
H A Drunslots.cpp25 #define LOG_RUNSLOTS(level) LOG(level, ALLOC) << "RunSlots: "
28 void RunSlots<LockTypeT>::Initialize(size_t slotSize, uintptr_t poolPointer, bool initializeLock) in Initialize()
31 LOG_RUNSLOTS(DEBUG) << "Initializing RunSlots:"; in Initialize()
32 ASSERT_PRINT((slotSize >= SlotToSize(SlotsSizes::SLOT_MIN_SIZE_BYTES)), "Size of slot in RunSlots is too small"); in Initialize()
33 ASSERT_PRINT((slotSize <= SlotToSize(SlotsSizes::SLOT_MAX_SIZE_BYTES)), "Size of slot in RunSlots is too big"); in Initialize()
36 ASSERT_PRINT(!(ToUintPtr(this) & RUNSLOTS_ALIGNMENT_MASK), "RunSlots object must have alignment"); in Initialize()
56 LOG_RUNSLOTS(DEBUG) << "Successful finished RunSlots init"; in Initialize()
61 FreeSlot *RunSlots<LockTypeT>::PopFreeSlot() in PopFreeSlot()
68 LOG_RUNSLOTS(DEBUG) << "Failed to get free slot - there are no free slots in RunSlots"; in PopFreeSlot()
82 << ". Used slots in this RunSlots in PopFreeSlot()
[all...]
H A Drunslots.h42 * A class for free slots inside RunSlots object.
43 * Each free slot has a link to the next slot in RunSlots.
61 * The main class for RunSlots.
62 * Each RunSlots consumes RUNSLOTS_SIZE bytes of memory.
63 * RunSlots is divided into equal size slots which will be used for allocation.
64 * The RunSlots header is stored inside the first slot (or slots) of this RunSlots instance.
67 class RunSlots { class
128 void SetNextRunSlots(RunSlots *runslots) in SetNextRunSlots()
137 RunSlots *GetNextRunSlot
[all...]
H A Drunslots_allocator_stl_adapter.h120 return RunSlots<>::MaxSlotSize() / sizeof(T); in max_size()
H A Dfreelist_allocator.h30 // Minimal size of this allocator is a max size of RunSlots allocator.
31 static constexpr size_t PANDA_FREELIST_ALLOCATOR_MIN_SIZE = RunSlots<>::MaxSlotSize();
H A Drunslots_allocator.h62 * RunSlotsAllocator is an allocator based on RunSlots instance.
63 * It gets a big pool of memory from OS and uses it for creating RunSlots with different slot sizes.
168 using RunSlotsType = RunSlots<typename LockConfigT::RunSlotsLock>;
411 // Return true if this object could be allocated by the RunSlots allocator.
420 // Add one to the array size to just use the size (power of two) for RunSlots list without any modifications
425 // Add totally free RunSlots in this list for possibility to reuse them with different element sizes.
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dinternal_allocator_test.cpp79 InfinitiveAllocate(RunSlots<>::MaxSlotSize()); in TEST_F()
131 void *mem = allocator_->Alloc(RunSlots<>::MaxSlotSize()); in TEST_F()
149 constexpr size_t N = RunSlots<>::MaxSlotSize() + DEFAULT_INTERNAL_ALIGNMENT_IN_BYTES; in TEST_F()
191 constexpr size_t N = RunSlots<>::MaxSlotSize() + DEFAULT_INTERNAL_ALIGNMENT_IN_BYTES; in TEST_F()
H A Dmem_stats_gc_test.cpp67 aligmentSize = 1UL << RunSlots<>::ConvertToPowerOfTwoUnsafe(allocSize); in SetAligment()
147 32, // RunSlots: aligned & object_size = RunSlot size
148 72, // RunSlots: aligned & object_size != RunSlot size
149 129, // RunSlots: not aligned
H A Drunslots_allocator_test.cpp27 using RunSlotsType = RunSlots<>;
89 LOG(DEBUG, ALLOC) << "Test RunSlots with size " << slotsSize; in TestRunSlots()
318 // Alloc small object. We must reuse already allocated and freed RunSlots in TEST_F()
H A Dmem_stats_test.cpp251 size_t aligmentSize = 1UL << RunSlots<>::ConvertToPowerOfTwoUnsafe(allocSize); in TEST_F()

Completed in 6 milliseconds