1.1 --- a/src/share/vm/memory/allocation.hpp Fri Apr 26 08:40:24 2013 -0700 1.2 +++ b/src/share/vm/memory/allocation.hpp Mon Apr 29 16:13:57 2013 -0400 1.3 @@ -539,6 +539,9 @@ 1.4 #define NEW_RESOURCE_ARRAY(type, size)\ 1.5 (type*) resource_allocate_bytes((size) * sizeof(type)) 1.6 1.7 +#define NEW_RESOURCE_ARRAY_RETURN_NULL(type, size)\ 1.8 + (type*) resource_allocate_bytes((size) * sizeof(type), AllocFailStrategy::RETURN_NULL) 1.9 + 1.10 #define NEW_RESOURCE_ARRAY_IN_THREAD(thread, type, size)\ 1.11 (type*) resource_allocate_bytes(thread, (size) * sizeof(type)) 1.12