src/share/vm/memory/metaspace.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/share/vm/memory/metaspace.cpp	Thu Sep 12 21:57:37 2013
--- new/src/share/vm/memory/metaspace.cpp	Thu Sep 12 21:57:37 2013

*** 2364,2378 **** --- 2364,2380 ---- Metachunk* next = vs_list()->get_new_chunk(word_size, grow_chunks_by_words, medium_chunk_bunch()); + if (next != NULL) { if (TraceMetadataHumongousAllocation && SpaceManager::is_humongous(next->word_size())) { gclog_or_tty->print_cr(" new humongous chunk word size " PTR_FORMAT, next->word_size()); } + } return next; } MetaWord* SpaceManager::allocate(size_t word_size) {
*** 2485,2504 **** --- 2487,2507 ---- for (Metachunk* curr = chunks_in_use(index); curr != NULL; curr = curr->next()) { out->print("%d) ", i++); curr->print_on(out); if (TraceMetadataChunkAllocation && Verbose) { block_freelists()->print_on(out); } curr_total += curr->word_size(); used += curr->used_word_size(); capacity += curr->capacity_word_size(); waste += curr->free_word_size() + curr->overhead();; } } + if (TraceMetadataChunkAllocation && Verbose) { + block_freelists()->print_on(out); + } + size_t free = current_chunk() == NULL ? 0 : current_chunk()->free_word_size(); // Free space isn't wasted. waste -= free; out->print_cr("total of all chunks " SIZE_FORMAT " used " SIZE_FORMAT

src/share/vm/memory/metaspace.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File