ARGOBOTS  1227c643f7a7f974f1f1778a9ffebd29d7dafecf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Macros | Enumerations | Functions
abti_mem.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ABTI_MEM_POOL_DESC_ELEM_SIZE
 
#define ABTI_MEM_POOL_DESC_SIZE   (ABTI_MEM_POOL_DESC_ELEM_SIZE - 4)
 

Enumerations

enum  {
  ABTI_MEM_LP_MALLOC = 0, ABTI_MEM_LP_MMAP_RP, ABTI_MEM_LP_MMAP_HP_RP, ABTI_MEM_LP_MMAP_HP_THP,
  ABTI_MEM_LP_THP
}
 

Functions

void ABTI_mem_init (ABTI_global *p_global)
 
void ABTI_mem_init_local (ABTI_xstream *p_local_xstream)
 
void ABTI_mem_finalize (ABTI_global *p_global)
 
void ABTI_mem_finalize_local (ABTI_xstream *p_local_xstream)
 
int ABTI_mem_check_lp_alloc (int lp_alloc)
 
static ABTU_ret_err int ABTI_mem_alloc_nythread_malloc (ABTI_thread **pp_thread)
 
static ABTU_ret_err int ABTI_mem_alloc_nythread (ABTI_local *p_local, ABTI_thread **pp_thread)
 
static void ABTI_mem_free_nythread (ABTI_local *p_local, ABTI_thread *p_thread)
 
static ABTU_ret_err int ABTI_mem_alloc_ythread_malloc_desc_stack_impl (size_t stacksize, ABTI_ythread **pp_ythread, void **pp_stack)
 
static ABTU_ret_err int ABTI_mem_alloc_ythread_default (ABTI_local *p_local, ABTI_ythread **pp_ythread)
 
static ABTU_ret_err int ABTI_mem_alloc_ythread_malloc_desc_stack (ABTI_thread_attr *p_attr, ABTI_ythread **pp_ythread)
 
static ABTU_ret_err int ABTI_mem_alloc_ythread_mempool_desc (ABTI_local *p_local, ABTI_thread_attr *p_attr, ABTI_ythread **pp_ythread)
 
static void ABTI_mem_free_thread (ABTI_local *p_local, ABTI_thread *p_thread)
 
static ABTU_ret_err int ABTI_mem_alloc_desc (ABTI_local *p_local, void **pp_desc)
 
static void ABTI_mem_free_desc (ABTI_local *p_local, void *p_desc)
 

Macro Definition Documentation

#define ABTI_MEM_POOL_DESC_ELEM_SIZE
Value:
struct ABTI_thread ABTI_thread
Definition: abti.h:111
#define ABT_CONFIG_STATIC_CACHELINE_SIZE
Definition: abt_config.h:57

Definition at line 14 of file abti_mem.h.

Referenced by ABTI_mem_alloc_nythread_malloc(), and ABTI_mem_alloc_ythread_mempool_desc().

#define ABTI_MEM_POOL_DESC_SIZE   (ABTI_MEM_POOL_DESC_ELEM_SIZE - 4)

Definition at line 296 of file abti_mem.h.

Referenced by ABTI_mem_alloc_desc(), and ABTI_mem_free_desc().

Enumeration Type Documentation

anonymous enum
Enumerator
ABTI_MEM_LP_MALLOC 
ABTI_MEM_LP_MMAP_RP 
ABTI_MEM_LP_MMAP_HP_RP 
ABTI_MEM_LP_MMAP_HP_THP 
ABTI_MEM_LP_THP 

Definition at line 18 of file abti_mem.h.

Function Documentation

static ABTU_ret_err int ABTI_mem_alloc_desc ( ABTI_local p_local,
void **  pp_desc 
)
inlinestatic

Definition at line 298 of file abti_mem.h.

Referenced by ABTI_ktable_alloc_elem(), and ABTI_ktable_create().

static ABTU_ret_err int ABTI_mem_alloc_nythread ( ABTI_local p_local,
ABTI_thread **  pp_thread 
)
inlinestatic

Definition at line 65 of file abti_mem.h.

Referenced by ABTI_mem_alloc_ythread_mempool_desc(), and task_create().

static ABTU_ret_err int ABTI_mem_alloc_nythread_malloc ( ABTI_thread **  pp_thread)
inlinestatic

Definition at line 34 of file abti_mem.h.

Referenced by ABTI_mem_alloc_nythread().

static ABTU_ret_err int ABTI_mem_alloc_ythread_default ( ABTI_local p_local,
ABTI_ythread **  pp_ythread 
)
inlinestatic

Definition at line 135 of file abti_mem.h.

Referenced by ythread_create().

static ABTU_ret_err int ABTI_mem_alloc_ythread_malloc_desc_stack ( ABTI_thread_attr p_attr,
ABTI_ythread **  pp_ythread 
)
inlinestatic

Definition at line 201 of file abti_mem.h.

Referenced by ythread_create().

static ABTU_ret_err int ABTI_mem_alloc_ythread_malloc_desc_stack_impl ( size_t  stacksize,
ABTI_ythread **  pp_ythread,
void **  pp_stack 
)
inlinestatic
static ABTU_ret_err int ABTI_mem_alloc_ythread_mempool_desc ( ABTI_local p_local,
ABTI_thread_attr p_attr,
ABTI_ythread **  pp_ythread 
)
inlinestatic

Definition at line 221 of file abti_mem.h.

Referenced by ythread_create().

int ABTI_mem_check_lp_alloc ( int  lp_alloc)

Referenced by ABTD_env_init().

void ABTI_mem_finalize ( ABTI_global p_global)

Definition at line 168 of file malloc.c.

Referenced by ABT_finalize().

void ABTI_mem_finalize_local ( ABTI_xstream p_local_xstream)

Definition at line 172 of file malloc.c.

Referenced by ABTI_xstream_free().

static void ABTI_mem_free_desc ( ABTI_local p_local,
void *  p_desc 
)
inlinestatic

Definition at line 326 of file abti_mem.h.

Referenced by ABTI_ktable_free().

static void ABTI_mem_free_nythread ( ABTI_local p_local,
ABTI_thread p_thread 
)
inlinestatic

Definition at line 75 of file abti_mem.h.

Referenced by ABTI_mem_free_thread().

static void ABTI_mem_free_thread ( ABTI_local p_local,
ABTI_thread p_thread 
)
inlinestatic

Definition at line 246 of file abti_mem.h.

Referenced by thread_free(), and ythread_create().

void ABTI_mem_init ( ABTI_global p_global)

Definition at line 160 of file malloc.c.

Referenced by ABT_init().

void ABTI_mem_init_local ( ABTI_xstream p_local_xstream)

Definition at line 164 of file malloc.c.

Referenced by xstream_create().