8029025: PPC64 (part 203): opto: Move static _in_dump_cnt to Compile object

Also introduces the compiler oracle 'option' feature for PrintAssembly.

Reviewed-by: kvn
This commit is contained in:
Goetz Lindenmaier 2013-11-22 12:14:09 -08:00
parent 7289ee4573
commit b4ded0bc2e
7 changed files with 12 additions and 11 deletions

View file

@ -619,7 +619,7 @@ nmethod* nmethod::new_nmethod(methodHandle method,
InstanceKlass::cast(klass)->add_dependent_nmethod(nm);
}
NOT_PRODUCT(nmethod_stats.note_nmethod(nm));
if (PrintAssembly) {
if (PrintAssembly || CompilerOracle::has_option_string(method, "PrintAssembly")) {
Disassembler::decode(nm);
}
}