diff options
author | Brian Fraser <fraserbn@gmail.com> | 2014-05-31 01:24:52 +0200 |
---|---|---|
committer | Brian Fraser <fraserbn@gmail.com> | 2014-06-13 00:00:32 +0200 |
commit | f6555ff3f309865a88085cd93354cd93bfb96fd3 (patch) | |
tree | 7026272d912a2a2992f82b144c0fc1c04ac5d3f5 /malloc.c | |
parent | 117af67d6291466ff217023a9cf58832c511d1a0 (diff) | |
download | perl-f6555ff3f309865a88085cd93354cd93bfb96fd3.tar.gz |
Removed set_emergency_buffer from malloc.c
This was added in 2003, but never used.
Diffstat (limited to 'malloc.c')
-rw-r--r-- | malloc.c | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -995,27 +995,9 @@ get_emergency_buffer(IV *size) return pv; } -/* Returns 0 on success, -1 on bad alignment, -2 if not implemented */ -int -set_emergency_buffer(char *b, IV size) -{ - if (PTR2UV(b) & (NEEDED_ALIGNMENT - 1)) - return -1; - if (MallocCfg[MallocCfg_emergency_buffer_prepared_size]) - add_to_chain((void*)emergency_buffer_prepared, - MallocCfg[MallocCfg_emergency_buffer_prepared_size], 0); - emergency_buffer_prepared = b; - MallocCfg[MallocCfg_emergency_buffer_prepared_size] = size; - return 0; -} # define GET_EMERGENCY_BUFFER(p) get_emergency_buffer(p) # else /* NO_MALLOC_DYNAMIC_CFG */ # define GET_EMERGENCY_BUFFER(p) NULL -int -set_emergency_buffer(char *b, IV size) -{ - return -1; -} # endif static Malloc_t |