Skip to content

File memory_alloc.c

FileList > base > memory_alloc.c

Go to the source code of this file

  • #include "config.h"
  • #include <stdlib.h>
  • #include <string.h>
  • #include <assert.h>
  • #include "set_object.h"
  • #include "misc_string.h"
  • #include "object_domain.h"
  • #include "dbtype.h"
  • #include "memory_alloc.h"
  • #include "util_func.h"
  • #include "error_manager.h"
  • #include "intl_support.h"
  • #include "resource_tracker.hpp"
  • #include "customheaps.h"
  • #include "thread_entry.hpp"
  • #include "thread_manager.hpp"
  • #include "memory_wrapper.hpp"

Public Functions

Type Name
int ansisql_strcasecmp (const char * s, const char * t)
int ansisql_strcmp (const char * s, const char * t)
int db_align_to (int n, int alignment)
int db_alignment (int n)
HL_HEAPID db_change_private_heap (THREAD_ENTRY * thread_p, HL_HEAPID heap_id)
void db_clear_private_heap (THREAD_ENTRY * thread_p, HL_HEAPID heap_id)
HL_HEAPID db_create_ostk_heap (int chunk_size)
HL_HEAPID db_create_private_heap (void)
void db_destroy_ostk_heap (HL_HEAPID heap_id)
void db_destroy_private_heap (THREAD_ENTRY * thread_p, HL_HEAPID heap_id)
void * db_ostk_alloc (HL_HEAPID heap_id, size_t size)
void db_ostk_free (HL_HEAPID heap_id, void * ptr)
void * db_private_alloc_debug (THREAD_ENTRY * thrd, size_t size, bool rc_track, const char * caller_file, int caller_line)
void * db_private_alloc_external (THREAD_ENTRY * thrd, size_t size)
void db_private_free_debug (THREAD_ENTRY * thrd, void * ptr, bool rc_track, const char * caller_file, int caller_line)
void db_private_free_external (THREAD_ENTRY * thrd, void * ptr)
void * db_private_realloc_debug (THREAD_ENTRY * thrd, void * ptr, size_t size, bool rc_track, const char * caller_file, int caller_line)
void * db_private_realloc_external (THREAD_ENTRY * thrd, void * ptr, size_t size)
HL_HEAPID db_private_set_heapid_to_thread (THREAD_ENTRY * thread_p, HL_HEAPID heap_id)
char * db_private_strdup (THREAD_ENTRY * thrd, const char * s)
char * db_private_strndup (THREAD_ENTRY * thrd, const char * s, size_t size)
HL_HEAPID db_replace_private_heap (THREAD_ENTRY * thread_p)
void * os_calloc_debug (size_t n, size_t size, bool rc_track, const char * caller_file, int caller_line)
void os_free_debug (void * ptr, bool rc_track, const char * caller_file, int caller_line)
void * os_malloc_debug (size_t size, bool rc_track, const char * caller_file, int caller_line)

Public Static Functions

Type Name
HL_HEAPID db_private_get_heapid_from_thread (THREAD_ENTRY *& thread_p)

Macros

Type Name
define DEFAULT_OBSTACK_CHUNK_SIZE 32768 /\* 1024 [**x**](broker__monitor_8c.md#function-timeout) 32 \*/

Public Functions Documentation

function ansisql_strcasecmp

int ansisql_strcasecmp (
    const  char * s,
    const  char * t
) 

function ansisql_strcmp

int ansisql_strcmp (
    const  char * s,
    const  char * t
) 

function db_align_to

int db_align_to (
    int n,
    int alignment
) 

function db_alignment

int db_alignment (
    int n
) 

function db_change_private_heap

HL_HEAPID db_change_private_heap (
    THREAD_ENTRY * thread_p,
    HL_HEAPID heap_id
) 

function db_clear_private_heap

void db_clear_private_heap (
    THREAD_ENTRY * thread_p,
    HL_HEAPID heap_id
) 

function db_create_ostk_heap

HL_HEAPID db_create_ostk_heap (
    int chunk_size
) 

function db_create_private_heap

HL_HEAPID db_create_private_heap (
    void
) 

function db_destroy_ostk_heap

void db_destroy_ostk_heap (
    HL_HEAPID heap_id
) 

function db_destroy_private_heap

void db_destroy_private_heap (
    THREAD_ENTRY * thread_p,
    HL_HEAPID heap_id
) 

function db_ostk_alloc

void * db_ostk_alloc (
    HL_HEAPID heap_id,
    size_t size
) 

function db_ostk_free

void db_ostk_free (
    HL_HEAPID heap_id,
    void * ptr
) 

function db_private_alloc_debug

void * db_private_alloc_debug (
    THREAD_ENTRY * thrd,
    size_t size,
    bool rc_track,
    const  char * caller_file,
    int caller_line
) 

function db_private_alloc_external

void * db_private_alloc_external (
    THREAD_ENTRY * thrd,
    size_t size
) 

function db_private_free_debug

void db_private_free_debug (
    THREAD_ENTRY * thrd,
    void * ptr,
    bool rc_track,
    const  char * caller_file,
    int caller_line
) 

function db_private_free_external

void db_private_free_external (
    THREAD_ENTRY * thrd,
    void * ptr
) 

function db_private_realloc_debug

void * db_private_realloc_debug (
    THREAD_ENTRY * thrd,
    void * ptr,
    size_t size,
    bool rc_track,
    const  char * caller_file,
    int caller_line
) 

function db_private_realloc_external

void * db_private_realloc_external (
    THREAD_ENTRY * thrd,
    void * ptr,
    size_t size
) 

function db_private_set_heapid_to_thread

HL_HEAPID db_private_set_heapid_to_thread (
    THREAD_ENTRY * thread_p,
    HL_HEAPID heap_id
) 

function db_private_strdup

char * db_private_strdup (
    THREAD_ENTRY * thrd,
    const  char * s
) 

function db_private_strndup

char * db_private_strndup (
    THREAD_ENTRY * thrd,
    const  char * s,
    size_t size
) 

function db_replace_private_heap

HL_HEAPID db_replace_private_heap (
    THREAD_ENTRY * thread_p
) 

function os_calloc_debug

void * os_calloc_debug (
    size_t n,
    size_t size,
    bool rc_track,
    const  char * caller_file,
    int caller_line
) 

function os_free_debug

void os_free_debug (
    void * ptr,
    bool rc_track,
    const  char * caller_file,
    int caller_line
) 

function os_malloc_debug

void * os_malloc_debug (
    size_t size,
    bool rc_track,
    const  char * caller_file,
    int caller_line
) 

Public Static Functions Documentation

function db_private_get_heapid_from_thread

static HL_HEAPID db_private_get_heapid_from_thread (
    THREAD_ENTRY *& thread_p
) 

Macro Definition Documentation

define DEFAULT_OBSTACK_CHUNK_SIZE

#define DEFAULT_OBSTACK_CHUNK_SIZE `32768   /* 1024 x 32 */`


The documentation for this class was generated from the following file cubrid/src/base/memory_alloc.c