mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 22:04:51 +02:00
6973963: SEGV in ciBlock::start_bci() with EA
Added more checks into ResourceObj and growableArray to verify correctness of allocation type. Reviewed-by: never, coleenp, dholmes
This commit is contained in:
parent
f0b6dc4e4f
commit
5bed80aab9
17 changed files with 128 additions and 43 deletions
|
@ -278,7 +278,7 @@ class CodeBuffer: public StackObj {
|
|||
// special case during expansion which is handled internally. This
|
||||
// is done to guarantee proper cleanup of resources.
|
||||
void* operator new(size_t size) { return ResourceObj::operator new(size); }
|
||||
void operator delete(void* p) { ResourceObj::operator delete(p); }
|
||||
void operator delete(void* p) { ShouldNotCallThis(); }
|
||||
|
||||
public:
|
||||
typedef int csize_t; // code size type; would be size_t except for history
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue