mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
7177003: C1: LogCompilation support
Add LogCompilation support in C1 - both client and tiered mode. Reviewed-by: twisti, kvn
This commit is contained in:
parent
9e9db7f831
commit
822deb6ee6
18 changed files with 170 additions and 19 deletions
|
@ -2583,6 +2583,12 @@ void JavaThread::deoptimized_wrt_marked_nmethods() {
|
|||
StackFrameStream fst(this, UseBiasedLocking);
|
||||
for(; !fst.is_done(); fst.next()) {
|
||||
if (fst.current()->should_be_deoptimized()) {
|
||||
if (LogCompilation && xtty != NULL) {
|
||||
nmethod* nm = fst.current()->cb()->as_nmethod_or_null();
|
||||
xtty->elem("deoptimized thread='" UINTX_FORMAT "' compile_id='%d'",
|
||||
this->name(), nm != NULL ? nm->compile_id() : -1);
|
||||
}
|
||||
|
||||
Deoptimization::deoptimize(this, *fst.current(), fst.register_map());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue