diff src/share/vm/opto/graphKit.cpp @ 7428:2d6c433b1f38

8004741: Missing compiled exception handle table entry for multidimensional array allocation Summary: Added missing exception path for multidimensional array allocation and use Throwable type instead of OutOfMemoryError for allocation's exception. Reviewed-by: twisti
author kvn
date Wed, 19 Dec 2012 19:21:15 -0800
parents ad5dd04754ee
children d092d1b31229
line wrap: on
line diff
--- a/src/share/vm/opto/graphKit.cpp	Wed Dec 19 15:40:35 2012 -0800
+++ b/src/share/vm/opto/graphKit.cpp	Wed Dec 19 19:21:15 2012 -0800
@@ -2990,7 +2990,7 @@
   set_control( _gvn.transform(new (C) ProjNode(allocx, TypeFunc::Control) ) );
   // create memory projection for i_o
   set_memory ( _gvn.transform( new (C) ProjNode(allocx, TypeFunc::Memory, true) ), rawidx );
-  make_slow_call_ex(allocx, env()->OutOfMemoryError_klass(), true);
+  make_slow_call_ex(allocx, env()->Throwable_klass(), true);
 
   // create a memory projection as for the normal control path
   Node* malloc = _gvn.transform(new (C) ProjNode(allocx, TypeFunc::Memory));