mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
7009923: JSR 292: VM crash in JavaThread::last_frame
Handle stack overflow before the first frame is called, by printing out the called method and not walking the stack. Reviewed-by: dholmes, phh, dsamersoff
This commit is contained in:
parent
e074254d05
commit
ab86f12c44
5 changed files with 20 additions and 10 deletions
|
@ -389,7 +389,7 @@ void JavaCalls::call_helper(JavaValue* result, methodHandle* m, JavaCallArgument
|
|||
// to Java
|
||||
if (!os::stack_shadow_pages_available(THREAD, method)) {
|
||||
// Throw stack overflow exception with preinitialized exception.
|
||||
Exceptions::throw_stack_overflow_exception(THREAD, __FILE__, __LINE__);
|
||||
Exceptions::throw_stack_overflow_exception(THREAD, __FILE__, __LINE__, method);
|
||||
return;
|
||||
} else {
|
||||
// Touch pages checked if the OS needs them to be touched to be mapped.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue