Tim Clem (@tclem) commented about dlls/ntdll/unix/virtual.c:
+ ERR( "mach_vm_protect failed: %d\n", kr ); + break; + } + + kr = mach_make_memory_entry_64( mach_task_self(), ®ion_size, current_address, mach_prot, + &object_name, MACH_PORT_NULL ); + + if (kr != KERN_SUCCESS) + { + ERR( "mach_make_memory_entry_64 failed: %d\n", kr ); + current_address += host_page_size; + continue; + } + + assert( region_size == host_page_size ); + mach_port_deallocate( mach_task_self(), object_name ); What's the point of making this memory entry?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9090#note_117445