hotspot/src/share/vm/memory/allocation.hpp
changeset 17081 cf52c2bc3f8c
parent 17032 61a9e303d989
child 17376 4ee999c3c007
child 18061 cd92ca4c1331
--- a/hotspot/src/share/vm/memory/allocation.hpp	Fri Apr 26 08:40:24 2013 -0700
+++ b/hotspot/src/share/vm/memory/allocation.hpp	Mon Apr 29 16:13:57 2013 -0400
@@ -539,6 +539,9 @@
 #define NEW_RESOURCE_ARRAY(type, size)\
   (type*) resource_allocate_bytes((size) * sizeof(type))
 
+#define NEW_RESOURCE_ARRAY_RETURN_NULL(type, size)\
+  (type*) resource_allocate_bytes((size) * sizeof(type), AllocFailStrategy::RETURN_NULL)
+
 #define NEW_RESOURCE_ARRAY_IN_THREAD(thread, type, size)\
   (type*) resource_allocate_bytes(thread, (size) * sizeof(type))