1.1 --- a/src/share/vm/memory/allocation.hpp Thu Aug 22 09:39:54 2013 -0700 1.2 +++ b/src/share/vm/memory/allocation.hpp Thu Sep 05 11:04:39 2013 -0700 1.3 @@ -669,7 +669,7 @@ 1.4 NEW_RESOURCE_ARRAY_RETURN_NULL(type, 1) 1.5 1.6 #define NEW_C_HEAP_ARRAY3(type, size, memflags, pc, allocfail)\ 1.7 - (type*) AllocateHeap(size * sizeof(type), memflags, pc, allocfail) 1.8 + (type*) AllocateHeap((size) * sizeof(type), memflags, pc, allocfail) 1.9 1.10 #define NEW_C_HEAP_ARRAY2(type, size, memflags, pc)\ 1.11 (type*) (AllocateHeap((size) * sizeof(type), memflags, pc)) 1.12 @@ -678,16 +678,16 @@ 1.13 (type*) (AllocateHeap((size) * sizeof(type), memflags)) 1.14 1.15 #define NEW_C_HEAP_ARRAY2_RETURN_NULL(type, size, memflags, pc)\ 1.16 - NEW_C_HEAP_ARRAY3(type, size, memflags, pc, AllocFailStrategy::RETURN_NULL) 1.17 + NEW_C_HEAP_ARRAY3(type, (size), memflags, pc, AllocFailStrategy::RETURN_NULL) 1.18 1.19 #define NEW_C_HEAP_ARRAY_RETURN_NULL(type, size, memflags)\ 1.20 - NEW_C_HEAP_ARRAY3(type, size, memflags, (address)0, AllocFailStrategy::RETURN_NULL) 1.21 + NEW_C_HEAP_ARRAY3(type, (size), memflags, (address)0, AllocFailStrategy::RETURN_NULL) 1.22 1.23 #define REALLOC_C_HEAP_ARRAY(type, old, size, memflags)\ 1.24 - (type*) (ReallocateHeap((char*)old, (size) * sizeof(type), memflags)) 1.25 + (type*) (ReallocateHeap((char*)(old), (size) * sizeof(type), memflags)) 1.26 1.27 #define REALLOC_C_HEAP_ARRAY_RETURN_NULL(type, old, size, memflags)\ 1.28 - (type*) (ReallocateHeap((char*)old, (size) * sizeof(type), memflags, AllocFailStrategy::RETURN_NULL)) 1.29 + (type*) (ReallocateHeap((char*)(old), (size) * sizeof(type), memflags, AllocFailStrategy::RETURN_NULL)) 1.30 1.31 #define FREE_C_HEAP_ARRAY(type, old, memflags) \ 1.32 FreeHeap((char*)(old), memflags)