src/share/vm/runtime/thread.hpp

changeset 4183
7b5885dadbdc
parent 4165
fb19af007ffc
child 4250
c284cf4781f0
equal deleted inserted replaced
4182:045cb62046a7 4183:7b5885dadbdc
108 protected: 108 protected:
109 // Support for forcing alignment of thread objects for biased locking 109 // Support for forcing alignment of thread objects for biased locking
110 void* _real_malloc_address; 110 void* _real_malloc_address;
111 public: 111 public:
112 void* operator new(size_t size) { return allocate(size, true); } 112 void* operator new(size_t size) { return allocate(size, true); }
113 void* operator new(size_t size, std::nothrow_t& nothrow_constant) { return allocate(size, false); } 113 void* operator new(size_t size, const std::nothrow_t& nothrow_constant) { return allocate(size, false); }
114 void operator delete(void* p); 114 void operator delete(void* p);
115 115
116 protected: 116 protected:
117 static void* allocate(size_t size, bool throw_excpt, MEMFLAGS flags = mtThread); 117 static void* allocate(size_t size, bool throw_excpt, MEMFLAGS flags = mtThread);
118 private: 118 private:

mercurial