core/heap.c
/* It is up to the caller to ensure commit_size is a page size multiple,
 * and that it does not extend beyond the initial reservation.
 */
It is up to the caller to ensure commit_size is a page size multiple,
and that it does not extend beyond the initial reservation.
It is up to the caller to ensure commit_size is a page size multiple and that it does not extend beyond the initial reservation .
void
heap_mmap_extend_commitment(void *p, size_t commit_size)
{
    extend_commitment(p, commit_size, MEMPROT_EXEC|MEMPROT_READ|MEMPROT_WRITE,
                      false );
    STATS_SUB(mmap_reserved_only, commit_size);
    STATS_ADD_PEAK(mmap_capacity, commit_size);
#ifdef DEBUG_MEMORY
    memset(p, HEAP_ALLOCATED_BYTE, commit_size);
#endif
}
void heap_mmap_extend_commitment ( void * p , size_t commit_size ) { extend_commitment ( p , commit_size , MEMPROT_EXEC | MEMPROT_READ | MEMPROT_WRITE , false ) ; STATS_SUB ( mmap_reserved_only , commit_size ) ; STATS_ADD_PEAK ( mmap_capacity , commit_size ) ; #ifdef DEBUG_MEMORY memset ( p , HEAP_ALLOCATED_BYTE , commit_size ) ; #endif }
It is up to the caller to ensure commit_size is a page size multiple,
 and that it does not extend beyond the initial reservation.
It is up to the caller to ensure commit_size is a page size multiple and that it does not extend beyond the initial reservation .
/*not initial commit*/