CUBRID Engine  latest
customheaps.h File Reference
#include "config.h"
Include dependency graph for customheaps.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

UINTPTR hl_register_fixed_heap (int chunk_size)
 
void hl_unregister_fixed_heap (UINTPTR heap_id)
 
void * hl_fixed_alloc (UINTPTR heap_id, size_t sz)
 
void hl_fixed_free (UINTPTR heap_id, void *ptr)
 
UINTPTR hl_register_ostk_heap (int chunk_size)
 
void hl_unregister_ostk_heap (UINTPTR heap_id)
 
void * hl_ostk_alloc (UINTPTR heap_id, size_t sz)
 
void hl_ostk_free (UINTPTR heap_id, void *ptr)
 
UINTPTR hl_register_lea_heap (void)
 
void hl_unregister_lea_heap (UINTPTR heap_id)
 
void * hl_lea_alloc (UINTPTR heap_id, size_t sz)
 
void * hl_lea_realloc (UINTPTR heap_id, void *ptr, size_t sz)
 
void hl_lea_free (UINTPTR heap_id, void *ptr)
 
void hl_clear_lea_heap (UINTPTR heap_id)
 

Function Documentation

void hl_clear_lea_heap ( UINTPTR  heap_id)

Definition at line 272 of file lea_heap.c.

References assert, hl_mspace_s::base, hl_mspace_s::base_size, destroy_mspace_internal(), MOCK_LEA_HEAP_ID, hl_mspace_s::ms, NULL, prm_get_bool_value(), and PRM_ID_USE_SYSTEM_MALLOC.

Referenced by db_clear_private_heap().

Here is the caller graph for this function:

void* hl_fixed_alloc ( UINTPTR  heap_id,
size_t  sz 
)

Definition at line 66 of file customheaps.cpp.

References HL::LockedHeap< LockType, Super >::malloc(), and NULL.

Referenced by db_fixed_alloc().

Here is the caller graph for this function:

void hl_fixed_free ( UINTPTR  heap_id,
void *  ptr 
)

Definition at line 77 of file customheaps.cpp.

References HL::LockedHeap< LockType, Super >::free().

Referenced by db_fixed_free().

Here is the caller graph for this function:

void* hl_lea_alloc ( UINTPTR  heap_id,
size_t  sz 
)

Definition at line 326 of file lea_heap.c.

References ARG_FILE_LINE, ER_ERROR_SEVERITY, ER_OUT_OF_VIRTUAL_MEMORY, er_set(), hl_mspace_s::ms, NULL, p, prm_get_bool_value(), and PRM_ID_USE_SYSTEM_MALLOC.

Referenced by db_private_alloc_debug(), and db_ws_alloc().

Here is the caller graph for this function:

void hl_lea_free ( UINTPTR  heap_id,
void *  ptr 
)

Definition at line 395 of file lea_heap.c.

References hl_mspace_s::ms, NULL, prm_get_bool_value(), and PRM_ID_USE_SYSTEM_MALLOC.

Referenced by db_private_free_debug(), and db_ws_free().

Here is the caller graph for this function:

void* hl_lea_realloc ( UINTPTR  heap_id,
void *  ptr,
size_t  sz 
)

Definition at line 361 of file lea_heap.c.

References ARG_FILE_LINE, ER_ERROR_SEVERITY, ER_OUT_OF_VIRTUAL_MEMORY, er_set(), hl_mspace_s::ms, NULL, p, prm_get_bool_value(), and PRM_ID_USE_SYSTEM_MALLOC.

Referenced by db_private_realloc_debug(), and db_ws_realloc().

Here is the caller graph for this function:

void* hl_ostk_alloc ( UINTPTR  heap_id,
size_t  sz 
)

Definition at line 119 of file customheaps.cpp.

References HL::SizeHeap< SuperHeap >::malloc(), and NULL.

Referenced by db_ostk_alloc().

Here is the caller graph for this function:

void hl_ostk_free ( UINTPTR  heap_id,
void *  ptr 
)

Definition at line 130 of file customheaps.cpp.

References HL::SizeHeap< SuperHeap >::free().

Referenced by db_ostk_alloc().

Here is the caller graph for this function:

UINTPTR hl_register_fixed_heap ( int  chunk_size)

Definition at line 43 of file customheaps.cpp.

References HL::ZoneHeap< SuperHeap, ChunkSize >::reset().

Referenced by db_create_fixed_heap().

Here is the caller graph for this function:

UINTPTR hl_register_lea_heap ( void  )
UINTPTR hl_register_ostk_heap ( int  chunk_size)

Definition at line 96 of file customheaps.cpp.

References HL::ObstackHeap< ChunkSize, SuperHeap >::reset().

Referenced by db_create_ostk_heap().

Here is the caller graph for this function:

void hl_unregister_fixed_heap ( UINTPTR  heap_id)

Definition at line 55 of file customheaps.cpp.

Referenced by db_destroy_fixed_heap().

Here is the caller graph for this function:

void hl_unregister_lea_heap ( UINTPTR  heap_id)

Definition at line 299 of file lea_heap.c.

References assert, destroy_mspace_internal(), MOCK_LEA_HEAP_ID, NULL, prm_get_bool_value(), and PRM_ID_USE_SYSTEM_MALLOC.

Referenced by db_destroy_private_heap(), and db_destroy_workspace_heap().

Here is the caller graph for this function:

void hl_unregister_ostk_heap ( UINTPTR  heap_id)

Definition at line 108 of file customheaps.cpp.

Referenced by db_destroy_ostk_heap().

Here is the caller graph for this function: