about summary refs log tree commit diff stats
path: root/src/include
diff options
context:
space:
mode:
authorChi-Kuan Chiu <105687635+devarajabc@users.noreply.github.com>2025-04-20 20:24:22 +0800
committerGitHub <noreply@github.com>2025-04-20 14:24:22 +0200
commit28d12f6785997362743ea65171d1d7de8e885e2c (patch)
tree5ac621e4f5a663e1e56ec8727cafe862e137281c /src/include
parente7113b228fa58565d366c105266c47de2148177b (diff)
downloadbox64-28d12f6785997362743ea65171d1d7de8e885e2c.tar.gz
box64-28d12f6785997362743ea65171d1d7de8e885e2c.zip
Merge `mmapmem` into `mapallmem` (#2550)
This commit removes the separate `mmapmem` red-black tree and
merges its into `mapallmem`, reducing overall memory usage.

To distinguish memory regions that were previously tracked
separately in `mmapmem`,
we now use a new `mem_flag_t` bitmask enum in the data field
of `mapallmem`:

    MEM_ALLOCATED = 1  // allocated
    MEM_RESERVED  = 2  // reserved
    MEM_MMAP      = 3  // allocated via mmap()

Resolves #2546
Diffstat (limited to 'src/include')
0 files changed, 0 insertions, 0 deletions