mystikos icon indicating copy to clipboard operation
mystikos copied to clipboard

Kernel processes need their own mman region

Open mikbras opened this issue 4 years ago • 1 comments

Currently kernel processes (created with posix_spawn) attempt to share the mman region. We attempt to release any mmap'd memory when a process exists, however we are unable to release sbrk memory (which is allocated from the opposite of the mman region). For this to work for many processes, each process will need its own mman region (or the single mman region could be carved up).

mikbras avatar Jan 21 '21 19:01 mikbras

Once this change goes in, libcxx tests can be updated to not use 1 gb of heap memory since there is no release of sbrk memory happening now

salsal97 avatar Feb 05 '21 17:02 salsal97