Cross Reference: malloc_ctl.h
xref
: /
osnet-11
/
usr
/
src
/
cmd
/
perl
/
5.8.4
/
distrib
/
malloc_ctl.h
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
1
N/A
#
ifndef
MALLOC_CTL_H
1
N/A
#
define
MALLOC_CTL_H
1
N/A
1
N/A
struct
perl_mstats
{
1
N/A
UV
*
nfree
;
1
N/A
UV
*
ntotal
;
1
N/A
IV
topbucket
,
topbucket_ev
,
topbucket_odd
,
totfree
,
total
,
total_chain
;
1
N/A
IV
total_sbrk
,
sbrks
,
sbrk_good
,
sbrk_slack
,
start_slack
,
sbrked_remains
;
1
N/A
IV
minbucket
;
1
N/A
/* Level 1 info */
1
N/A
UV
*
bucket_mem_size
;
1
N/A
UV
*
bucket_available_size
;
1
N/A
UV
nbuckets
;
1
N/A
};
1
N/A
typedef
struct
perl_mstats
perl_mstats_t
;
1
N/A
1
N/A
START_EXTERN_C
1
N/A
Malloc_t
Perl_malloc
(
MEM_SIZE
nbytes
);
1
N/A
Malloc_t
Perl_calloc
(
MEM_SIZE
elements
,
MEM_SIZE
size
);
1
N/A
Malloc_t
Perl_realloc
(
Malloc_t
where
,
MEM_SIZE
nbytes
);
1
N/A
/* 'mfree' rather than 'free', since there is already a 'perl_free'
1
N/A
* that causes clashes with case-insensitive linkers */
1
N/A
Free_t
Perl_mfree
(
Malloc_t
where
);
1
N/A
END_EXTERN_C
1
N/A
1
N/A
#
ifndef
NO_MALLOC_DYNAMIC_CFG
1
N/A
1
N/A
/* IV configuration data */
1
N/A
enum
{
1
N/A
MallocCfg_FIRST_SBRK
,
1
N/A
MallocCfg_MIN_SBRK
,
1
N/A
MallocCfg_MIN_SBRK_FRAC1000
,
1
N/A
MallocCfg_SBRK_ALLOW_FAILURES
,
1
N/A
MallocCfg_SBRK_FAILURE_PRICE
,
1
N/A
MallocCfg_sbrk_goodness
,
1
N/A
1
N/A
MallocCfg_filldead
,
1
N/A
MallocCfg_fillalive
,
1
N/A
MallocCfg_fillcheck
,
1
N/A
1
N/A
MallocCfg_skip_cfg_env
,
1
N/A
MallocCfg_cfg_env_read
,
1
N/A
1
N/A
MallocCfg_emergency_buffer_size
,
1
N/A
MallocCfg_emergency_buffer_last_req
,
1
N/A
1
N/A
MallocCfg_emergency_buffer_prepared_size
,
1
N/A
1
N/A
MallocCfg_last
1
N/A
};
1
N/A
/* char* configuration data */
1
N/A
enum
{
1
N/A
MallocCfgP_emergency_buffer
,
1
N/A
MallocCfgP_emergency_buffer_prepared
,
1
N/A
MallocCfgP_last
1
N/A
};
1
N/A
START_EXTERN_C
1
N/A
extern
IV
*
MallocCfg_ptr
;
1
N/A
extern
char
**
MallocCfgP_ptr
;
1
N/A
END_EXTERN_C
1
N/A
1
N/A
#
endif
1
N/A
1
N/A
#
endif