8205664: Move detailed metaspace logging from debug to trace
Reviewed-by: stuefe, stefank
This commit is contained in:
parent
6dca162699
commit
e702bea327
@ -508,7 +508,7 @@ Metachunk* ChunkManager::free_chunks_get(size_t word_size) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
log_debug(gc, metaspace, alloc)("Free list allocate humongous chunk size " SIZE_FORMAT " for requested size " SIZE_FORMAT " waste " SIZE_FORMAT,
|
||||
log_trace(gc, metaspace, alloc)("Free list allocate humongous chunk size " SIZE_FORMAT " for requested size " SIZE_FORMAT " waste " SIZE_FORMAT,
|
||||
chunk->word_size(), word_size, chunk->word_size() - word_size);
|
||||
}
|
||||
|
||||
@ -550,7 +550,7 @@ Metachunk* ChunkManager::chunk_freelist_allocate(size_t word_size) {
|
||||
assert((word_size <= chunk->word_size()) ||
|
||||
(list_index(chunk->word_size()) == HumongousIndex),
|
||||
"Non-humongous variable sized chunk");
|
||||
LogTarget(Debug, gc, metaspace, freelist) lt;
|
||||
LogTarget(Trace, gc, metaspace, freelist) lt;
|
||||
if (lt.is_enabled()) {
|
||||
size_t list_count;
|
||||
if (list_index(word_size) < HumongousIndex) {
|
||||
|
@ -152,11 +152,11 @@ size_t SpaceManager::calc_chunk_size(size_t word_size) {
|
||||
" 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());
|
||||
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;
|
||||
}
|
||||
@ -390,9 +390,9 @@ Metachunk* SpaceManager::get_new_chunk(size_t chunk_word_size) {
|
||||
}
|
||||
|
||||
Log(gc, metaspace, alloc) log;
|
||||
if (log.is_debug() && next != NULL &&
|
||||
if (log.is_trace() && next != NULL &&
|
||||
SpaceManager::is_humongous(next->word_size())) {
|
||||
log.debug(" new humongous chunk word size " PTR_FORMAT, next->word_size());
|
||||
log.trace(" new humongous chunk word size " PTR_FORMAT, next->word_size());
|
||||
}
|
||||
|
||||
return next;
|
||||
|
@ -428,7 +428,7 @@ Metachunk* VirtualSpaceNode::take_from_committed(size_t chunk_word_size) {
|
||||
"The committed memory doesn't match the expanded memory.");
|
||||
|
||||
if (!is_available(chunk_word_size)) {
|
||||
LogTarget(Debug, gc, metaspace, freelist) lt;
|
||||
LogTarget(Trace, gc, metaspace, freelist) lt;
|
||||
if (lt.is_enabled()) {
|
||||
LogStream ls(lt);
|
||||
ls.print("VirtualSpaceNode::take_from_committed() not available " SIZE_FORMAT " words ", chunk_word_size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user