8272586: emit abstract machine code in hs-err logs

Reviewed-by: kvn, dholmes
This commit is contained in:
Doug Simon 2021-10-08 08:06:53 +00:00
parent 97ea9dd2f2
commit b60837a7d5
7 changed files with 318 additions and 50 deletions

View file

@ -187,16 +187,16 @@ class CompileTask : public CHeapObj<mtCompiler> {
private:
static void print_impl(outputStream* st, Method* method, int compile_id, int comp_level,
bool is_osr_method = false, int osr_bci = -1, bool is_blocking = false,
const char* msg = NULL, bool short_form = false, bool cr = true,
const char* msg = NULL, bool short_form = false, bool cr = true, bool timestamp = true,
jlong time_queued = 0, jlong time_started = 0);
public:
void print(outputStream* st = tty, const char* msg = NULL, bool short_form = false, bool cr = true);
void print_ul(const char* msg = NULL);
static void print(outputStream* st, const nmethod* nm, const char* msg = NULL, bool short_form = false, bool cr = true) {
static void print(outputStream* st, const nmethod* nm, const char* msg = NULL, bool short_form = false, bool cr = true, bool timestamp = true) {
print_impl(st, nm->method(), nm->compile_id(), nm->comp_level(),
nm->is_osr_method(), nm->is_osr_method() ? nm->osr_entry_bci() : -1, /*is_blocking*/ false,
msg, short_form, cr);
msg, short_form, cr, timestamp);
}
static void print_ul(const nmethod* nm, const char* msg = NULL);