< prev index next >

src/hotspot/share/memory/metaspace/spaceManager.cpp

Print this page

        

*** 150,164 **** chunk_word_size == if_humongous_sized_chunk, "Size calculation is wrong, word_size " SIZE_FORMAT " chunk_word_size " SIZE_FORMAT, word_size, chunk_word_size); Log(gc, metaspace, alloc) log; ! if (log.is_debug() && SpaceManager::is_humongous(word_size)) { ! log.debug("Metadata humongous allocation:"); ! log.debug(" word_size " PTR_FORMAT, word_size); ! log.debug(" chunk_word_size " PTR_FORMAT, chunk_word_size); ! log.debug(" chunk overhead " PTR_FORMAT, Metachunk::overhead()); } return chunk_word_size; } void SpaceManager::track_metaspace_memory_usage() { --- 150,164 ---- chunk_word_size == if_humongous_sized_chunk, "Size calculation is wrong, word_size " SIZE_FORMAT " chunk_word_size " SIZE_FORMAT, word_size, chunk_word_size); Log(gc, metaspace, alloc) log; ! if (log.is_trace() && SpaceManager::is_humongous(word_size)) { ! log.trace("Metadata humongous allocation:"); ! log.trace(" word_size " PTR_FORMAT, word_size); ! log.trace(" chunk_word_size " PTR_FORMAT, chunk_word_size); ! log.trace(" chunk overhead " PTR_FORMAT, Metachunk::overhead()); } return chunk_word_size; } void SpaceManager::track_metaspace_memory_usage() {
*** 388,400 **** next = vs_list()->get_new_chunk(chunk_word_size, medium_chunk_bunch()); } Log(gc, metaspace, alloc) log; ! if (log.is_debug() && next != NULL && SpaceManager::is_humongous(next->word_size())) { ! log.debug(" new humongous chunk word size " PTR_FORMAT, next->word_size()); } return next; } --- 388,400 ---- next = vs_list()->get_new_chunk(chunk_word_size, medium_chunk_bunch()); } Log(gc, metaspace, alloc) log; ! if (log.is_trace() && next != NULL && SpaceManager::is_humongous(next->word_size())) { ! log.trace(" new humongous chunk word size " PTR_FORMAT, next->word_size()); } return next; }
< prev index next >