summaryrefslogtreecommitdiff
path: root/libs/JSystem/JKernel/JKRExpHeap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/JSystem/JKernel/JKRExpHeap.cpp')
-rw-r--r--libs/JSystem/JKernel/JKRExpHeap.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/JSystem/JKernel/JKRExpHeap.cpp b/libs/JSystem/JKernel/JKRExpHeap.cpp
index 610308db4e..674095a13d 100644
--- a/libs/JSystem/JKernel/JKRExpHeap.cpp
+++ b/libs/JSystem/JKernel/JKRExpHeap.cpp
@@ -342,6 +342,12 @@ void* JKRExpHeap::allocFromHead(u32 size, int align) {
} else {
CMemBlock* prev = foundBlock->mPrev;
CMemBlock* next = foundBlock->mNext;
+ // Works but very fake match
+ /*size = (u32)foundBlock->allocFore(size, mCurrentGroupId, 0, 0, 0);
+ removeFreeBlock(foundBlock);
+ if (size) {
+ setFreeBlock((CMemBlock*)size, prev, next);
+ }*/
newFreeBlock = foundBlock->allocFore(size, mCurrentGroupId, 0, 0, 0);
removeFreeBlock(foundBlock);
if (newFreeBlock) {