Skip to content

Commit

Permalink
8234583: PrintAssemblyOptions isn't passed to hsdis library
Browse files Browse the repository at this point in the history
Reviewed-by: vlivanov, mdoerr
  • Loading branch information
RealLucy committed Nov 28, 2019
1 parent 620d677 commit 09d0150
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/hotspot/share/compiler/disassembler.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 09d0150

Please sign in to comment.