< prev index next > src/hotspot/share/memory/universe.hpp
behaviours
//
// The object heap is allocated and accessed through Universe, and various allocation
// support is provided. Allocation by the interpreter and compiled code is done inline
// and bails out to Scavenge::invoke_and_allocate.
+class BehaviourProviderCollection;
class CollectedHeap;
class DeferredObjAllocEvent;
// A helper class for caching a Method* when the user of the cache
// Initialization
static bool _bootstrapping; // true during genesis
static bool _module_initialized; // true after call_initPhase2 called
static bool _fully_initialized; // true after universe_init and initialize_vtables called
+ // Global behaviours
+ static BehaviourProviderCollection* _vm_behaviours;
+ static BehaviourProviderCollection* _gc_behaviours;
+
// the array of preallocated errors with backtraces
static objArrayOop preallocated_out_of_memory_errors() { return _preallocated_out_of_memory_error_array; }
// generate an out of memory error; if possible using an error with preallocated backtrace;
// otherwise return the given default error.
// Historic gc information
static size_t _heap_capacity_at_last_gc;
static size_t _heap_used_at_last_gc;
+ static void initialize_global_behaviours();
+
static CollectedHeap* create_heap();
static jint initialize_heap();
static void initialize_basic_type_mirrors(TRAPS);
static void fixup_mirrors(TRAPS);
static Klass** objectArrayKlassObj_addr() { return &_objectArrayKlassObj; }
// The particular choice of collected heap.
static CollectedHeap* heap() { return _collectedHeap; }
+ static BehaviourProviderCollection* vm_behaviours() { return _vm_behaviours; }
+ static BehaviourProviderCollection* gc_behaviours() { return _gc_behaviours; }
+
// For UseCompressedOops
// Narrow Oop encoding mode:
// 0 - Use 32-bits oops without encoding when
// NarrowOopHeapBaseMin + heap_size < 4Gb
// 1 - Use zero based compressed oops with encoding when
< prev index next >