Apache HTTPD
Public Attributes | List of all members
apr_allocator_t Struct Reference

Public Attributes

apr_size_t max_index
 
apr_size_t max_free_index
 
apr_size_t current_free_index
 
apr_pool_towner
 
apr_memnode_tfree [20]
 

Detailed Description

Definition at line 125 of file apr_pools.c.

Member Data Documentation

◆ current_free_index

apr_size_t apr_allocator_t::current_free_index

Memory size (in BOUNDARY_SIZE multiples) that currently must be freed before blocks are given back. Range: 0..max_free_index

Definition at line 138 of file apr_pools.c.

◆ free

apr_memnode_t* apr_allocator_t::free[20]

Lists of free nodes. Slot 0 is used for oversized nodes, and the slots 1..MAX_INDEX-1 contain nodes of sizes (i+1) * BOUNDARY_SIZE. Example for BOUNDARY_INDEX == 12: slot 0: nodes larger than 81920 slot 1: size 8192 slot 2: size 12288 ... slot 19: size 81920

Definition at line 153 of file apr_pools.c.

◆ max_free_index

apr_size_t apr_allocator_t::max_free_index

Total size (in BOUNDARY_SIZE multiples) of unused memory before blocks are given back.

See also
apr_allocator_max_free_set().
Note
Initialized to APR_ALLOCATOR_MAX_FREE_UNLIMITED, which means to never give back blocks.

Definition at line 133 of file apr_pools.c.

◆ max_index

apr_size_t apr_allocator_t::max_index

largest used index into free[], always < MAX_INDEX

Definition at line 127 of file apr_pools.c.

◆ owner

apr_pool_t* apr_allocator_t::owner

Definition at line 142 of file apr_pools.c.


The documentation for this struct was generated from the following file: