Mercurial > hg > xemacs-beta
diff src/ralloc.c @ 16:0293115a14e9 r19-15b91
Import from CVS: tag r19-15b91
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:49:20 +0200 |
parents | ac2d302a0011 |
children | 859a2309aef8 |
line wrap: on
line diff
--- a/src/ralloc.c Mon Aug 13 08:48:43 2007 +0200 +++ b/src/ralloc.c Mon Aug 13 08:49:20 2007 +0200 @@ -915,9 +915,14 @@ about the memory map. Instead, we try to coalesce empty or unavailable blocks at any available opportunity. */ -static void Addr_Block_initialize(); /* Initialization procedure for address picking scheme */ -static VM_ADDR New_Addr_Block( SIZE sz ); /* Get a suitable VM_ADDR via mmap */ -static void Free_Addr_Block( VM_ADDR addr, SIZE sz ); /* Free a VM_ADDR allocated via New_Addr_Block */ +/* Initialization procedure for address picking scheme */ +static void Addr_Block_initialize(void); + +/* Get a suitable VM_ADDR via mmap */ +static VM_ADDR New_Addr_Block( SIZE sz ); + +/* Free a VM_ADDR allocated via New_Addr_Block */ +static void Free_Addr_Block( VM_ADDR addr, SIZE sz ); #ifdef MMAP_GENERATE_ADDRESSES /* Implementation of the three calls for address picking when XEmacs is incharge */ @@ -1036,8 +1041,10 @@ /* This is an alternate (simpler) implementation in cases where the address is picked by the kernel. */ -static void Addr_Block_initialize() -{} /* Nothing. */ +static void Addr_Block_initialize(void) +{ + /* Nothing. */ +} static VM_ADDR New_Addr_Block( SIZE sz ) { @@ -1260,19 +1267,19 @@ syms_of_ralloc (void) { #ifdef MMAP_METERING - defsymbol( &Qmm_times_mapped, "mmap-times-mapped" ); - defsymbol( &Qmm_pages_mapped, "mmap-pages-mapped" ); - defsymbol( &Qmm_times_unmapped, "mmap-times-unmapped" ); - defsymbol( &Qmm_times_remapped, "mmap-times-remapped" ); - defsymbol( &Qmm_didnt_copy, "mmap-didnt-copy" ); - defsymbol( &Qmm_pages_copied, "mmap-pages-copied" ); - defsymbol( &Qmm_average_bumpval, "mmap-average-bumpval" ); - defsymbol( &Qmm_wastage, "mmap-wastage" ); - defsymbol( &Qmm_live_pages, "mmap-live-pages" ); - defsymbol( &Qmm_addr_looked_up, "mmap-had-to-look-up-address" ); - defsymbol( &Qmm_hash_worked, "mmap-hash-table-worked" ); - defsymbol( &Qmm_addrlist_size, "mmap-addrlist-size" ); - defsubr( &Smmap_allocator_status ); + defsymbol (&Qmm_times_mapped, "mmap-times-mapped"); + defsymbol (&Qmm_pages_mapped, "mmap-pages-mapped"); + defsymbol (&Qmm_times_unmapped, "mmap-times-unmapped"); + defsymbol (&Qmm_times_remapped, "mmap-times-remapped"); + defsymbol (&Qmm_didnt_copy, "mmap-didnt-copy"); + defsymbol (&Qmm_pages_copied, "mmap-pages-copied"); + defsymbol (&Qmm_average_bumpval, "mmap-average-bumpval"); + defsymbol (&Qmm_wastage, "mmap-wastage"); + defsymbol (&Qmm_live_pages, "mmap-live-pages"); + defsymbol (&Qmm_addr_looked_up, "mmap-had-to-look-up-address"); + defsymbol (&Qmm_hash_worked, "mmap-hash-table-worked"); + defsymbol (&Qmm_addrlist_size, "mmap-addrlist-size"); + defsubr (&Smmap_allocator_status); #endif /* MMAP_METERING */ }