8282172: CompileBroker::log_metaspace_failure is called from non-Java/compiler threads
Reviewed-by: kvn, thartmann
This commit is contained in:
parent
0ae3d1d59c
commit
4e7fb41daf
@ -225,11 +225,13 @@ class CompilationLog : public StringEventLog {
|
||||
}
|
||||
|
||||
void log_metaspace_failure(const char* reason) {
|
||||
// Note: This method can be called from non-Java/compiler threads to
|
||||
// log the global metaspace failure that might affect profiling.
|
||||
ResourceMark rm;
|
||||
StringLogMessage lm;
|
||||
lm.print("%4d COMPILE PROFILING SKIPPED: %s", -1, reason);
|
||||
lm.print("\n");
|
||||
log(JavaThread::current(), "%s", (const char*)lm);
|
||||
log(Thread::current(), "%s", (const char*)lm);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user