提交 a6cd8c33 编写于 作者: T twisti

8004319: test/gc/7168848/HumongousAlloc.java fails after 7172640

Reviewed-by: kvn, johnc
上级 a61ac183
...@@ -79,14 +79,19 @@ class LibraryCallKit : public GraphKit { ...@@ -79,14 +79,19 @@ class LibraryCallKit : public GraphKit {
_intrinsic(intrinsic), _intrinsic(intrinsic),
_result(NULL) _result(NULL)
{ {
// Find out how many arguments the interpreter needs when deoptimizing // Check if this is a root compile. In that case we don't have a caller.
// and save the stack pointer value so it can used by uncommon_trap. if (!jvms->has_method()) {
// We find the argument count by looking at the declared signature. _reexecute_sp = sp();
bool ignored_will_link; } else {
ciSignature* declared_signature = NULL; // Find out how many arguments the interpreter needs when deoptimizing
ciMethod* ignored_callee = caller()->get_method_at_bci(bci(), ignored_will_link, &declared_signature); // and save the stack pointer value so it can used by uncommon_trap.
const int nargs = declared_signature->arg_size_for_bc(caller()->java_code_at_bci(bci())); // We find the argument count by looking at the declared signature.
_reexecute_sp = sp() + nargs; // "push" arguments back on stack bool ignored_will_link;
ciSignature* declared_signature = NULL;
ciMethod* ignored_callee = caller()->get_method_at_bci(bci(), ignored_will_link, &declared_signature);
const int nargs = declared_signature->arg_size_for_bc(caller()->java_code_at_bci(bci()));
_reexecute_sp = sp() + nargs; // "push" arguments back on stack
}
} }
virtual LibraryCallKit* is_LibraryCallKit() const { return (LibraryCallKit*)this; } virtual LibraryCallKit* is_LibraryCallKit() const { return (LibraryCallKit*)this; }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册