8225429: Regression in disassembly quality

Reviewed-by: never
This commit is contained in:
Andrew Haley 2019-06-10 10:11:42 +01:00
parent d571d105ae
commit 83377c41ff
3 changed files with 9 additions and 5 deletions

View file

@ -147,7 +147,10 @@ class decode_env {
if (AbstractDisassembler::show_comment()) {
if ((_nm != NULL) && _nm->has_code_comment(pc0, pc)) {
_nm->print_code_comment_on(st, _post_decode_alignment, pc0, pc);
_nm->print_code_comment_on
(st,
_post_decode_alignment ? _post_decode_alignment : COMMENT_COLUMN,
pc0, pc);
// this calls reloc_string_for which calls oop::print_value_on
}
print_hook_comments(pc0, _nm != NULL);