Project:
Perl
Code Location:
git://perl5.git.perl.org/perl.gitmaint-5.12
/
Outline
- > S perl_mstats
-
>
E
?
- Cn MallocCfg_FIRST_SBRK
- Cn MallocCfg_MIN_SBRK
- Cn MallocCfg_MIN_SBRK_FRAC1000
- Cn MallocCfg_SBRK_ALLOW_FAILURES
- Cn MallocCfg_SBRK_FAILURE_PRICE
- Cn MallocCfg_sbrk_goodness
- Cn MallocCfg_filldead
- Cn MallocCfg_fillalive
- Cn MallocCfg_fillcheck
- Cn MallocCfg_skip_cfg_env
- Cn MallocCfg_cfg_env_read
- Cn MallocCfg_emergency_buffer_size
- Cn MallocCfg_emergency_buffer_last_req
- Cn MallocCfg_emergency_buffer_prepared_size
- Cn MallocCfg_last
- > V IV MallocCfg_ptr
malloc_ctl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef MALLOC_CTL_H # define MALLOC_CTL_H struct perl_mstats { UV *nfree; UV *ntotal; IV topbucket, topbucket_ev, topbucket_odd, totfree, total, total_chain; IV total_sbrk, sbrks, sbrk_good, sbrk_slack, start_slack, sbrked_remains; IV minbucket; /* Level 1 info */ UV *bucket_mem_size; UV *bucket_available_size; UV nbuckets; }; typedef struct perl_mstats perl_mstats_t; START_EXTERN_C Malloc_t Perl_malloc (MEM_SIZE nbytes); Malloc_t Perl_calloc (MEM_SIZE elements, MEM_SIZE size); Malloc_t Perl_realloc (Malloc_t where, MEM_SIZE nbytes); /* 'mfree' rather than 'free', since there is already a 'perl_free' * that causes clashes with case-insensitive linkers */ Free_t Perl_mfree (Malloc_t where); END_EXTERN_C #ifndef NO_MALLOC_DYNAMIC_CFG /* IV configuration data */ enum { MallocCfg_FIRST_SBRK, MallocCfg_MIN_SBRK, MallocCfg_MIN_SBRK_FRAC1000, MallocCfg_SBRK_ALLOW_FAILURES, MallocCfg_SBRK_FAILURE_PRICE, MallocCfg_sbrk_goodness, MallocCfg_filldead, MallocCfg_fillalive, MallocCfg_fillcheck, MallocCfg_skip_cfg_env, MallocCfg_cfg_env_read, MallocCfg_emergency_buffer_size, MallocCfg_emergency_buffer_last_req, MallocCfg_emergency_buffer_prepared_size, MallocCfg_last }; /* char* configuration data */ enum { MallocCfgP_emergency_buffer, MallocCfgP_emergency_buffer_prepared, MallocCfgP_last }; START_EXTERN_C extern IV *MallocCfg_ptr; extern char **MallocCfgP_ptr; END_EXTERN_C #endif #endif
