diff src/share/vm/runtime/reflection.cpp @ 10379:efe8b7d64424

6726963: multi_allocate() call does not CHECK_NULL and causes crash in fastdebug bits Summary: Using CHECK_NULL when calling multi_allocate() from the corresponding reflection code; added test for this condition Reviewed-by: dholmes, minqi Contributed-by: Mikhailo Seledtsov <mikhailo.seledtsov@oracle.com>
author ctornqvi
date Fri, 31 May 2013 20:24:58 +0200
parents a589c78a8811
children 4552a7633a07
line wrap: on
line diff
--- a/src/share/vm/runtime/reflection.cpp	Fri May 31 13:02:24 2013 +0200
+++ b/src/share/vm/runtime/reflection.cpp	Fri May 31 20:24:58 2013 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -375,7 +375,7 @@
     }
   }
   klass = klass->array_klass(dim, CHECK_NULL);
-  oop obj = ArrayKlass::cast(klass)->multi_allocate(len, dimensions, THREAD);
+  oop obj = ArrayKlass::cast(klass)->multi_allocate(len, dimensions, CHECK_NULL);
   assert(obj->is_array(), "just checking");
   return arrayOop(obj);
 }