#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 DCACHE_LINE 128 |
Definition at line 1820 of file kmp_alloc.c.
Referenced by ___kmp_fast_allocate(), and ___kmp_fast_free().
| typedef struct kmp_mem_descr kmp_mem_descr_t |
Definition at line 1588 of file kmp_alloc.c.
| 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] |
Definition at line 1597 of file kmp_alloc.c.
References KE_TRACE, KMP_DEBUG_ASSERT, KMP_FATAL, KMP_MB, KMP_SRC_LOC_PARM, malloc_src_loc, kmp_mem_descr::ptr_aligned, kmp_mem_descr::ptr_allocated, kmp_mem_descr::size_aligned, and kmp_mem_descr::size_allocated.
Referenced by ___kmp_allocate(), and ___kmp_page_allocate().
| void* ___kmp_fast_allocate | ( | kmp_info_t * | this_thr, | |
| size_t size | KMP_SRC_LOC_DECL | |||
| ) |
Definition at line 1823 of file kmp_alloc.c.
References __kmp_gtid_from_thread, DCACHE_LINE, KE_TRACE, KMP_COMPARE_AND_STORE_PTR, KMP_CPU_PAUSE, KMP_DEBUG_ASSERT, KMP_SRC_LOC_PARM, kmp_mem_descr::ptr_aligned, kmp_mem_descr::ptr_allocated, kmp_mem_descr::size_aligned, and TCR_SYNC_PTR.
| void ___kmp_fast_free | ( | kmp_info_t * | this_thr, | |
| void *ptr | KMP_SRC_LOC_DECL | |||
| ) |
Definition at line 1909 of file kmp_alloc.c.
References __kmp_free_list_limit, __kmp_gtid_from_thread, DCACHE_LINE, if(), KE_TRACE, KMP_ASSERT, KMP_COMPARE_AND_STORE_PTR, KMP_CPU_PAUSE, KMP_DEBUG_ASSERT, KMP_SRC_LOC_PARM, kmp_mem_descr::ptr_aligned, kmp_mem_descr::ptr_allocated, kmp_mem_descr::size_aligned, kmp_mem_descr::size_allocated, and TCR_PTR.
| void ___kmp_free | ( | void *ptr | KMP_SRC_LOC_DECL | ) |
Definition at line 1765 of file kmp_alloc.c.
References CACHE_LINE, free_src_loc, KE_TRACE, KMP_ASSERT, KMP_DEBUG_ASSERT, KMP_MB, KMP_SRC_LOC_PARM, kmp_mem_descr::ptr_aligned, kmp_mem_descr::ptr_allocated, kmp_mem_descr::size_aligned, and kmp_mem_descr::size_allocated.
| 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().
int const __kmp_free_list_limit = 16 [static] |
Definition at line 1817 of file kmp_alloc.c.
Referenced by ___kmp_fast_free().
1.6.1