src/share/vm/services/memoryService.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8015774 Cdiff src/share/vm/services/memoryService.cpp

src/share/vm/services/memoryService.cpp

Print this page

        

*** 61,71 **** GrowableArray<MemoryManager*>* MemoryService::_managers_list = new (ResourceObj::C_HEAP, mtInternal) GrowableArray<MemoryManager*>(init_managers_list_size, true); GCMemoryManager* MemoryService::_minor_gc_manager = NULL; GCMemoryManager* MemoryService::_major_gc_manager = NULL; ! MemoryPool* MemoryService::_code_heap_pool = NULL; MemoryPool* MemoryService::_metaspace_pool = NULL; MemoryPool* MemoryService::_compressed_class_pool = NULL; class GcThreadCountClosure: public ThreadClosure { private: --- 61,73 ---- GrowableArray<MemoryManager*>* MemoryService::_managers_list = new (ResourceObj::C_HEAP, mtInternal) GrowableArray<MemoryManager*>(init_managers_list_size, true); GCMemoryManager* MemoryService::_minor_gc_manager = NULL; GCMemoryManager* MemoryService::_major_gc_manager = NULL; ! MemoryManager* MemoryService::_code_cache_manager = NULL; ! GrowableArray<MemoryPool*>* MemoryService::_code_heap_pools = ! new (ResourceObj::C_HEAP, mtInternal) GrowableArray<MemoryPool*>(init_code_heap_pools_size, true); MemoryPool* MemoryService::_metaspace_pool = NULL; MemoryPool* MemoryService::_compressed_class_pool = NULL; class GcThreadCountClosure: public ThreadClosure { private:
*** 389,407 **** mgr->add_pool(old_gen); _pools_list->append(old_gen); } #endif // INCLUDE_ALL_GCS ! void MemoryService::add_code_heap_memory_pool(CodeHeap* heap) { ! _code_heap_pool = new CodeHeapPool(heap, ! "Code Cache", ! true /* support_usage_threshold */); ! MemoryManager* mgr = MemoryManager::get_code_cache_memory_manager(); ! mgr->add_pool(_code_heap_pool); ! _pools_list->append(_code_heap_pool); ! _managers_list->append(mgr); } void MemoryService::add_metaspace_memory_pools() { MemoryManager* mgr = MemoryManager::get_metaspace_memory_manager(); --- 391,415 ---- mgr->add_pool(old_gen); _pools_list->append(old_gen); } #endif // INCLUDE_ALL_GCS ! void MemoryService::add_code_heap_memory_pool(CodeHeap* heap, const char* name) { ! // Create new memory pool for this heap ! MemoryPool* code_heap_pool = new CodeHeapPool(heap, name, true /* support_usage_threshold */); ! ! // Append to lists ! _code_heap_pools->append(code_heap_pool); ! _pools_list->append(code_heap_pool); ! ! if (_code_cache_manager == NULL) { ! // Create CodeCache memory manager ! _code_cache_manager = MemoryManager::get_code_cache_memory_manager(); ! _managers_list->append(_code_cache_manager); ! } ! _code_cache_manager->add_pool(code_heap_pool); } void MemoryService::add_metaspace_memory_pools() { MemoryManager* mgr = MemoryManager::get_metaspace_memory_manager();
src/share/vm/services/memoryService.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File