mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +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
|
@ -28,6 +28,7 @@
|
|||
#include "gc/shared/gcId.hpp"
|
||||
#include "gc/shared/workerManager.hpp"
|
||||
#include "logging/log.hpp"
|
||||
#include "logging/logStream.hpp"
|
||||
#include "memory/allocation.hpp"
|
||||
#include "memory/allocation.inline.hpp"
|
||||
#include "memory/resourceArea.hpp"
|
||||
|
@ -437,13 +438,12 @@ void GCTaskManager::initialize() {
|
|||
|
||||
Log(gc, task, thread) log;
|
||||
if (log.is_trace()) {
|
||||
ResourceMark rm;
|
||||
outputStream* out = log.trace_stream();
|
||||
out->print("GCTaskManager::initialize: distribution:");
|
||||
LogStream ls(log.trace());
|
||||
ls.print("GCTaskManager::initialize: distribution:");
|
||||
for (uint t = 0; t < workers(); t += 1) {
|
||||
out->print(" %u", _processor_assignment[t]);
|
||||
ls.print(" %u", _processor_assignment[t]);
|
||||
}
|
||||
out->cr();
|
||||
ls.cr();
|
||||
}
|
||||
}
|
||||
reset_busy_workers();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue