On 19-Sep-17 09:04,
dxf...@gmail.com wrote:
>
> Looking back over old code I see that I've
> previously named HERE SWAP ALLOT as RESERVE
> - much nicer.
>
> As I am defining it in the kernel, I found it
> preferable to make RESERVE the primitive from
> which one can define : ALLOT RESERVE DROP ;
>
That's a useful factor, but you might want to be mindful that the word
RESERVE commonly has other meanings.
For instance some operating systems make a distinction between reserving
memory and allocating (or committing) memory. Windows:
MEM_RESERVE Reserves a range of the process's virtual address space
without allocating any actual physical storage in memory or in the
paging file on disk.
MEM_COMMIT Allocates memory charges (from the overall size of memory and
the paging files on disk) for the specified reserved memory pages.
There are also lock managers that use RESERVE to mean obtaining a lock
to serialize access to a resource.
How about ALLOT-HERE ?
--
Alex