Skip to content

Comments

Decompile mHeap#91

Merged
RootCubed merged 4 commits intomasterfrom
m_heap
Feb 16, 2026
Merged

Decompile mHeap#91
RootCubed merged 4 commits intomasterfrom
m_heap

Conversation

@CLF78
Copy link
Contributor

@CLF78 CLF78 commented Dec 29, 2025

Cleanup in progress...

Cleanup to be done
@decomp-dev
Copy link

decomp-dev bot commented Dec 29, 2025

Report for SMNP01 (d5d6a7c - db6280e)

📈 Matched code: 3.33% (+0.03%, +1668 bytes)
📈 Linked code: 3.34% (+0.03%, +1668 bytes)
📈 Linked data: 1.92% (+0.02%, +344 bytes)

✅ 25 new matches
Unit Item Bytes Before After
dol/mLib/m_heap.cpp mHeap::createExpHeap(unsigned long, EGG::Heap*, const char*, unsigned long, mHeap::AllocOptBit_t) +268 0.00% 100.00%
dol/mLib/m_heap.cpp mHeap::createFrmHeap(unsigned long, EGG::Heap*, const char*, unsigned long, mHeap::AllocOptBit_t) +268 0.00% 100.00%
dol/mLib/m_heap.cpp mHeap::createUntHeap(unsigned long, unsigned long, EGG::Heap*, const char*, unsigned long, mHeap::AllocOptBit_t) +240 0.00% 100.00%
dol/mLib/m_heap.cpp mHeap::createGameHeap(int, unsigned long, EGG::Heap*) +172 0.00% 100.00%
dol/mLib/m_heap.cpp mHeap::createHeap(unsigned long, EGG::Heap*, const char*) +116 0.00% 100.00%
dol/mLib/m_heap.cpp mHeap::adjustFrmHeap(EGG::FrmHeap*) +104 0.00% 100.00%
dol/mLib/m_heap.cpp mHeap::createAssertHeap(EGG::Heap*) +80 0.00% 100.00%
dol/mLib/m_heap.cpp mHeap::createFrmHeapToCurrent(unsigned long, EGG::Heap*, const char*, unsigned long, mHeap::AllocOptBit_t) +64 0.00% 100.00%
dol/mLib/m_heap.cpp mHeap::GetOptFlag(mHeap::AllocOptBit_t) +52 0.00% 100.00%
dol/mLib/m_heap.cpp mHeap::restoreCurrentHeap() +44 0.00% 100.00%
dol/mLib/m_heap.cpp mHeap::createArchiveHeap(unsigned long, EGG::Heap*) +44 0.00% 100.00%
dol/mLib/m_heap.cpp mHeap::createCommandHeap(unsigned long, EGG::Heap*) +44 0.00% 100.00%
dol/mLib/m_heap.cpp mHeap::createDylinkHeap(unsigned long, EGG::Heap*) +44 0.00% 100.00%
dol/mLib/m_heap.cpp mHeap::destroyFrmHeap(EGG::FrmHeap*) +28 0.00% 100.00%
dol/mLib/m_heap.cpp mHeap::expHeapCost(unsigned long, unsigned long) +24 0.00% 100.00%
dol/mLib/m_heap.cpp mHeap::frmHeapCost(unsigned long, unsigned long) +24 0.00% 100.00%
dol/mLib/m_heap.cpp mHeap::createGameHeap1(unsigned long, EGG::Heap*) +16 0.00% 100.00%
dol/mLib/m_heap.cpp mHeap::createGameHeap2(unsigned long, EGG::Heap*) +16 0.00% 100.00%
dol/mLib/m_heap.cpp mHeap::saveCurrentHeap() +12 0.00% 100.00%
dol/mLib/m_heap.cpp mHeap::setCurrentHeap(EGG::Heap*) +4 0.00% 100.00%
dol/mLib/m_heap.cpp mHeap::untHeapCost(unsigned long, unsigned long, unsigned long) +4 0.00% 100.00%
runtime/global_destructor_chain.c __register_global_object -4 100.00% 100.00%
runtime/global_destructor_chain.c __register_global_object -4 100.00% 100.00%
runtime/global_destructor_chain.c __destroy_global_chain -12 100.00% 100.00%
runtime/global_destructor_chain.c __destroy_global_chain -12 100.00% 100.00%
💔 2 broken matches
Unit Item Bytes Before After
runtime/global_destructor_chain.c .dtors -4 100.00% 0.00%
runtime/global_destructor_chain.c .dtors -4 100.00% 0.00%
📈 7 improvements in unmatched items
Unit Item Bytes Before After
dol/mLib/m_heap.cpp .data +276 0.00% 98.92%
dol/mLib/m_heap.cpp .sbss +21 0.00% 90.91%
dol/mLib/m_heap.cpp .rodata +14 0.00% 90.48%
dol/mLib/m_heap.cpp .bss +12 0.00% 75.00%
runtime/global_destructor_chain.c .sbss +5 0.00% 66.67%
runtime/global_destructor_chain.c .sbss +5 0.00% 66.67%
dol/mLib/m_heap.cpp .sdata +1 0.00% 22.22%
📉 2 regressions in unmatched items
Unit Item Bytes Before After
runtime/global_destructor_chain.c .bss -5 66.67% 0.00%
runtime/global_destructor_chain.c .bss -5 66.67% 0.00%

@CLF78 CLF78 marked this pull request as ready for review February 16, 2026 00:34
@CLF78 CLF78 requested a review from RootCubed February 16, 2026 00:34
CLF78 and others added 2 commits February 16, 2026 18:21
Co-authored-by: Liam Braun <41953062+RootCubed@users.noreply.github.com>
Co-authored-by: Liam Braun <41953062+RootCubed@users.noreply.github.com>
@RootCubed RootCubed merged commit aaf8558 into master Feb 16, 2026
6 checks passed
@RootCubed RootCubed deleted the m_heap branch February 16, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants