Mercurial > hg > truffle
comparison src/share/vm/asm/codeBuffer.hpp @ 1685:0e35fa8ebccd
6973963: SEGV in ciBlock::start_bci() with EA
Summary: Added more checks into ResourceObj and growableArray to verify correctness of allocation type.
Reviewed-by: never, coleenp, dholmes
author | kvn |
---|---|
date | Tue, 03 Aug 2010 15:55:03 -0700 |
parents | e9ff18c4ace7 |
children | f4f596978298 |
comparison
equal
deleted
inserted
replaced
1684:66c5dadb4d61 | 1685:0e35fa8ebccd |
---|---|
276 private: | 276 private: |
277 // CodeBuffers must be allocated on the stack except for a single | 277 // CodeBuffers must be allocated on the stack except for a single |
278 // special case during expansion which is handled internally. This | 278 // special case during expansion which is handled internally. This |
279 // is done to guarantee proper cleanup of resources. | 279 // is done to guarantee proper cleanup of resources. |
280 void* operator new(size_t size) { return ResourceObj::operator new(size); } | 280 void* operator new(size_t size) { return ResourceObj::operator new(size); } |
281 void operator delete(void* p) { ResourceObj::operator delete(p); } | 281 void operator delete(void* p) { ShouldNotCallThis(); } |
282 | 282 |
283 public: | 283 public: |
284 typedef int csize_t; // code size type; would be size_t except for history | 284 typedef int csize_t; // code size type; would be size_t except for history |
285 enum { | 285 enum { |
286 // Here is the list of all possible sections, in order of ascending address. | 286 // Here is the list of all possible sections, in order of ascending address. |