8004741: Missing compiled exception handle table entry for multidimensional array allocation

Added missing exception path for multidimensional array allocation and use Throwable type instead of OutOfMemoryError for allocation's exception.

Reviewed-by: twisti
This commit is contained in:
Vladimir Kozlov 2012-12-19 19:21:15 -08:00
parent 960d969ade
commit e508acf372
7 changed files with 117 additions and 13 deletions

View file

@ -2190,7 +2190,7 @@ void JavaThread::send_thread_stop(oop java_throwable) {
// BiasedLocking needs an updated RegisterMap for the revoke monitors pass
RegisterMap reg_map(this, UseBiasedLocking);
frame compiled_frame = f.sender(&reg_map);
if (compiled_frame.can_be_deoptimized()) {
if (!StressCompiledExceptionHandlers && compiled_frame.can_be_deoptimized()) {
Deoptimization::deoptimize(this, compiled_frame, &reg_map);
}
}