mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:25:53 +01:00
[PR #546] xmem: wire executable __XMemAllocationHooks__ export into XMemAlloc/X… #591
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#591
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/546
Author: @kotekompotek
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:work/xmem-allocation-hooks📝 Commits (1)
8c3eb18xmem: forward XMemAlloc/XMemFree through the title's XMemAllocationHooks📊 Changes
3 files changed (+71 additions, -1 deletions)
View changed files
📝
docs/xmem_exe_calls.md(+5 -1)📝
runtime/shims/xmem.cpp(+10 -0)📝
runtime/test/xmem_test.cpp(+56 -0)📄 Description
Claimed in the coordination issue as: XMEM-HOOKS (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7140854018)
What and why
main.__XMemAllocationHooks__({alloc, free}) throughpe_loader/shimsintoXMemAlloc/XMemFree(whileXMemAllocDefault/XMemFreeDefaultbypass hooks andLoader::~Loader()clears them).runtime/shims/xmem.hcomment anddocs/xmem_exe_calls.mdto accurately reflect that only the symbol export is observed indocs/xmem_exe_calls.mdand title runtime hook behaviour is unmeasured.Tested
pe_loader(Passed, 1.80s) andxmem(Passed, 0.27s) on Windows.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.