Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Enumerations | Functions | Variables
gc_alloc.h File Reference
#include "gc.h"
#include <stddef.h>
#include <string.h>

Go to the source code of this file.

Classes

class  simple_alloc< T, alloc >
class  GC_aux_template< dummy >
class  single_client_gc_alloc_template< dummy >
class  single_client_alloc_template< dummy >
class  gc_alloc_template< dummy >
class  alloc_template< dummy >

Defines

#define __ALLOC_H
#define __SGI_STL_ALLOC_H
#define __SGI_STL_INTERNAL_ALLOC_H
#define __ALLOC   alloc

Typedefs

typedef GC_aux_template< 0 > GC_aux
typedef
single_client_gc_alloc_template< 0 > 
single_client_gc_alloc
typedef
single_client_alloc_template< 0 > 
single_client_alloc
typedef gc_alloc_template< 0 > gc_alloc
typedef alloc_template< 0 > alloc

Enumerations

enum  { GC_PTRFREE = 0, GC_NORMAL = 1, GC_UNCOLLECTABLE = 2, GC_AUNCOLLECTABLE = 3 }
enum  { GC_max_fast_bytes = 255 }
enum  { GC_bytes_per_word = sizeof(char *) }
enum  { GC_byte_alignment = 8 }
enum  { GC_word_alignment = GC_byte_alignment/GC_bytes_per_word }

Functions

void GC_incr_words_allocd (size_t words)
void GC_incr_mem_freed (size_t words)
char * GC_generic_malloc_words_small (size_t word, int kind)
void *& GC_obj_link (void *p)
size_t GC_round_up (size_t n)
size_t GC_round_up_uncollectable (size_t n)

Variables

void **const GC_objfreelist_ptr
void **const GC_aobjfreelist_ptr
void **const GC_uobjfreelist_ptr
void **const GC_auobjfreelist_ptr

Define Documentation

Definition at line 39 of file gc_alloc.h.

Definition at line 34 of file gc_alloc.h.

Definition at line 35 of file gc_alloc.h.

Definition at line 36 of file gc_alloc.h.


Typedef Documentation

typedef alloc_template< 0 > alloc

Definition at line 325 of file gc_alloc.h.

Definition at line 313 of file gc_alloc.h.

typedef GC_aux_template<0> GC_aux

Definition at line 164 of file gc_alloc.h.

Definition at line 301 of file gc_alloc.h.

Definition at line 235 of file gc_alloc.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
GC_PTRFREE 
GC_NORMAL 
GC_UNCOLLECTABLE 
GC_AUNCOLLECTABLE 

Definition at line 82 of file gc_alloc.h.

anonymous enum
Enumerator:
GC_max_fast_bytes 

Definition at line 85 of file gc_alloc.h.

{ GC_max_fast_bytes = 255 };
anonymous enum
Enumerator:
GC_bytes_per_word 

Definition at line 87 of file gc_alloc.h.

{ GC_bytes_per_word = sizeof(char *) };
anonymous enum
Enumerator:
GC_byte_alignment 

Definition at line 89 of file gc_alloc.h.

anonymous enum
Enumerator:
GC_word_alignment 

Definition at line 91 of file gc_alloc.h.


Function Documentation

char* GC_generic_malloc_words_small ( size_t  word,
int  kind 
)

Here is the caller graph for this function:

void GC_incr_mem_freed ( size_t  words)

Here is the caller graph for this function:

void GC_incr_words_allocd ( size_t  words)

Here is the caller graph for this function:

void* & GC_obj_link ( void p) [inline]

Definition at line 93 of file gc_alloc.h.

{   return *(void **)p;  }

Here is the caller graph for this function:

size_t GC_round_up ( size_t  n) [inline]

Definition at line 98 of file gc_alloc.h.

Here is the caller graph for this function:

size_t GC_round_up_uncollectable ( size_t  n) [inline]

Definition at line 104 of file gc_alloc.h.

Here is the caller graph for this function:


Variable Documentation

Definition at line 34 of file mallocx.c.

Definition at line 33 of file mallocx.c.

Definition at line 35 of file mallocx.c.