mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8181917: Refactor UL LogStreams to avoid using resource area
Reviewed-by: ehelin, mlarsson
This commit is contained in:
parent
52ef49eef1
commit
d12604111c
63 changed files with 662 additions and 508 deletions
|
@ -206,7 +206,8 @@ void PSParallelCompact::print_region_ranges() {
|
|||
}
|
||||
Log(gc, compaction) log;
|
||||
ResourceMark rm;
|
||||
Universe::print_on(log.trace_stream());
|
||||
LogStream ls(log.trace());
|
||||
Universe::print_on(&ls);
|
||||
log.trace("space bottom top end new_top");
|
||||
log.trace("------ ---------- ---------- ---------- ----------");
|
||||
|
||||
|
@ -2372,7 +2373,8 @@ void PSParallelCompact::write_block_fill_histogram()
|
|||
|
||||
Log(gc, compaction) log;
|
||||
ResourceMark rm;
|
||||
outputStream* out = log.trace_stream();
|
||||
LogStream ls(log.trace());
|
||||
outputStream* out = &ls;
|
||||
|
||||
typedef ParallelCompactData::RegionData rd_t;
|
||||
ParallelCompactData& sd = summary_data();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue