mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-24 04:54:40 +02:00
8042891: Format issues embedded in macros for two g1 source files
Reviewed-by: brutisso, tschatzl
This commit is contained in:
parent
e4a699552a
commit
be6e9b9f50
3 changed files with 67 additions and 75 deletions
|
@ -22,11 +22,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifndef __clang_major__
|
||||
// FIXME, formats have issues. Disable this macro definition, compile, and study warnings for more information.
|
||||
#define ATTRIBUTE_PRINTF(x,y)
|
||||
#endif
|
||||
|
||||
#include "precompiled.hpp"
|
||||
#include "gc_implementation/g1/concurrentG1Refine.hpp"
|
||||
#include "gc_implementation/g1/concurrentMark.hpp"
|
||||
|
@ -302,7 +297,7 @@ G1CollectorPolicy::G1CollectorPolicy() :
|
|||
if (reserve_perc > 50) {
|
||||
reserve_perc = 50;
|
||||
warning("G1ReservePercent is set to a value that is too large, "
|
||||
"it's been updated to %u", reserve_perc);
|
||||
"it's been updated to " UINTX_FORMAT, reserve_perc);
|
||||
}
|
||||
_reserve_factor = (double) reserve_perc / 100.0;
|
||||
// This will be set when the heap is expanded
|
||||
|
@ -1800,7 +1795,7 @@ void G1CollectorPolicy::print_collection_set(HeapRegion* list_head, outputStream
|
|||
assert(csr->in_collection_set(), "bad CS");
|
||||
st->print_cr(" "HR_FORMAT", P: "PTR_FORMAT "N: "PTR_FORMAT", age: %4d",
|
||||
HR_FORMAT_PARAMS(csr),
|
||||
csr->prev_top_at_mark_start(), csr->next_top_at_mark_start(),
|
||||
p2i(csr->prev_top_at_mark_start()), p2i(csr->next_top_at_mark_start()),
|
||||
csr->age_in_surv_rate_group_cond());
|
||||
csr = next;
|
||||
}
|
||||
|
@ -2166,7 +2161,7 @@ void TraceYoungGenTimeData::print_summary(const char* str,
|
|||
void TraceYoungGenTimeData::print_summary_sd(const char* str,
|
||||
const NumberSeq* seq) const {
|
||||
print_summary(str, seq);
|
||||
gclog_or_tty->print_cr("%+45s = %5d, std dev = %8.2lf ms, max = %8.2lf ms)",
|
||||
gclog_or_tty->print_cr("%45s = %5d, std dev = %8.2lf ms, max = %8.2lf ms)",
|
||||
"(num", seq->num(), seq->sd(), seq->maximum());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue