1 // stdio.asm: WORD p_realloc,'REALLOC',fasm
8 Data stack: ( a m n -- a )
11 "REALLOC" is a word that reallocates memory using mremap of address a
12 of size m to be size n bytes and returns the lowest address of the
15 Note that this makes new page allocations for the process from the
16 kernel, and the granularity is in pages, i.e. a multiple of 4 kb.
18 The memory is reampped using the MREMAP_MAYMOVE flag,
20 See also <<p_malloc,MALLOC>>