2 SMalloc seems a BAD choice of name. I expected this to be the routines I
3 could use to allocate memory, not those used by the storage manager internally.
8 Routines that deal with memory allocation:
10 All dynamic allocation must be done before the stacks and heap are
11 allocated. This allows us to use the lower level sbrk routines if
16 #include "SMinternal.h"
18 /* Return a ptr to n StgWords (note: WORDS not BYTES!) or die miserably */
19 /* ToDo: Should allow use of valloc to allign on page boundary */
31 if ((space = (char *) malloc(n)) == NULL) {
32 MallocFailHook((W_) n); /*msg*/