kmp_alloc.c File Reference

#include "kmp.h"
#include "kmp_wrapper_malloc.h"
#include "kmp_io.h"

Go to the source code of this file.

Data Structures

struct  kmp_mem_descr

Defines

#define DCACHE_LINE   128

Typedefs

typedef struct kmp_mem_descr kmp_mem_descr_t

Functions

void * ___kmp_allocate (size_t size KMP_SRC_LOC_DECL)
static void * ___kmp_allocate_align (size_t size, size_t alignment KMP_SRC_LOC_DECL)
void * ___kmp_fast_allocate (kmp_info_t *this_thr, size_t size KMP_SRC_LOC_DECL)
void ___kmp_fast_free (kmp_info_t *this_thr, void *ptr KMP_SRC_LOC_DECL)
void ___kmp_free (void *ptr KMP_SRC_LOC_DECL)
void * ___kmp_page_allocate (size_t size KMP_SRC_LOC_DECL)
void * ___kmp_thread_calloc (kmp_info_t *th, size_t nelem, size_t elsize KMP_SRC_LOC_DECL)
void ___kmp_thread_free (kmp_info_t *th, void *ptr KMP_SRC_LOC_DECL)
void * ___kmp_thread_malloc (kmp_info_t *th, size_t size KMP_SRC_LOC_DECL)
void * ___kmp_thread_realloc (kmp_info_t *th, void *ptr, size_t size KMP_SRC_LOC_DECL)
void __kmp_free_fast_memory (kmp_info_t *th)
void __kmp_initialize_fast_memory (kmp_info_t *this_thr)
void * kmpc_calloc (size_t nelem, size_t elsize)
void kmpc_free (void *ptr)
void * kmpc_malloc (size_t size)
void * kmpc_realloc (void *ptr, size_t size)

Variables

static int const __kmp_free_list_limit = 16

Define Documentation

#define DCACHE_LINE   128

Definition at line 1820 of file kmp_alloc.c.

Referenced by ___kmp_fast_allocate(), and ___kmp_fast_free().


Typedef Documentation

Definition at line 1588 of file kmp_alloc.c.


Function Documentation

void* ___kmp_allocate ( size_t size  KMP_SRC_LOC_DECL  ) 

Definition at line 1693 of file kmp_alloc.c.

References ___kmp_allocate_align(), __kmp_align_alloc, KE_TRACE, and KMP_SRC_LOC_PARM.

static void* ___kmp_allocate_align ( size_t  size,
size_t alignment  KMP_SRC_LOC_DECL 
) [static]
void* ___kmp_fast_allocate ( kmp_info_t this_thr,
size_t size  KMP_SRC_LOC_DECL 
)
void ___kmp_fast_free ( kmp_info_t this_thr,
void *ptr  KMP_SRC_LOC_DECL 
)
void ___kmp_free ( void *ptr  KMP_SRC_LOC_DECL  ) 
void* ___kmp_page_allocate ( size_t size  KMP_SRC_LOC_DECL  ) 

Definition at line 1745 of file kmp_alloc.c.

References ___kmp_allocate_align(), KE_TRACE, and KMP_SRC_LOC_PARM.

void* ___kmp_thread_calloc ( kmp_info_t th,
size_t  nelem,
size_t elsize  KMP_SRC_LOC_DECL 
)

Definition at line 1528 of file kmp_alloc.c.

References KE_TRACE, and KMP_SRC_LOC_PARM.

void ___kmp_thread_free ( kmp_info_t th,
void *ptr  KMP_SRC_LOC_DECL 
)

Definition at line 1559 of file kmp_alloc.c.

References KE_TRACE, and KMP_SRC_LOC_PARM.

void* ___kmp_thread_malloc ( kmp_info_t th,
size_t size  KMP_SRC_LOC_DECL 
)

Definition at line 1513 of file kmp_alloc.c.

References KE_TRACE, and KMP_SRC_LOC_PARM.

void* ___kmp_thread_realloc ( kmp_info_t th,
void *  ptr,
size_t size  KMP_SRC_LOC_DECL 
)

Definition at line 1544 of file kmp_alloc.c.

References KE_TRACE, and KMP_SRC_LOC_PARM.

void __kmp_free_fast_memory ( kmp_info_t th  ) 

Definition at line 2031 of file kmp_alloc.c.

References __kmp_gtid_from_thread, and KE_TRACE.

Referenced by __kmp_reap_thread().

void __kmp_initialize_fast_memory ( kmp_info_t this_thr  ) 

Definition at line 2021 of file kmp_alloc.c.

References KE_TRACE, and NUM_LISTS.

Referenced by __kmp_allocate_thread(), and __kmp_register_root().

void* kmpc_calloc ( size_t  nelem,
size_t  elsize 
)

Definition at line 1466 of file kmp_alloc.c.

References __kmp_entry_thread().

Referenced by FTN_CALLOC().

void kmpc_free ( void *  ptr  ) 

Definition at line 1497 of file kmp_alloc.c.

References __kmp_get_thread, and __kmp_init_serial.

Referenced by FTN_FREE().

void* kmpc_malloc ( size_t  size  ) 

Definition at line 1457 of file kmp_alloc.c.

References __kmp_entry_thread().

Referenced by FTN_MALLOC().

void* kmpc_realloc ( void *  ptr,
size_t  size 
)

Definition at line 1475 of file kmp_alloc.c.

References __kmp_entry_thread(), and __kmp_get_thread.

Referenced by FTN_REALLOC().


Variable Documentation

int const __kmp_free_list_limit = 16 [static]

Definition at line 1817 of file kmp_alloc.c.

Referenced by ___kmp_fast_free().


Generated on 25 Aug 2013 for libomp_oss by  doxygen 1.6.1