8243045: AOTCompiledMethod::print_on triggers assertion after JDK-8210012

Fix outputStream time stamp issue when AOT and -Xlog:all=trace are specified together.

Reviewed-by: coleenp, hseigel, kvn
This commit is contained in:
Lois Foltan 2020-04-21 17:20:08 +00:00
parent 1c6ca09b02
commit efa570126b

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -313,7 +313,7 @@ void AOTCompiledMethod::print_on(outputStream* st) const {
void AOTCompiledMethod::print_on(outputStream* st, const char* msg) const {
if (st != NULL) {
ttyLocker ttyl;
st->print("%7d ", (int) st->time_stamp().milliseconds());
st->print("%7d ", (int) tty->time_stamp().milliseconds());
st->print("%4d ", _aot_id); // print compilation number
st->print(" aot[%2d]", _heap->dso_id());
// Stubs have _method == NULL