提交 aff3b8bc 编写于 作者: N never

6987763: assert(kind() == EmptyExceptionState) failed: only EmptyExceptionStates can be modified

Reviewed-by: roland, kvn, iveresov
上级 7bb1a106
......@@ -68,7 +68,12 @@ class ValueStack: public CompilationResourceObj {
ValueStack* copy(Kind new_kind, int new_bci) { return new ValueStack(this, new_kind, new_bci); }
ValueStack* copy_for_parsing() { return new ValueStack(this, Parsing, -99); }
void set_caller_state(ValueStack* s) { assert(kind() == EmptyExceptionState, "only EmptyExceptionStates can be modified"); _caller_state = s; }
void set_caller_state(ValueStack* s) {
assert(kind() == EmptyExceptionState ||
(Compilation::current()->env()->jvmti_can_access_local_variables() && kind() == ExceptionState),
"only EmptyExceptionStates can be modified");
_caller_state = s;
}
bool is_same(ValueStack* s); // returns true if this & s's types match (w/o checking locals)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册