ResourceArea Class Reference

#include <allocation.hpp>

Collaboration diagram for ResourceArea:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ResourceArea ()
 ~ResourceArea ()
char * allocate_more_bytes (int size)
char * allocate_bytes (int size)
int capacity ()
int used ()
bool contains (void *p)

Public Attributes

ResourceAreaChunkchunk

Detailed Description

Definition at line 175 of file allocation.hpp.


Constructor & Destructor Documentation

ResourceArea::ResourceArea (  ) 

Definition at line 99 of file allocation.cpp.

References chunk.

ResourceArea::~ResourceArea (  ) 

Definition at line 106 of file allocation.cpp.

References Resources::addToFreeList(), chunk, ResourceAreaChunk::prev, and resources.

Here is the call graph for this function:


Member Function Documentation

char* ResourceArea::allocate_bytes ( int  size  )  [inline]

Definition at line 187 of file allocation.hpp.

References ResourceAreaChunk::allocate_bytes(), allocate_more_bytes(), assert, chunk, error(), oopSize, and roundTo.

Referenced by allocateResource().

Here is the call graph for this function:

char * ResourceArea::allocate_more_bytes ( int  size  ) 

Definition at line 115 of file allocation.cpp.

References ResourceAreaChunk::allocate_bytes(), assert, chunk, Resources::new_chunk(), and resources.

Referenced by allocate_bytes().

Here is the call graph for this function:

int ResourceArea::capacity (  )  [inline]

Definition at line 209 of file allocation.hpp.

References ResourceAreaChunk::_allocated, and chunk.

bool ResourceArea::contains ( void *  p  )  [inline]

Definition at line 212 of file allocation.hpp.

References chunk, and ResourceAreaChunk::contains().

Here is the call graph for this function:

int ResourceArea::used (  ) 

Definition at line 122 of file allocation.cpp.

References ResourceAreaChunk::_previous_used, chunk, ResourceAreaChunk::prev, and ResourceAreaChunk::used().

Referenced by Resources::used().

Here is the call graph for this function:


Member Data Documentation

ResourceAreaChunk* ResourceArea::chunk

Definition at line 177 of file allocation.hpp.

Referenced by allocate_bytes(), allocate_more_bytes(), capacity(), contains(), ResourceArea(), ResourceMark::ResourceMark(), used(), ~ResourceArea(), and ResourceMark::~ResourceMark().


The documentation for this class was generated from the following files:
Generated on Mon Oct 9 14:15:17 2006 for Strongtalk VM by  doxygen 1.4.7