PPL Logo

conv-core/mem-arena.C File Reference

Go to the source code of this file.

Data Structures

struct  _insert_ret_val

Typedefs

typedef struct _insert_ret_val insert_ret_val

Functions

static int find_list_bin (CmiInt8 nslots)
static dllnodelist_insert (slotset *ss, slotblock *sb)
static void list_delete (slotset *ss, slotblock *sb)
static void list_move (slotset *ss, dllnode *dlln, CmiInt8 old_nslots)
static btreenodecreate_btree_node (void)
static slotblockfind_btree_slotblock (btreenode *node, CmiInt8 startslot)
static insert_ret_val btree_insert_int (slotset *ss, btreenode *node, CmiInt8 startslot, CmiInt8 nslots)
static btreenodebtree_insert (slotset *ss, btreenode *node, CmiInt8 startslot, CmiInt8 nslots)
static void btree_delete_int (slotset *ss, btreenode *node, CmiInt8 startslot, slotblock *sb)
static btreenodebtree_delete (slotset *ss, btreenode *node, CmiInt8 startslot)
slotsetnew_slotset (CmiInt8 startslot, CmiInt8 nslots)
CmiInt8 get_slots (slotset *ss, CmiInt8 nslots)
void grab_slots (slotset *ss, CmiInt8 sslot, CmiInt8 nslots)
void free_slots (slotset *ss, CmiInt8 sslot, CmiInt8 nslots)
static void delete_btree (btreenode *node)
static void delete_list_array (slotset *ss)
static void delete_slotset (slotset *ss)
static void print_btree_node (btreenode *node, int node_num)
static int print_btree_level (btreenode *node, int level, int current_level, int node_num)
static void print_btree_top_down (btreenode *node)
static void print_list_array (slotset *ss)
static void print_slots (slotset *ss)
void add_slots (slotset *ss, CmiInt8 sslot, CmiInt8 nslots)


Typedef Documentation


Function Documentation

static int find_list_bin ( CmiInt8  nslots  )  [static]

Definition at line 24 of file mem-arena.C.

static dllnode* list_insert ( slotset ss,
slotblock sb 
) [static]

Definition at line 58 of file mem-arena.C.

References find_list_bin(), _slotset::list_array, malloc(), _dllnode::next, _slotblock::nslots, _dllnode::previous, and _dllnode::sb.

Here is the call graph for this function:

static void list_delete ( slotset ss,
slotblock sb 
) [static]

Definition at line 84 of file mem-arena.C.

References find_list_bin(), free(), _slotset::list_array, _slotblock::listblock, _dllnode::next, _slotblock::nslots, and _dllnode::previous.

Here is the call graph for this function:

static void list_move ( slotset ss,
dllnode dlln,
CmiInt8  old_nslots 
) [static]

Definition at line 109 of file mem-arena.C.

References find_list_bin(), _slotset::list_array, _dllnode::next, _slotblock::nslots, _dllnode::previous, and _dllnode::sb.

Here is the call graph for this function:

static btreenode* create_btree_node ( void   )  [static]

Definition at line 148 of file mem-arena.C.

References _btreenode::blocks, _btreenode::child, _slotblock::listblock, malloc(), and _btreenode::num_blocks.

Here is the call graph for this function:

static slotblock* find_btree_slotblock ( btreenode node,
CmiInt8  startslot 
) [static]

Definition at line 166 of file mem-arena.C.

References _btreenode::blocks, _btreenode::child, find_btree_slotblock(), index, _slotblock::nslots, _btreenode::num_blocks, and _slotblock::startslot.

Here is the call graph for this function:

static insert_ret_val btree_insert_int ( slotset ss,
btreenode node,
CmiInt8  startslot,
CmiInt8  nslots 
) [static]

static btreenode* btree_insert ( slotset ss,
btreenode node,
CmiInt8  startslot,
CmiInt8  nslots 
) [static]

static void btree_delete_int ( slotset ss,
btreenode node,
CmiInt8  startslot,
slotblock sb 
) [static]

static btreenode* btree_delete ( slotset ss,
btreenode node,
CmiInt8  startslot 
) [static]

Definition at line 776 of file mem-arena.C.

References btree_delete_int(), _btreenode::child, free(), and _btreenode::num_blocks.

Here is the call graph for this function:

slotset * new_slotset ( CmiInt8  startslot,
CmiInt8  nslots 
)

CmiInt8 get_slots ( slotset ss,
CmiInt8  nslots 
)

Definition at line 841 of file mem-arena.C.

References find_list_bin(), _slotset::list_array, _dllnode::next, _slotblock::nslots, _dllnode::sb, and _slotblock::startslot.

Here is the call graph for this function:

void grab_slots ( slotset ss,
CmiInt8  sslot,
CmiInt8  nslots 
)

void free_slots ( slotset ss,
CmiInt8  sslot,
CmiInt8  nslots 
)

Definition at line 928 of file mem-arena.C.

References btree_delete(), btree_insert(), _slotset::btree_root, find_btree_slotblock(), list_move(), _slotblock::listblock, _slotblock::nslots, and _slotblock::startslot.

Here is the call graph for this function:

static void delete_btree ( btreenode node  )  [static]

Definition at line 977 of file mem-arena.C.

References _btreenode::child, delete_btree(), free(), and _btreenode::num_blocks.

Here is the call graph for this function:

static void delete_list_array ( slotset ss  )  [static]

Definition at line 993 of file mem-arena.C.

References free(), _slotset::list_array, _dllnode::next, and _dllnode::previous.

Here is the call graph for this function:

static void delete_slotset ( slotset ss  )  [static]

Definition at line 1015 of file mem-arena.C.

References _slotset::btree_root, delete_btree(), delete_list_array(), and free().

Here is the call graph for this function:

static void print_btree_node ( btreenode node,
int  node_num 
) [static]

Definition at line 1028 of file mem-arena.C.

References _btreenode::blocks, CmiPrintf(), _slotblock::nslots, _btreenode::num_blocks, and _slotblock::startslot.

Here is the call graph for this function:

static int print_btree_level ( btreenode node,
int  level,
int  current_level,
int  node_num 
) [static]

Definition at line 1038 of file mem-arena.C.

References _btreenode::child, _btreenode::num_blocks, print_btree_level(), and print_btree_node().

Here is the call graph for this function:

static void print_btree_top_down ( btreenode node  )  [static]

Definition at line 1056 of file mem-arena.C.

References CmiPrintf(), level, and print_btree_level().

Here is the call graph for this function:

static void print_list_array ( slotset ss  )  [static]

Definition at line 1072 of file mem-arena.C.

References CmiPrintf(), _slotset::list_array, _dllnode::next, _slotblock::nslots, _dllnode::previous, _dllnode::sb, and _slotblock::startslot.

Here is the call graph for this function:

static void print_slots ( slotset ss  )  [static]

Definition at line 1094 of file mem-arena.C.

References _slotset::btree_root, print_btree_top_down(), and print_list_array().

Here is the call graph for this function:

void add_slots ( slotset ss,
CmiInt8  sslot,
CmiInt8  nslots 
)

Definition at line 1152 of file mem-arena.C.

References _slotset::buf, _slotset::emptyslots, free(), malloc(), _slotset::maxbuf, _slotblock::nslots, and _slotblock::startslot.

Here is the call graph for this function:


Generated on Mon Sep 21 08:02:01 2020 for Charm++ by  doxygen 1.5.5