comparison src/share/vm/runtime/thread.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 5e3b6f79d280
children 190899198332
comparison
equal deleted inserted replaced
12145:cef1e56a4d88 12146:9758d9f36299
111 // int _exception_line; // line information for exception (debugging only) 111 // int _exception_line; // line information for exception (debugging only)
112 protected: 112 protected:
113 // Support for forcing alignment of thread objects for biased locking 113 // Support for forcing alignment of thread objects for biased locking
114 void* _real_malloc_address; 114 void* _real_malloc_address;
115 public: 115 public:
116 void* operator new(size_t size) { return allocate(size, true); } 116 void* operator new(size_t size) throw() { return allocate(size, true); }
117 void* operator new(size_t size, const std::nothrow_t& nothrow_constant) { return allocate(size, false); } 117 void* operator new(size_t size, const std::nothrow_t& nothrow_constant) throw() {
118 return allocate(size, false); }
118 void operator delete(void* p); 119 void operator delete(void* p);
119 120
120 protected: 121 protected:
121 static void* allocate(size_t size, bool throw_excpt, MEMFLAGS flags = mtThread); 122 static void* allocate(size_t size, bool throw_excpt, MEMFLAGS flags = mtThread);
122 private: 123 private: