X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=malloc.c;h=4ab24d70e94f9c97b1bd640a478965f676b37c89;hb=a3ef2c6f736628e81e9ce2a07226bd754872ac62;hp=acbc9e8fc0c67816780f4dff049f9debc01dd79a;hpb=54b92c2d1fba04cb3279f320a5c43d564a9aa7b1;p=p5sagit%2Fp5-mst-13.2.git diff --git a/malloc.c b/malloc.c index acbc9e8..4ab24d7 100644 --- a/malloc.c +++ b/malloc.c @@ -828,6 +828,16 @@ static char bucket_of[] = # define SBRK_FAILURE_PRICE 50 #endif +static void morecore (register int bucket); +# if defined(DEBUGGING) +static void botch (char *diag, char *s); +# endif +static void add_to_chain (void *p, MEM_SIZE size, MEM_SIZE chip); +static void* get_from_chain (MEM_SIZE size); +static void* get_from_bigger_buckets(int bucket, MEM_SIZE size); +static union overhead *getpages (MEM_SIZE needed, int *nblksp, int bucket); +static int getpages_adjacent(MEM_SIZE require); + #if defined(PERL_EMERGENCY_SBRK) && defined(PERL_CORE) # ifndef BIG_SIZE @@ -844,17 +854,6 @@ static char bucket_of[] = static char *emergency_buffer; static MEM_SIZE emergency_buffer_size; -static void morecore (register int bucket); -# if defined(DEBUGGING) -static void botch (char *diag, char *s); -# endif -static void add_to_chain (void *p, MEM_SIZE size, MEM_SIZE chip); -static Malloc_t emergency_sbrk (MEM_SIZE size); -static void* get_from_chain (MEM_SIZE size); -static void* get_from_bigger_buckets(int bucket, MEM_SIZE size); -static union overhead *getpages (MEM_SIZE needed, int *nblksp, int bucket); -static int getpages_adjacent(MEM_SIZE require); - static Malloc_t emergency_sbrk(MEM_SIZE size) { @@ -981,7 +980,6 @@ Perl_malloc(register size_t nbytes) register union overhead *p; register int bucket; register MEM_SIZE shiftr; - static void morecore(int bucket); #if defined(DEBUGGING) || defined(RCHECK) MEM_SIZE size = nbytes;