comparison 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
comparison
equal deleted inserted replaced
3271:cdd13dce903e 3272:01147d8aac1d
387 387
388 // Check that there are shadow pages available before changing thread state 388 // Check that there are shadow pages available before changing thread state
389 // to Java 389 // to Java
390 if (!os::stack_shadow_pages_available(THREAD, method)) { 390 if (!os::stack_shadow_pages_available(THREAD, method)) {
391 // Throw stack overflow exception with preinitialized exception. 391 // Throw stack overflow exception with preinitialized exception.
392 Exceptions::throw_stack_overflow_exception(THREAD, __FILE__, __LINE__); 392 Exceptions::throw_stack_overflow_exception(THREAD, __FILE__, __LINE__, method);
393 return; 393 return;
394 } else { 394 } else {
395 // Touch pages checked if the OS needs them to be touched to be mapped. 395 // Touch pages checked if the OS needs them to be touched to be mapped.
396 os::bang_stack_shadow_pages(); 396 os::bang_stack_shadow_pages();
397 } 397 }