mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8152065: TraceBytecodes breaks the interpreter expression stack
Move trace_bytecode to InterpreterRuntime and make trace_bytecode an IRT_LEAF so that safepoints are not allowed. Reviewed-by: jiangli, dholmes, dcubed
This commit is contained in:
parent
6e0466f618
commit
1954276b28
11 changed files with 33 additions and 73 deletions
|
@ -138,11 +138,11 @@
|
|||
BytecodeHistogram::_counters[(Bytecodes::Code)opcode]++; \
|
||||
if (StopInterpreterAt && StopInterpreterAt == BytecodeCounter::_counter_value) os::breakpoint(); \
|
||||
if (TraceBytecodes) { \
|
||||
CALL_VM((void)SharedRuntime::trace_bytecode(THREAD, 0, \
|
||||
topOfStack[Interpreter::expr_index_at(1)], \
|
||||
topOfStack[Interpreter::expr_index_at(2)]), \
|
||||
handle_exception); \
|
||||
} \
|
||||
CALL_VM((void)InterpreterRuntime::trace_bytecode(THREAD, 0, \
|
||||
topOfStack[Interpreter::expr_index_at(1)], \
|
||||
topOfStack[Interpreter::expr_index_at(2)]), \
|
||||
handle_exception); \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue