When porting mimalloc to playstation, it was found that the function mi_arena_meta_zalloc does not zero allocate the memory when it falls back to _mi_os_alloc. This caused issues on a running application. This pr fixes it by checking if the os memory was already zeroed, and if it wasnt it zeros the allocation.
When porting mimalloc to playstation, it was found that the function
mi_arena_meta_zalloc
does not zero allocate the memory when it falls back to_mi_os_alloc
. This caused issues on a running application. This pr fixes it by checking if the os memory was already zeroed, and if it wasnt it zeros the allocation.