comparison src/share/vm/oops/symbol.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 d9eed26d638a
children b2e698d2276c
comparison
equal deleted inserted replaced
12145:cef1e56a4d88 12146:9758d9f36299
134 assert(index >=0 && index < _length, "symbol index overflow"); 134 assert(index >=0 && index < _length, "symbol index overflow");
135 _body[index] = value; 135 _body[index] = value;
136 } 136 }
137 137
138 Symbol(const u1* name, int length, int refcount); 138 Symbol(const u1* name, int length, int refcount);
139 void* operator new(size_t size, int len, TRAPS); 139 void* operator new(size_t size, int len, TRAPS) throw();
140 void* operator new(size_t size, int len, Arena* arena, TRAPS); 140 void* operator new(size_t size, int len, Arena* arena, TRAPS) throw();
141 void* operator new(size_t size, int len, ClassLoaderData* loader_data, TRAPS); 141 void* operator new(size_t size, int len, ClassLoaderData* loader_data, TRAPS) throw();
142 142
143 void operator delete(void* p); 143 void operator delete(void* p);
144 144
145 public: 145 public:
146 // Low-level access (used with care, since not GC-safe) 146 // Low-level access (used with care, since not GC-safe)