Skip to content

fix: switch ArenaAllocator to VirtualAlloc/mmap with on-demand page commit - #531

Merged
jnyfah merged 1 commit into
developfrom
user/kernel/fix-arena-alloc
Jun 30, 2026
Merged

jnyfah merged 1 commit into
developfrom
user/kernel/fix-arena-alloc

Conversation

@JeanPhilippeKernel

@JeanPhilippeKernel JeanPhilippeKernel commented Jun 28, 2026

Copy link
Copy Markdown
Owner

This PR addresses reported bugs from memory-allocator-audit

@JeanPhilippeKernel JeanPhilippeKernel added this to the Born baby (0.2.0) milestone Jun 28, 2026
@JeanPhilippeKernel JeanPhilippeKernel self-assigned this Jun 28, 2026
@JeanPhilippeKernel JeanPhilippeKernel added enhancement New feature or request area-linux Work on Linux system area-window Work on Window system area-macOS Work on macOS system labels Jun 28, 2026
@JeanPhilippeKernel
JeanPhilippeKernel force-pushed the user/kernel/fix-arena-alloc branch 3 times, most recently from 96cee0e to e1c0649 Compare June 29, 2026 14:08
@JeanPhilippeKernel JeanPhilippeKernel moved this to In Progress in ZEngine Board Jun 29, 2026
@JeanPhilippeKernel
JeanPhilippeKernel force-pushed the user/kernel/fix-arena-alloc branch 4 times, most recently from 08cbb5f to 7b83f75 Compare June 29, 2026 15:19
@JeanPhilippeKernel
JeanPhilippeKernel marked this pull request as ready for review June 29, 2026 15:40
@JeanPhilippeKernel JeanPhilippeKernel changed the title fix: improvement of memory allocator feat: switch ArenaAllocator to VirtualAlloc/mmap with on-demand page commit Jun 29, 2026
@JeanPhilippeKernel JeanPhilippeKernel added bug Something isn't working critical and removed bug Something isn't working labels Jun 29, 2026
@JeanPhilippeKernel
JeanPhilippeKernel force-pushed the user/kernel/fix-arena-alloc branch from 7b83f75 to dd64969 Compare June 29, 2026 17:20
@JeanPhilippeKernel JeanPhilippeKernel changed the title feat: switch ArenaAllocator to VirtualAlloc/mmap with on-demand page commit fix: switch ArenaAllocator to VirtualAlloc/mmap with on-demand page commit Jun 29, 2026
@JeanPhilippeKernel
JeanPhilippeKernel force-pushed the user/kernel/fix-arena-alloc branch 2 times, most recently from 310363e to 75ef78e Compare June 29, 2026 22:16
@JeanPhilippeKernel
JeanPhilippeKernel force-pushed the user/kernel/fix-arena-alloc branch from 75ef78e to a2cee43 Compare June 29, 2026 23:09
@jnyfah
jnyfah merged commit 43983c1 into develop Jun 30, 2026
21 checks passed
@jnyfah
jnyfah deleted the user/kernel/fix-arena-alloc branch June 30, 2026 13:12
@github-project-automation github-project-automation Bot moved this from In Progress to Done in ZEngine Board Jun 30, 2026
This was referenced Jul 2, 2026
JeanPhilippeKernel added a commit that referenced this pull request Aug 3, 2026
All 16 allocator bugs from memory-allocator-audit.md are fixed (PRs #497,
#531). Sprint 1 is complete; Sprint 2 is in progress. Hard deadlines table
updated to reflect current state. Emoji replaced with plain text labels.
This was referenced Aug 3, 2026
JeanPhilippeKernel added a commit that referenced this pull request Sep 3, 2026
…mpleted/

Verified every doc's completion claim against the actual codebase — file
existence, key symbols, checklist items — rather than trusting the Status
line alone. Two categories of finding:

Checklist-hygiene gaps (real implementation, boxes just never ticked):
render-resource-manager.md, vfs-ticket2/4/5. Ticked every item after
confirming the referenced file/symbol/test exists. render-resource-manager.md
also got a naming-divergence note — the doc's proposed GPUResource.h/
GPUBuffer/GPUImage shipped as GpuAllocator.h's BufferView/BufferImage
instead; functionally identical, different names.

Genuine correctness gap: fly-camera-redesign.md claimed 'Implemented' with
every one of its own checklist items unchecked, and describes an entirely
different architecture (FlyCameraInput/FlyCameraState/EditorCameraController)
than what's actually in FlyCameraController.h (CamState enum,
SetViewportRect self-gating). Corrected the status to flag this and pointed
at the real design so a future reader isn't misled.

memory-allocator-audit.md — added a scope note: its 13 bugs (#497/#531) are
genuinely all fixed, but later, unrelated allocator bugs were found and
fixed independently this cycle (#680-683, #697, #728, #731) — pointed to the
wiki's Memory Management page for the current picture.

Moved to ZEngine/docs/completed/ (verified, no open items): asset-manager.md,
memory-allocator-audit.md, vfs-design.md, vfs-ticket2/3/4/5/6,
gpu-allocator-rearchitecture.md, render-resource-manager.md,
system-scheduler.md, ui-system.md.

Left in place — genuinely partial: tlsf-allocator-integration.md (Phase 3
blocked), logging-policy.md (real outstanding verification/benchmark tasks),
fly-camera-redesign.md (needs a content rewrite, not just a status fix), and
everything already marked Design/Planning/In Progress/Partially implemented.

Cross-checked every backtick-quoted reference to the 12 moved filenames
across the rest of the docs tree — all are informal textual mentions, not
markdown hyperlinks, so nothing broke.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-linux Work on Linux system area-macOS Work on macOS system area-window Work on Window system bug Something isn't working critical enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants