Back to index

plt-scheme  4.2.1
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

#define __ALLOC   alloc

Definition at line 42 of file gc_alloc.h.

#define __ALLOC_H

Definition at line 37 of file gc_alloc.h.

Definition at line 38 of file gc_alloc.h.

Definition at line 39 of file gc_alloc.h.


Typedef Documentation

typedef alloc_template< 0 > alloc

Definition at line 328 of file gc_alloc.h.

Definition at line 316 of file gc_alloc.h.

typedef GC_aux_template<0> GC_aux

Definition at line 167 of file gc_alloc.h.

Definition at line 304 of file gc_alloc.h.

Definition at line 238 of file gc_alloc.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
GC_PTRFREE 
GC_NORMAL 
GC_UNCOLLECTABLE 
GC_AUNCOLLECTABLE 

Definition at line 85 of file gc_alloc.h.

anonymous enum
Enumerator:
GC_max_fast_bytes 

Definition at line 88 of file gc_alloc.h.

{ GC_max_fast_bytes = 255 };
anonymous enum
Enumerator:
GC_bytes_per_word 

Definition at line 90 of file gc_alloc.h.

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

Definition at line 92 of file gc_alloc.h.

anonymous enum
Enumerator:
GC_word_alignment 

Definition at line 94 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 96 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 101 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 107 of file gc_alloc.h.

Here is the caller graph for this function:


Variable Documentation

Definition at line 35 of file mallocx.c.

Definition at line 34 of file mallocx.c.

Definition at line 36 of file mallocx.c.