Skip to content
Permalink
Browse files

8234583: PrintAssemblyOptions isn't passed to hsdis library

Reviewed-by: vlivanov, mdoerr
  • Loading branch information
Lutz Schmidt
Lutz Schmidt committed Nov 28, 2019
1 parent 620d677 commit 09d0150f6e9834801d30c82d721552e0aab25c9c
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/hotspot/share/compiler/disassembler.cpp
@@ -414,16 +414,19 @@ void decode_env::process_options(outputStream* ost) {
_bytes_per_line = Disassembler::pd_instruction_alignment();
_print_file_name = true;

if (_optionsParsed) return; // parse only once

// parse the global option string:
// parse the global option string
// We need to fill the options buffer for each newly created
// decode_env instance. The hsdis_* library looks for options
// in that buffer.
collect_options(Disassembler::pd_cpu_opts());
collect_options(PrintAssemblyOptions);

if (strstr(options(), "print-raw")) {
_print_raw = (strstr(options(), "xml") ? 2 : 1);
}

if (_optionsParsed) return; // parse only once

if (strstr(options(), "help")) {
_print_help = true;
}

0 comments on commit 09d0150

Please sign in to comment.
You can’t perform that action at this time.