Public Member Functions | Public Attributes | Static Public Attributes

js::gc::Chunk Struct Reference

#include <jsgc.h>

Collaboration diagram for js::gc::Chunk:

List of all members.

Public Member Functions

void clearMarkBitmap ()
void init (JSRuntime *rt)
bool unused ()
bool hasAvailableArenas ()
bool withinArenasRange (Cell *cell)
template<typename T >
Arena< T > * allocateArena (JSCompartment *comp, unsigned thingKind)
template<typename T >
void releaseArena (Arena< T > *a)
JSRuntimegetRuntime ()
bool expire ()

Public Attributes

Arena< FreeCellarenas [ArenasPerChunk]
ArenaBitmap bitmaps [ArenasPerChunk]
MarkingDelay markingDelay [ArenasPerChunk]
ChunkInfo info

Static Public Attributes

static const size_t BytesPerArena
static const size_t ArenasPerChunk = (GC_CHUNK_SIZE - sizeof(ChunkInfo)) / BytesPerArena
static const size_t MaxAge = 3

Member Function Documentation

template<typename T >
Arena<T>* js::gc::Chunk::allocateArena ( JSCompartment comp,
unsigned  thingKind 
)
void js::gc::Chunk::clearMarkBitmap (  ) 
bool js::gc::Chunk::expire (  ) 
JSRuntime* js::gc::Chunk::getRuntime (  ) 
bool js::gc::Chunk::hasAvailableArenas (  ) 
void js::gc::Chunk::init ( JSRuntime rt  ) 
template<typename T >
void js::gc::Chunk::releaseArena ( Arena< T > *  a  ) 
bool js::gc::Chunk::unused (  ) 
bool js::gc::Chunk::withinArenasRange ( Cell cell  ) 

Member Data Documentation

const size_t js::gc::Chunk::ArenasPerChunk = (GC_CHUNK_SIZE - sizeof(ChunkInfo)) / BytesPerArena [static]
const size_t js::gc::Chunk::BytesPerArena [static]
Initial value:
 sizeof(Arena<FreeCell>) +
                                        sizeof(ArenaBitmap) +
                                        sizeof(MarkingDelay)
const size_t js::gc::Chunk::MaxAge = 3 [static]

The documentation for this struct was generated from the following file: