about summary refs log tree commit diff stats
path: root/src/tools/env.c
diff options
context:
space:
mode:
authorChi-Kuan Chiu <105687635+devarajabc@users.noreply.github.com>2025-06-23 05:01:17 -0600
committerGitHub <noreply@github.com>2025-06-23 13:01:17 +0200
commitf6d9caf0d13ac94af5a1ae3ed368d78893faa7dc (patch)
tree1d45d98061498dbea9540475df0e49a2122ee35c /src/tools/env.c
parentc66630da497c18622205cc58cb058a1f8cba7cd1 (diff)
downloadbox64-f6d9caf0d13ac94af5a1ae3ed368d78893faa7dc.tar.gz
box64-f6d9caf0d13ac94af5a1ae3ed368d78893faa7dc.zip
Add `map64_customMalloc` (#2764)
Most allocations target ~56 bytes, causing internal fragmentation
in `map128_customMalloc`. Introduce `map64_customMalloc`, a
64-byte–chunk variant of `map128_customMalloc`. The new allocator
uses a `uint16_t` “map” array: each bit in a 16-bit entry tracks
the in-use status of one 64-byte chunk (16 chunks per map entry).
The bitmap region is fixed at 256 bytes. Note that “map” here is a
fast-lookup structure, distinct from the bitmap itself. All chunk-
size, shift, and map-size calculations have been updated
accordingly.

Relates to #2740
Diffstat (limited to 'src/tools/env.c')
0 files changed, 0 insertions, 0 deletions