core/heap.c
/* need to not remove from vmareas on process exit -- vmareas has already exited! */
need to not remove from vmareas on process exit -- vmareas has already exited!
need to not remove from vmareas on process exit -- vmareas has already exited!
static void
really_free_unit(heap_unit_t *u)
{
    STATS_SUB(heap_capacity, UNIT_COMMIT_SIZE(u));
    STATS_ADD(heap_reserved_only, (stats_int_t)(UNIT_COMMIT_SIZE(u) - UNIT_RESERVED_SIZE(u)));
    release_guarded_real_memory((vm_addr_t)u, UNIT_RESERVED_SIZE(u),
                                false, true);
}
static void really_free_unit ( heap_unit_t * u ) { STATS_SUB ( heap_capacity , UNIT_COMMIT_SIZE ( u ) ) ; STATS_ADD ( heap_reserved_only , ( stats_int_t ) ( UNIT_COMMIT_SIZE ( u ) - UNIT_RESERVED_SIZE ( u ) ) ) ; release_guarded_real_memory ( ( vm_addr_t ) u , UNIT_RESERVED_SIZE ( u ) , false , true ) ; }
need to not remove from vmareas on process exit -- vmareas has already exited!
need to not remove from vmareas on process exit -- vmareas has already exited!
/* remember that u itself is inside unit, not separately allocated */ /*do not update DR areas now*/