comparison src/share/vm/utilities/array.hpp @ 12146:9758d9f36299

8021954: VM SIGSEGV during classloading on MacOS; hs_err_pid file produced Summary: declare all user-defined operator new()s within Hotspot code with the empty throw() exception specification Reviewed-by: coleenp, twisti, dholmes, hseigel, dcubed, kvn, ccheung Contributed-by: lois.foltan@oracle.com
author coleenp
date Thu, 29 Aug 2013 18:56:29 -0400
parents a1ebd310d5c1
children de059a14e159
comparison
equal deleted inserted replaced
12145:cef1e56a4d88 12146:9758d9f36299
315 private: 315 private:
316 // Turn off copy constructor and assignment operator. 316 // Turn off copy constructor and assignment operator.
317 Array(const Array<T>&); 317 Array(const Array<T>&);
318 void operator=(const Array<T>&); 318 void operator=(const Array<T>&);
319 319
320 void* operator new(size_t size, ClassLoaderData* loader_data, int length, bool read_only, TRAPS) { 320 void* operator new(size_t size, ClassLoaderData* loader_data, int length, bool read_only, TRAPS) throw() {
321 size_t word_size = Array::size(length); 321 size_t word_size = Array::size(length);
322 return (void*) Metaspace::allocate(loader_data, word_size, read_only, 322 return (void*) Metaspace::allocate(loader_data, word_size, read_only,
323 MetaspaceObj::array_type(sizeof(T)), CHECK_NULL); 323 MetaspaceObj::array_type(sizeof(T)), CHECK_NULL);
324 } 324 }
325 325