71 void EpsilonHeap::post_initialize() { |
71 void EpsilonHeap::post_initialize() { |
72 CollectedHeap::post_initialize(); |
72 CollectedHeap::post_initialize(); |
73 } |
73 } |
74 |
74 |
75 void EpsilonHeap::initialize_serviceability() { |
75 void EpsilonHeap::initialize_serviceability() { |
76 // _minor_gc_manager = MemoryManager::get_epsilon_memory_manager(); |
76 _pool = new EpsilonMemoryPool(this); |
77 // _major_gc_manager = MemoryManager::get_epsilon_memory_manager(); |
77 _memory_manager.add_pool(_pool); |
78 // _managers_list->append(_minor_gc_manager); |
|
79 // _managers_list->append(_major_gc_manager); |
|
80 // EpsilonDummyMemoryPool* dummy = new EpsilonDummyMemoryPool(); |
|
81 // |
|
82 // _minor_gc_manager->add_pool(dummy); |
|
83 // _pools_list->append(dummy); |
|
84 // |
|
85 // EpsilonMemoryPool* pool = new EpsilonMemoryPool(this); |
|
86 // _major_gc_manager->add_pool(pool); |
|
87 // _pools_list->append(pool); |
|
88 } |
78 } |
89 |
79 |
90 GrowableArray<GCMemoryManager*> EpsilonHeap::memory_managers() { |
80 GrowableArray<GCMemoryManager*> EpsilonHeap::memory_managers() { |
91 GrowableArray<GCMemoryManager*> memory_managers(2); |
81 GrowableArray<GCMemoryManager*> memory_managers(1); |
92 // memory_managers.append(&_memory_manager); |
82 memory_managers.append(&_memory_manager); |
93 // memory_managers.append(&_full_gc_memory_manager); |
|
94 return memory_managers; |
83 return memory_managers; |
95 } |
84 } |
96 |
85 |
97 GrowableArray<MemoryPool*> EpsilonHeap::memory_pools() { |
86 GrowableArray<MemoryPool*> EpsilonHeap::memory_pools() { |
98 GrowableArray<MemoryPool*> memory_pools(3); |
87 GrowableArray<MemoryPool*> memory_pools(3); |
99 // memory_pools.append(_eden_pool); |
88 memory_pools.append(_pool); |
100 // memory_pools.append(_survivor_pool); |
|
101 // memory_pools.append(_old_pool); |
|
102 return memory_pools; |
89 return memory_pools; |
103 } |
90 } |
104 |
91 |
105 size_t EpsilonHeap::unsafe_max_tlab_alloc(Thread *thr) const { |
92 size_t EpsilonHeap::unsafe_max_tlab_alloc(Thread *thr) const { |
106 // This is the only way we can control TLAB sizes without having safepoints. |
93 // This is the only way we can control TLAB sizes without having safepoints. |