8255208: CodeStrings passed to Disassembler::decode are ignored

Reviewed-by: kvn, iklam
This commit is contained in:
Claes Redestad 2020-10-23 07:30:28 +00:00
parent 8e5dff08fa
commit c1524c59ad
11 changed files with 118 additions and 204 deletions

View file

@ -76,7 +76,7 @@ void InterpreterCodelet::print_on(outputStream* st) const {
if (PrintInterpreter) {
st->cr();
Disassembler::decode(code_begin(), code_end(), st, DEBUG_ONLY(_strings) NOT_DEBUG(CodeStrings()));
Disassembler::decode(code_begin(), code_end(), st DEBUG_ONLY(COMMA &_strings));
}
}
@ -106,7 +106,8 @@ CodeletMark::~CodeletMark() {
// Commit Codelet.
int committed_code_size = (*_masm)->code()->pure_insts_size();
if (committed_code_size) {
AbstractInterpreter::code()->commit(committed_code_size, (*_masm)->code()->strings());
CodeStrings cs NOT_PRODUCT(= (*_masm)->code()->strings());
AbstractInterpreter::code()->commit(committed_code_size, cs);
}
// Make sure nobody can use _masm outside a CodeletMark lifespan.
*_masm = NULL;