diff src/share/vm/runtime/javaCalls.cpp @ 3272:01147d8aac1d

7009923: JSR 292: VM crash in JavaThread::last_frame Summary: 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
author coleenp
date Tue, 26 Apr 2011 14:04:43 -0400
parents 1d1603768966
children be4ca325525a 43f9d800f276
line wrap: on
line diff
--- a/src/share/vm/runtime/javaCalls.cpp	Sat Apr 23 00:33:38 2011 -0400
+++ b/src/share/vm/runtime/javaCalls.cpp	Tue Apr 26 14:04:43 2011 -0400
@@ -389,7 +389,7 @@
   // 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.