7 IV topbucket, topbucket_ev, topbucket_odd, totfree, total, total_chain;
8 IV total_sbrk, sbrks, sbrk_good, sbrk_slack, start_slack, sbrked_remains;
12 UV *bucket_available_size;
15 typedef struct perl_mstats perl_mstats_t;
17 PERL_CALLCONV Malloc_t Perl_malloc (MEM_SIZE nbytes);
18 PERL_CALLCONV Malloc_t Perl_calloc (MEM_SIZE elements, MEM_SIZE size);
19 PERL_CALLCONV Malloc_t Perl_realloc (Malloc_t where, MEM_SIZE nbytes);
20 /* 'mfree' rather than 'free', since there is already a 'perl_free'
21 * that causes clashes with case-insensitive linkers */
22 PERL_CALLCONV Free_t Perl_mfree (Malloc_t where);
24 #ifndef NO_MALLOC_DYNAMIC_CFG
26 /* IV configuration data */
30 MallocCfg_MIN_SBRK_FRAC1000,
31 MallocCfg_SBRK_ALLOW_FAILURES,
32 MallocCfg_SBRK_FAILURE_PRICE,
33 MallocCfg_sbrk_goodness,
39 MallocCfg_skip_cfg_env,
40 MallocCfg_cfg_env_read,
42 MallocCfg_emergency_buffer_size,
43 MallocCfg_emergency_buffer_last_req,
45 MallocCfg_emergency_buffer_prepared_size,
49 /* char* configuration data */
51 MallocCfgP_emergency_buffer,
52 MallocCfgP_emergency_buffer_prepared,
56 extern IV *MallocCfg_ptr;
57 extern char **MallocCfgP_ptr;