8210716: Detailed GC logging request misses some
Changed log tags from (heap, ergo) to (gc, ergo, heap). Reviewed-by: kbarrett, tschatzl
This commit is contained in:
parent
ab8c7f710c
commit
33c38f2ccb
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -122,7 +122,7 @@ size_t AdjoiningGenerations::reserved_byte_size() {
|
||||
}
|
||||
|
||||
void log_before_expansion(bool old, size_t expand_in_bytes, size_t change_in_bytes, size_t max_size) {
|
||||
Log(heap, ergo) log;
|
||||
Log(gc, ergo, heap) log;
|
||||
if (!log.is_debug()) {
|
||||
return;
|
||||
}
|
||||
@ -136,7 +136,7 @@ void log_before_expansion(bool old, size_t expand_in_bytes, size_t change_in_byt
|
||||
}
|
||||
|
||||
void log_after_expansion(bool old, size_t max_size) {
|
||||
Log(heap, ergo) log;
|
||||
Log(gc, ergo, heap) log;
|
||||
if (!log.is_debug()) {
|
||||
return;
|
||||
}
|
||||
|
@ -433,15 +433,15 @@ bool PSMarkSweep::absorb_live_data_from_eden(PSAdaptiveSizePolicy* size_policy,
|
||||
return false; // Respect young gen minimum size.
|
||||
}
|
||||
|
||||
log_trace(heap, ergo)(" absorbing " SIZE_FORMAT "K: "
|
||||
"eden " SIZE_FORMAT "K->" SIZE_FORMAT "K "
|
||||
"from " SIZE_FORMAT "K, to " SIZE_FORMAT "K "
|
||||
"young_gen " SIZE_FORMAT "K->" SIZE_FORMAT "K ",
|
||||
absorb_size / K,
|
||||
eden_capacity / K, (eden_capacity - absorb_size) / K,
|
||||
young_gen->from_space()->used_in_bytes() / K,
|
||||
young_gen->to_space()->used_in_bytes() / K,
|
||||
young_gen->capacity_in_bytes() / K, new_young_size / K);
|
||||
log_trace(gc, ergo, heap)(" absorbing " SIZE_FORMAT "K: "
|
||||
"eden " SIZE_FORMAT "K->" SIZE_FORMAT "K "
|
||||
"from " SIZE_FORMAT "K, to " SIZE_FORMAT "K "
|
||||
"young_gen " SIZE_FORMAT "K->" SIZE_FORMAT "K ",
|
||||
absorb_size / K,
|
||||
eden_capacity / K, (eden_capacity - absorb_size) / K,
|
||||
young_gen->from_space()->used_in_bytes() / K,
|
||||
young_gen->to_space()->used_in_bytes() / K,
|
||||
young_gen->capacity_in_bytes() / K, new_young_size / K);
|
||||
|
||||
// Fill the unused part of the old gen.
|
||||
MutableSpace* const old_space = old_gen->object_space();
|
||||
|
@ -2000,15 +2000,15 @@ bool PSParallelCompact::absorb_live_data_from_eden(PSAdaptiveSizePolicy* size_po
|
||||
return false; // Respect young gen minimum size.
|
||||
}
|
||||
|
||||
log_trace(heap, ergo)(" absorbing " SIZE_FORMAT "K: "
|
||||
"eden " SIZE_FORMAT "K->" SIZE_FORMAT "K "
|
||||
"from " SIZE_FORMAT "K, to " SIZE_FORMAT "K "
|
||||
"young_gen " SIZE_FORMAT "K->" SIZE_FORMAT "K ",
|
||||
absorb_size / K,
|
||||
eden_capacity / K, (eden_capacity - absorb_size) / K,
|
||||
young_gen->from_space()->used_in_bytes() / K,
|
||||
young_gen->to_space()->used_in_bytes() / K,
|
||||
young_gen->capacity_in_bytes() / K, new_young_size / K);
|
||||
log_trace(gc, ergo, heap)(" absorbing " SIZE_FORMAT "K: "
|
||||
"eden " SIZE_FORMAT "K->" SIZE_FORMAT "K "
|
||||
"from " SIZE_FORMAT "K, to " SIZE_FORMAT "K "
|
||||
"young_gen " SIZE_FORMAT "K->" SIZE_FORMAT "K ",
|
||||
absorb_size / K,
|
||||
eden_capacity / K, (eden_capacity - absorb_size) / K,
|
||||
young_gen->from_space()->used_in_bytes() / K,
|
||||
young_gen->to_space()->used_in_bytes() / K,
|
||||
young_gen->capacity_in_bytes() / K, new_young_size / K);
|
||||
|
||||
// Fill the unused part of the old gen.
|
||||
MutableSpace* const old_space = old_gen->object_space();
|
||||
|
Loading…
x
Reference in New Issue
Block a user