comparison src/share/vm/runtime/objectMonitor.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 f2110083203d
children 63a4eb8bcd23
comparison
equal deleted inserted replaced
12145:cef1e56a4d88 12146:9758d9f36299
310 static PerfLongVariable * _sync_MonExtant ; 310 static PerfLongVariable * _sync_MonExtant ;
311 311
312 public: 312 public:
313 static int Knob_Verbose; 313 static int Knob_Verbose;
314 static int Knob_SpinLimit; 314 static int Knob_SpinLimit;
315 void* operator new (size_t size) { 315 void* operator new (size_t size) throw() {
316 return AllocateHeap(size, mtInternal); 316 return AllocateHeap(size, mtInternal);
317 } 317 }
318 void* operator new[] (size_t size) { 318 void* operator new[] (size_t size) throw() {
319 return operator new (size); 319 return operator new (size);
320 } 320 }
321 void operator delete(void* p) { 321 void operator delete(void* p) {
322 FreeHeap(p, mtInternal); 322 FreeHeap(p, mtInternal);
323 } 323 }