1.1 --- a/src/share/vm/memory/padded.hpp Mon Mar 24 15:30:56 2014 +0100 1.2 +++ b/src/share/vm/memory/padded.hpp Mon Mar 24 15:31:00 2014 +0100 1.3 @@ -101,4 +101,12 @@ 1.4 static T** create_unfreeable(uint rows, uint columns, size_t* allocation_size = NULL); 1.5 }; 1.6 1.7 +// Helper class to create an array of T objects. The array as a whole will 1.8 +// start at a multiple of alignment and its size will be aligned to alignment. 1.9 +template <class T, MEMFLAGS flags, size_t alignment = DEFAULT_CACHE_LINE_SIZE> 1.10 +class PaddedPrimitiveArray { 1.11 + public: 1.12 + static T* create_unfreeable(size_t length); 1.13 +}; 1.14 + 1.15 #endif // SHARE_VM_MEMORY_PADDED_HPP