# LajKTo OS 0.0.52-dev.22

## Lazy kernel heap and low-memory boot

- Reduced the permanent boot-time kernel heap from 16 MiB to 256 KiB.
- Added on-demand heap extents. Normal growth uses 64 KiB chunks; larger requests get a suitably sized extent.
- When every allocation in a dynamic extent is freed, its physical pages are returned to the page allocator.
- The 256 KiB base heap remains resident as a small safety reserve.
- Added a host regression test for allocation, zero-fill, growth, realloc data preservation, free, and dynamic-extent reclamation.
- Kept all application/runtime payloads and source features. Freedoom WAD data remains on the ISO but is no longer loaded into RAM during boot.

## Verification

- make BUILD=build/lazy-heap-dev22 test-heap-lazy: PASS.
- QEMU BIOS, 128 MiB: desktop-ready, framebuffer screenshot captured.
- QEMU UEFI, 128 MiB: desktop-ready, framebuffer screenshot captured.
- Both boots report version 0.0.52-dev.22 and the 256 KiB lazy heap.
- No Freedoom missing-file warnings and no WAD boot modules loaded.

## Limitations

- QEMU verification only. A physical 128 MiB device has not yet been tested.
- Freedoom WAD files remain on the ISO but are not preloaded at boot. The on-demand WAD loader is not implemented yet, so Freedoom cannot currently be launched in this build.
- Dynamic heap growth/release is covered by the host regression test; a long-duration GUI/application stress test is still pending.
- DEV22 is published as an experimental development preview. DEV21 remains available as the previous build.
