Mercurial > hg > truffle
diff src/share/vm/utilities/array.hpp @ 6275:957c266d8bc5
Merge with http://hg.openjdk.java.net/hsx/hsx24/hotspot/
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 21 Aug 2012 10:39:19 +0200 |
parents | d2a62e0f25eb |
children | da91efe96a93 |
line wrap: on
line diff
--- a/src/share/vm/utilities/array.hpp Mon Aug 20 15:21:31 2012 +0200 +++ b/src/share/vm/utilities/array.hpp Tue Aug 21 10:39:19 2012 +0200 @@ -79,7 +79,7 @@ }; -class CHeapArray: public CHeapObj { +template <MEMFLAGS F>class CHeapArray: public CHeapObj<F> { protected: int _length; // the number of array elements void* _data; // the array memory @@ -94,7 +94,7 @@ CHeapArray(size_t esize, int length) { assert(length >= 0, "illegal length"); _length = length; - _data = (void*) NEW_C_HEAP_ARRAY(char *, esize * length); + _data = (void*) NEW_C_HEAP_ARRAY(char *, esize * length, F); } #ifdef ASSERT