Resources Class Reference

#include <allocation.hpp>

Collaboration diagram for Resources:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Resources ()
ResourceAreaChunknew_chunk (int min_capacity, ResourceAreaChunk *area)
void addToFreeList (ResourceAreaChunk *c)
bool in_consistent_state ()
bool contains (char *p)
int capacity ()
int used ()

Private Member Functions

ResourceAreaChunkgetFromFreeList (int min_capacity)

Private Attributes

ResourceAreaChunkfreeChunks
int _allocated
bool _in_consistent_state

Detailed Description

Definition at line 247 of file allocation.hpp.


Constructor & Destructor Documentation

Resources::Resources (  ) 

Definition at line 203 of file allocation.cpp.

References _allocated, and _in_consistent_state.


Member Function Documentation

void Resources::addToFreeList ( ResourceAreaChunk c  ) 

Definition at line 145 of file allocation.cpp.

References ResourceAreaChunk::clear(), freeChunks, and ResourceAreaChunk::prev.

Referenced by ResourceArea::~ResourceArea(), and ResourceMark::~ResourceMark().

Here is the call graph for this function:

int Resources::capacity (  ) 

Definition at line 129 of file allocation.cpp.

References _allocated.

bool Resources::contains ( char *  p  ) 

Definition at line 138 of file allocation.cpp.

References in_rsrc, and p_rsrc.

Referenced by CHeapObj::operator delete().

ResourceAreaChunk * Resources::getFromFreeList ( int  min_capacity  )  [private]

Definition at line 152 of file allocation.cpp.

References ResourceAreaChunk::capacity(), freeChunks, and ResourceAreaChunk::prev.

Referenced by new_chunk().

Here is the call graph for this function:

bool Resources::in_consistent_state (  )  [inline]

Definition at line 258 of file allocation.hpp.

References _in_consistent_state.

ResourceAreaChunk * Resources::new_chunk ( int  min_capacity,
ResourceAreaChunk area 
)

Definition at line 177 of file allocation.cpp.

References _allocated, _in_consistent_state, assert, ResourceAreaChunk::capacity(), getFromFreeList(), ResourceAreaChunk::initialize(), outputStream::print(), and std.

Referenced by ResourceArea::allocate_more_bytes().

Here is the call graph for this function:

int Resources::used (  ) 

Definition at line 131 of file allocation.cpp.

References resource_area, and ResourceArea::used().

Here is the call graph for this function:


Member Data Documentation

int Resources::_allocated [private]

Definition at line 250 of file allocation.hpp.

Referenced by capacity(), new_chunk(), and Resources().

bool Resources::_in_consistent_state [private]

Definition at line 251 of file allocation.hpp.

Referenced by in_consistent_state(), new_chunk(), and Resources().

ResourceAreaChunk* Resources::freeChunks [private]

Definition at line 249 of file allocation.hpp.

Referenced by addToFreeList(), and getFromFreeList().


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