61 template <
typename A0>
106template<u32 ChunkSize,
typename T>
203 if (
chunk->checkArea(ptr)) {
241 static void*
operator new(
size_t n) {
245 static void*
operator new(
size_t n,
void* ptr) {
248 static void operator delete(
void* ptr,
size_t n) {
294 static void*
operator new(
size_t n) {
298 static void*
operator new(
size_t n,
void* ptr) {
301 static void operator delete(
void* ptr,
size_t n) {
JKRSolidHeap * JASDram
Definition JASHeapCtrl.cpp:218
asm BOOL OSRestoreInterrupts(register BOOL status)
Definition OSInterrupt.c:46
asm BOOL OSDisableInterrupts(void)
Definition OSInterrupt.c:10
void OSInitMutex(OSMutex *mutex)
Definition OSMutex.c:55
void OSUnlockMutex(OSMutex *mutex)
Definition OSMutex.c:88
void OSLockMutex(OSMutex *mutex)
Definition OSMutex.c:62
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JASHeapCtrl.h:17
JASDisposer * mDisposer
Definition JASHeapCtrl.h:36
void initRootHeap(void *, u32)
Definition JASHeapCtrl.cpp:23
bool isAllocated()
Definition JASHeapCtrl.h:31
JASHeap * field_0x40
Definition JASHeapCtrl.h:39
JSUTree< JASHeap > mTree
Definition JASHeapCtrl.h:34
OSMutex mMutex
Definition JASHeapCtrl.h:35
JASHeap * getTailHeap()
Definition JASHeapCtrl.cpp:170
u32 mSize
Definition JASHeapCtrl.h:38
bool allocTail(JASHeap *, u32)
Definition JASHeapCtrl.cpp:90
void insertChild(JASHeap *, JASHeap *, void *, u32, bool)
Definition JASHeapCtrl.cpp:147
u32 getSize()
Definition JASHeapCtrl.h:32
bool alloc(JASHeap *, u32)
Definition JASHeapCtrl.cpp:32
bool free()
Definition JASHeapCtrl.cpp:111
u32 getTailOffset()
Definition JASHeapCtrl.cpp:185
u8 * mBase
Definition JASHeapCtrl.h:37
void * getBase()
Definition JASHeapCtrl.h:30
~JASHeap()
Definition JASHeapCtrl.h:28
u32 getCurOffset()
Definition JASHeapCtrl.cpp:193
Definition JASHeapCtrl.h:107
void * alloc(u32 size)
Definition JASHeapCtrl.h:185
JASMemChunkPool()
Definition JASHeapCtrl.h:156
MemoryChunk * field_0x18
Definition JASHeapCtrl.h:218
bool createNewChunk()
Definition JASHeapCtrl.h:162
void free(void *ptr)
Definition JASHeapCtrl.h:198
OSMutex mMutex
Definition JASHeapCtrl.h:217
Definition JASHeapCtrl.h:269
void newMemPool(int param_0)
Definition JASHeapCtrl.h:271
void * alloc(size_t count)
Definition JASHeapCtrl.h:276
void free(void *ptr, u32 param_1)
Definition JASHeapCtrl.h:281
Definition JASHeapCtrl.h:95
void newMemPool(int param_0)
Definition JASHeapCtrl.h:97
void free(void *ptr, u32 n)
Definition JASHeapCtrl.h:99
void * alloc(u32 n)
Definition JASHeapCtrl.h:98
Definition JASHeapCtrl.h:292
static void newMemPool(int n)
Definition JASHeapCtrl.h:306
static JASMemPool_MultiThreaded< T > * getMemPool()
Definition JASHeapCtrl.h:311
Definition JASHeapCtrl.h:239
static JASMemPool< T > * getMemPool()
Definition JASHeapCtrl.h:258
static void newMemPool(int param_0)
Definition JASHeapCtrl.h:252
static JKRHeap * getSystemHeap()
Definition JKRHeap.h:153
Definition JKRSolidHeap.h:10
Definition JASAudioThread.cpp:41
static const double T[]
Definition k_tan.c:106
Definition JASHeapCtrl.h:221
void setupAramHeap(u32, u32)
Definition JASHeapCtrl.cpp:289
JASMemChunkPool< 1024, JASThreadingModel::ObjectLevelLockable > * sCommandHeap
Definition JASHeapCtrl.cpp:262
u32 sAramBase
Definition JASHeapCtrl.cpp:256
JKRHeap * getSystemHeap()
Definition JASHeapCtrl.cpp:276
JASHeap audioAramHeap
Definition JASHeapCtrl.cpp:286
JKRHeap * sSystemHeap
Definition JASHeapCtrl.cpp:259
JASMemChunkPool< 1024, JASThreadingModel::ObjectLevelLockable > * getCommandHeap()
Definition JASHeapCtrl.cpp:281
void setupRootHeap(JKRSolidHeap *, u32)
Definition JASHeapCtrl.cpp:266
JASHeap * getAramHeap()
Definition JASHeapCtrl.cpp:295
Definition JASHeapCtrl.h:60
Definition JASWaveArcLoader.h:15
Definition JASHeapCtrl.h:46
~JASGenericMemPool()
Definition JASHeapCtrl.cpp:208
u32 usedMemCount
Definition JASHeapCtrl.h:56
u32 freeMemCount
Definition JASHeapCtrl.h:54
u32 totalMemCount
Definition JASHeapCtrl.h:55
void * field_0x0
Definition JASHeapCtrl.h:53
void newMemPool(u32, int)
Definition JASHeapCtrl.cpp:222
void free(void *, u32)
Definition JASHeapCtrl.cpp:247
JASGenericMemPool()
Definition JASHeapCtrl.cpp:200
void * alloc(u32)
Definition JASHeapCtrl.cpp:233
Definition JASHeapCtrl.h:108
u32 getFreeSize()
Definition JASHeapCtrl.h:142
void revive()
Definition JASHeapCtrl.h:146
u8 mBuffer[ChunkSize]
Definition JASHeapCtrl.h:153
u32 mUsedSize
Definition JASHeapCtrl.h:151
MemoryChunk(MemoryChunk *nextChunk)
Definition JASHeapCtrl.h:109
MemoryChunk * mNextChunk
Definition JASHeapCtrl.h:150
void setNextChunk(MemoryChunk *chunk)
Definition JASHeapCtrl.h:138
u32 mChunks
Definition JASHeapCtrl.h:152
bool isEmpty()
Definition JASHeapCtrl.h:134
void free()
Definition JASHeapCtrl.h:130
void * alloc(u32 size)
Definition JASHeapCtrl.h:123
MemoryChunk * getNextChunk()
Definition JASHeapCtrl.h:119
bool checkArea(void *ptr)
Definition JASHeapCtrl.h:115
Definition JASHeapCtrl.h:63
~Lock()
Definition JASHeapCtrl.h:65
BOOL field_0x0
Definition JASHeapCtrl.h:67
Lock(const A0 ¶m_0)
Definition JASHeapCtrl.h:64
Definition JASHeapCtrl.h:62
Definition JASHeapCtrl.h:75
~Lock()
Definition JASHeapCtrl.h:81
Lock(OSMutex *mutex)
Definition JASHeapCtrl.h:76
OSMutex * mMutex
Definition JASHeapCtrl.h:85
Definition JASHeapCtrl.h:72
int BOOL
Definition types.h:27
unsigned long u32
Definition types.h:10
unsigned char u8
Definition types.h:8