Home
last modified time | relevance | path

Searched refs:hoardHeap (Results 1 – 9 of 9) sorted by relevance

/haiku/src/system/libroot/posix/malloc/hoard2/
H A Dsuperblock.cpp44 hoardHeap * o) // The heap that "owns" this sb. in superblock()
57 const int blksize = hoardHeap::align(sizeof(block) in superblock()
58 + hoardHeap::sizeFromClass(_sizeClass)); in superblock()
61 assert((blksize & hoardHeap::ALIGNMENT_MASK) == 0); in superblock()
64 block *b = (block *) hoardHeap::align((unsigned long)(this + 1)); in superblock()
70 assert(((unsigned long)b & hoardHeap::ALIGNMENT_MASK) == 0); in superblock()
80 assert((unsigned long)b <= hoardHeap::align(sizeof(superblock) + blksize * _numBlocks) in superblock()
93 int numBlocks = hoardHeap::numBlocks(sizeclass); in makeSuperblock()
98 moreMemory = hoardHeap::SUPERBLOCK_SIZE; in makeSuperblock()
99 assert(moreMemory >= hoardHeap::align(sizeof(superblock) in makeSuperblock()
[all …]
H A Dheap.h39 class hoardHeap {
41 hoardHeap(void);
150 hoardHeap(const hoardHeap &);
151 const hoardHeap & operator=(const hoardHeap &);
226 hoardHeap::incStats(int sizeclass, int updateU, int updateA) in incStats()
238 hoardHeap::incUStats(int sizeclass) in incUStats()
248 hoardHeap::decStats(int sizeclass, int updateU, int updateA) in decStats()
260 hoardHeap::decUStats(int sizeclass) in decUStats()
270 hoardHeap::getStats(int sizeclass, int &U, int &A) in getStats()
281 hoardHeap::maxInUse(int sizeclass) in maxInUse()
[all …]
H A Dheap.cpp34 size_t hoardHeap::_sizeTable[hoardHeap::SIZE_CLASSES] = {
52 size_t hoardHeap::_threshold[hoardHeap::SIZE_CLASSES] = {
65 size_t hoardHeap::_sizeTable[hoardHeap::SIZE_CLASSES] = {
74 size_t hoardHeap::_threshold[hoardHeap::SIZE_CLASSES] = {
83 size_t hoardHeap::_sizeTable[hoardHeap::SIZE_CLASSES] = {
91 size_t hoardHeap::_threshold[hoardHeap::SIZE_CLASSES] = {
102 int hoardHeap::fMaxThreadHeaps = 1;
103 int hoardHeap::_numProcessors;
104 int hoardHeap::_numProcessorsMask;
128 hoardHeap::hoardHeap(void) in hoardHeap() function in hoardHeap
[all …]
H A Dsuperblock.h42 class hoardHeap; // forward declaration variable
49 superblock(int numblocks, int sizeclass, hoardHeap *owner);
56 inline hoardHeap *getOwner(void);
59 inline void setOwner(hoardHeap *o);
134 hoardHeap *_owner; // The heap who owns this superblock.
146 hoardHeap *
150 hoardHeap *o = _owner; in getOwner()
156 superblock::setOwner(hoardHeap *o) in setOwner()
H A Dprocessheap.h48 class processHeap : public hoardHeap {
77 inline superblock *acquire(const int c, hoardHeap * dest);
125 hoardHeap::lock(); in lock()
131 hoardHeap::unlock(); in unlock()
215 processHeap::acquire(const int sizeclass, hoardHeap * dest) in acquire()
H A Darch-specific.cpp88 hoardHeap::initNumProcs(); in __init_heap()
154 size = (size + hoardHeap::ALIGNMENT - 1) & ~(hoardHeap::ALIGNMENT - 1); in hoardSbrk()
H A Dwrapper.cpp266 static_cast<hoardHeap*>(pHeap)->lock(); in __heap_before_fork()
290 static_cast<hoardHeap*>(pHeap)->unlock(); in __heap_after_fork_parent()
598 for (int i = 0; i < hoardHeap::SIZE_CLASSES; i++) { in mstats()
612 stats.chunks_free = hoardHeap::SIZE_CLASSES - chunks; in mstats()
H A Dthreadheap.h37 class threadHeap : public hoardHeap {
H A Dprocessheap.cpp196 hoardHeap *owner; in free()