#include <allocation.hpp>
Collaboration diagram for Resources:
Public Member Functions | |
Resources () | |
ResourceAreaChunk * | new_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 | |
ResourceAreaChunk * | getFromFreeList (int min_capacity) |
Private Attributes | |
ResourceAreaChunk * | freeChunks |
int | _allocated |
bool | _in_consistent_state |
Definition at line 247 of file allocation.hpp.
Resources::Resources | ( | ) |
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 | ( | ) |
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] |
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:
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().