mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 22:50:44 +00:00
- Wire physical-page accounting into xmem.cpp via shims/xmem/xmem_accounting.h so XMemGetWorkingSetStatistics and bx_xmem_get_internal_stats report allocated_physical_bytes and enforce one shared title memory budget across heap, virtual, and physical allocations. - Require exact full-span coverage in unmap_span; empty or partially mapped spans now fail with ERROR_INVALID_PARAMETER without disturbing existing views. - Document Win32 AWE-modeled synthetic signatures (AllocateUserPhysicalPages / FreeUserPhysicalPages in memoryapi.h) and intra-span duplicate-tag aliasing vs duplicate-tag free rejection. - Expand test_xmem_physical to cover working-set stats, shared cap enforcement, invalid flags, intra-span duplicate-tag aliasing, duplicate and stale free non-mutation, and partial/empty unmap rejection. - Resolve CHANGELOG.md conflict with origin/main. Signed-off-by: ates <ahmetrizaates@hotmail.com>
Synthetic PE32+ Conformance Tests (tests/conformance/)
Every directory matching test_*/CMakeLists.txt is auto-discovered by tests/conformance/CMakeLists.txt when running scripts/build-shims.sh.
Adding a New Test (Zero Shared-File Edits)
- Create
tests/conformance/test_<shim>/CMakeLists.txtandmain.cpp. - Build via
scripts/build-shims.sh(outputsbuild-shims/bin/test_<shim>.exe). - Run live under CrossOver + Rosetta 2:
target/debug/bx-cli run --prefix /tmp/bx-test --shims build-shims/bin --log /tmp/bx-test.jsonl --exe build-shims/bin/test_<shim>.exe