mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:50:52 +01:00
[PR #1707] xmem: 64-page aligned fault-ahead batch commit (XMEM-FAULT-BATCH-COMMIT) #1721
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#1721
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/1707
Author: @Tortoche
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/xmem-fault-batch-commit📝 Commits (1)
a4d8625xmem: commit 64-page aligned batches on physical page fault📊 Changes
2 files changed (+94 additions, -3 deletions)
View changed files
📝
runtime/shims/xmem.cpp(+21 -3)📝
runtime/test/xmem_test.cpp(+73 -0)📄 Description
Claim:
XMEM-FAULT-BATCH-COMMIT(https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157581316)AI-assisted: yes
Summary
commit_mapped_page(runtime/shims/xmem.cpp), clamped to[0, view.count).VirtualQuery+info.State == MEM_COMMITguard soaccess_allowedcontinues to enforcePAGE_READONLYandPAGE_GUARDfaults.VirtualAllocif a multi-page batchVirtualAllocfails.leonida::geometry_writes::notifyfor the committed range andleonida::title_memory_map::changed().test_fault_batch_commitinruntime/test/xmem_test.cppcovering 64-page aligned batch commit, view-boundary clamping (< 64pages), andPAGE_READONLYprotection preservation across a committed batch.Testing
python3 -I scripts/check_no_game_data.py runtime/shims/xmem.cpp runtime/test/xmem_test.cpp-> PASSpython3 -I tests/test_text_write_line_endings.py-> PASS (Ran 3 tests in 20.988s, OK)cmake --build runtime/build --config RelWithDebInfo --target xmem_test gta6rt+ctest --test-dir runtime/build -C RelWithDebInfo -R "^xmem" --output-on-failure):1/3 Test #48: xmem ............................. Passed 3.23 sec2/3 Test #49: xmem_no_write_watch .............. Passed 3.21 sec3/3 Test #50: xmem_write_watch ................. Passed 3.21 sec100% tests passed out of 3(9.68 sec)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.