diff 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
line wrap: on
line diff
--- a/src/share/vm/asm/codeBuffer.hpp	Fri Jul 30 10:21:15 2010 -0700
+++ b/src/share/vm/asm/codeBuffer.hpp	Tue Aug 03 15:55:03 2010 -0700
@@ -278,7 +278,7 @@
   // 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