src/share/vm/runtime/thread.hpp

changeset 5614
9758d9f36299
parent 5424
5e3b6f79d280
child 5784
190899198332
equal deleted inserted replaced
5613:cef1e56a4d88 5614: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:

mercurial