Back to index

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

Go to the source code of this file.

Classes

class  GC_aux_template< dummy >
class  single_client_gc_alloc_template< dummy >
class  single_client_traceable_alloc_template< dummy >
class  gc_alloc_template< dummy >
class  traceable_alloc_template< dummy >

Typedefs

typedef GC_aux_template< 0 > GC_aux
typedef
single_client_gc_alloc_template< 0 > 
single_client_gc_alloc
typedef
single_client_traceable_alloc_template< 0 > 
single_client_traceable_alloc
typedef gc_alloc_template< 0 > gc_alloc
typedef
traceable_alloc_template< 0 > 
traceable_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

Typedef Documentation

Definition at line 307 of file new_gc_alloc.h.

typedef GC_aux_template<0> GC_aux

Definition at line 158 of file new_gc_alloc.h.

Definition at line 229 of file new_gc_alloc.h.

Definition at line 295 of file new_gc_alloc.h.

Definition at line 319 of file new_gc_alloc.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
GC_PTRFREE 
GC_NORMAL 
GC_UNCOLLECTABLE 
GC_AUNCOLLECTABLE 

Definition at line 76 of file new_gc_alloc.h.

anonymous enum
Enumerator:
GC_max_fast_bytes 

Definition at line 79 of file new_gc_alloc.h.

{ GC_max_fast_bytes = 255 };
anonymous enum
Enumerator:
GC_bytes_per_word 

Definition at line 81 of file new_gc_alloc.h.

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

Definition at line 83 of file new_gc_alloc.h.

anonymous enum
Enumerator:
GC_word_alignment 

Definition at line 85 of file new_gc_alloc.h.


Function Documentation

char* GC_generic_malloc_words_small ( size_t  word,
int  kind 
)
void GC_incr_mem_freed ( size_t  words)
void GC_incr_words_allocd ( size_t  words)
void* & GC_obj_link ( void p) [inline]

Definition at line 87 of file new_gc_alloc.h.

{   return *(void **)p;  }
size_t GC_round_up ( size_t  n) [inline]

Definition at line 92 of file new_gc_alloc.h.

size_t GC_round_up_uncollectable ( size_t  n) [inline]

Definition at line 98 of file new_gc_alloc.h.


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.