Mercurial > hg > truffle
comparison src/share/vm/memory/allocation.hpp @ 7482:989155e2d07a
Merge with hs25-b15.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Wed, 16 Jan 2013 01:34:24 +0100 |
parents | 291ffc492eb6 32164d89fe9c |
children | 5fc51c1ecdeb |
comparison
equal
deleted
inserted
replaced
7381:6761a8f854a4 | 7482:989155e2d07a |
---|---|
203 | 203 |
204 // Base class for objects allocated on the stack only. | 204 // Base class for objects allocated on the stack only. |
205 // Calling new or delete will result in fatal error. | 205 // Calling new or delete will result in fatal error. |
206 | 206 |
207 class StackObj ALLOCATION_SUPER_CLASS_SPEC { | 207 class StackObj ALLOCATION_SUPER_CLASS_SPEC { |
208 public: | 208 private: |
209 void* operator new(size_t size); | 209 void* operator new(size_t size); |
210 void operator delete(void* p); | 210 void operator delete(void* p); |
211 }; | 211 }; |
212 | 212 |
213 // Base class for objects used as value objects. | 213 // Base class for objects used as value objects. |
227 // | 227 // |
228 // With gcc and possible other compilers the VALUE_OBJ_CLASS_SPEC can | 228 // With gcc and possible other compilers the VALUE_OBJ_CLASS_SPEC can |
229 // be defined as a an empty string "". | 229 // be defined as a an empty string "". |
230 // | 230 // |
231 class _ValueObj { | 231 class _ValueObj { |
232 public: | 232 private: |
233 void* operator new(size_t size); | 233 void* operator new(size_t size); |
234 void operator delete(void* p); | 234 void operator delete(void* p); |
235 }; | 235 }; |
236 | 236 |
237 | 237 |