libspin/gspin-mempool.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include "gspin-tree.h"
#include "gspin-mempool.h"

Include dependency graph for gspin-mempool.c:

Go to the source code of this file.

Defines

#define GS_MEMBLOCK_SIZE   0x1000000
#define GS_BLOCK_IDX_SHIFT_AMT   24
#define GS_OFST_IN_BLK_MASK   0xffffff

Functions/Subroutines

gs_memblock_tgs_new_memblock (int id)
void__gs_mempool_alloc (unsigned int arena_id, unsigned int count)
gs_void_tgs_mempool_idx2address (int arena_id, int cell_index)
long gs_mempool_address2byteofst (int arena_id, char *p)

Variables

gs_arena_t gs_mempool [GS_ARENA_COUNT]
static gs_memblock_tmemblk_cache [GS_ARENA_COUNT] = {NULL, NULL}
char * mem_seg


Define Documentation

#define GS_BLOCK_IDX_SHIFT_AMT   24

Definition at line 40 of file gspin-mempool.c.

Referenced by __gs_mempool_alloc(), and gs_mempool_idx2address().

#define GS_MEMBLOCK_SIZE   0x1000000

#define GS_OFST_IN_BLK_MASK   0xffffff

Definition at line 41 of file gspin-mempool.c.

Referenced by __gs_mempool_alloc(), and gs_mempool_idx2address().


Function Documentation

void* __gs_mempool_alloc ( unsigned int  arena_id,
unsigned int  count 
)

long gs_mempool_address2byteofst ( int  arena_id,
char *  p 
)

gs_void_t* gs_mempool_idx2address ( int  arena_id,
int  cell_index 
)

gs_memblock_t* gs_new_memblock ( int  id  ) 


Variable Documentation

gs_arena_t gs_mempool[GS_ARENA_COUNT]

Initial value:

 {

  { NULL, NULL, 0 }, 
  { NULL, NULL, 0 }, 

}

Definition at line 44 of file gspin-mempool.c.

Referenced by __gs(), and gs_write().

char* mem_seg

Definition at line 74 of file gspin-io.c.

Referenced by gs_mempool_address2byteofst().

gs_memblock_t* memblk_cache[GS_ARENA_COUNT] = {NULL, NULL} [static]

Definition at line 86 of file gspin-mempool.c.


Generated on Wed Apr 8 14:17:10 2009 for Open64 by  doxygen 1.5.6