mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8255208: CodeStrings passed to Disassembler::decode are ignored
Reviewed-by: kvn, iklam
This commit is contained in:
parent
8e5dff08fa
commit
c1524c59ad
11 changed files with 118 additions and 204 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue