#include <string.h>Include dependency graph for allocation.hpp:

Go to the source code of this file.
Classes | |
| class | CHeapObj |
| class | PrintableCHeapObj |
| class | StackObj |
| class | PrintableStackObj |
| class | ValueObj |
| class | AllStatic |
| class | ResourceAreaChunk |
| class | ResourceArea |
| class | ResourceMark |
| class | FinalResourceMark |
| class | NoGCVerifier |
| class | Resources |
| class | ResourceObj |
| class | PrintableResourceObj |
Defines | |
| #define | NEW_RESOURCE_ARRAY(type, size) (type*) allocateResource( (size) * sizeof(type)) |
| #define | NEW_C_HEAP_ARRAY(type, size) (type*) malloc( (size) * sizeof(type)); |
| #define | NEW_RESOURCE_OBJ(type) NEW_RESOURCE_ARRAY( type, 1 ) |
| #define | NEW_C_HEAP_OBJ(type) NEW_C_HEAP_ARRAY( type, 1 ) |
Functions | |
| char * | AllocatePageAligned (int size, char *name) |
| char * | AllocateHeap (int size, char *name) |
| void | FreeHeap (void *p) |
| char * | allocateResource (int size) |
Variables | |
| const int | min_resource_chunk_size = 256 * K |
| const int | min_resource_free_size = 32 * K |
| bool | PrintResourceAllocation |
| Resources | resources |
| ResourceArea | resource_area |
| #define NEW_C_HEAP_ARRAY | ( | type, | |||
| size | ) | (type*) malloc( (size) * sizeof(type)); |
Definition at line 108 of file allocation.hpp.
Referenced by bootstrap::add(), InliningDatabase::allocate_table(), FlatProfiler::allocate_table(), byteArrayOopDesc::copy_c_heap_null_terminated(), copy_c_heap_string(), dependencyList::dependencyList(), EventLog::init(), bootstrap::initialize_tables(), symbolTable::new_link(), oldSpace::oldSpace(), PRIM_DECL_1(), and NotificationQueue::put().
| #define NEW_C_HEAP_OBJ | ( | type | ) | NEW_C_HEAP_ARRAY( type, 1 ) |
Definition at line 112 of file allocation.hpp.
| #define NEW_RESOURCE_ARRAY | ( | type, | |||
| size | ) | (type*) allocateResource( (size) * sizeof(type)) |
Definition at line 105 of file allocation.hpp.
Referenced by stringStream::as_string(), doubleByteArrayOopDesc::as_string(), byteArrayOopDesc::as_string(), characterNode::characterNode(), InliningDatabase::compute_file_name(), byteArrayOopDesc::copy_null_terminated(), copy_string(), scopeNode::create_name(), doubleNode::doubleNode(), GenericGrowableArray::GenericGrowableArray(), GenericGrowableArray::grow(), InliningDatabase::index_file_name(), scopeNode::inst_var_string(), Universe::klass_name(), InliningDatabase::mangle_name(), scopeNode::param_string(), PRIM_DECL_1(), stringStream::put(), IntegerOps::qr_decomposition(), smiNode::smiNode(), stringStream::stringStream(), and InliningDatabase::unmangle_name().
| #define NEW_RESOURCE_OBJ | ( | type | ) | NEW_RESOURCE_ARRAY( type, 1 ) |
| char* AllocateHeap | ( | int | size, | |
| char * | name | |||
| ) |
Definition at line 284 of file allocation.cpp.
References lprintf().
Referenced by GenericGrowableArray::GenericGrowableArray(), GenericGrowableArray::grow(), CHeapObj::operator new(), operator new(), rSet::operator new(), and ResourceAreaChunk::ResourceAreaChunk().
Here is the call graph for this function:

| char* AllocatePageAligned | ( | int | size, | |
| char * | name | |||
| ) |
Definition at line 276 of file allocation.cpp.
References align(), lprintf(), and Universe::page_size().
Here is the call graph for this function:

| char* allocateResource | ( | int | size | ) | [inline] |
Definition at line 268 of file allocation.hpp.
References ResourceArea::allocate_bytes(), and resource_area.
Referenced by ResourceObj::operator new().
Here is the call graph for this function:

| void FreeHeap | ( | void * | p | ) |
Definition at line 289 of file allocation.cpp.
Referenced by bootstrap::add(), InliningDatabase::add_lookup_entry(), CHeapObj::operator delete(), InliningDatabase::reset_lookup_table(), EventLog::resize(), bootstrap::~bootstrap(), and ResourceAreaChunk::~ResourceAreaChunk().
| const int min_resource_chunk_size = 256 * K |
Definition at line 119 of file allocation.hpp.
Referenced by ResourceAreaChunk::ResourceAreaChunk().
| const int min_resource_free_size = 32 * K |
Definition at line 120 of file allocation.hpp.
Referenced by ResourceAreaChunk::ResourceAreaChunk().
Definition at line 126 of file allocation.hpp.
Referenced by ResourceAreaChunk::allocate_bytes(), and ResourceMark::~ResourceMark().
Definition at line 27 of file allocation.cpp.
Referenced by allocateResource(), ResourceMark::ResourceMark(), and Resources::used().
Definition at line 127 of file allocation.cpp.
Referenced by ResourceArea::allocate_more_bytes(), CHeapObj::operator delete(), ResourceArea::~ResourceArea(), and ResourceMark::~ResourceMark().
1.4.7