8144850: C1: operator delete needs an implementation
authormdoerr
Mon, 07 Dec 2015 18:24:24 +0100
changeset 35117 3191066d12e0
parent 35116 10e40ef26537
child 35118 b0e320b024c5
8144850: C1: operator delete needs an implementation Reviewed-by: kvn
hotspot/src/share/vm/c1/c1_LIRGenerator.hpp
hotspot/src/share/vm/c1/c1_RangeCheckElimination.hpp
--- a/hotspot/src/share/vm/c1/c1_LIRGenerator.hpp	Tue Dec 15 01:20:08 2015 +0100
+++ b/hotspot/src/share/vm/c1/c1_LIRGenerator.hpp	Mon Dec 07 18:24:24 2015 +0100
@@ -157,8 +157,8 @@
  private:
   void* operator new(size_t size) throw();
   void* operator new[](size_t size) throw();
-  void operator delete(void* p);
-  void operator delete[](void* p);
+  void operator delete(void* p) { ShouldNotReachHere(); }
+  void operator delete[](void* p) { ShouldNotReachHere(); }
 
   Compilation*  _compilation;
   ciMethod*     _method;    // method that we are compiling
--- a/hotspot/src/share/vm/c1/c1_RangeCheckElimination.hpp	Tue Dec 15 01:20:08 2015 +0100
+++ b/hotspot/src/share/vm/c1/c1_RangeCheckElimination.hpp	Mon Dec 07 18:24:24 2015 +0100
@@ -50,8 +50,8 @@
   private:
     void* operator new(size_t size) throw();
     void* operator new[](size_t size) throw();
-    void operator delete(void* p);
-    void operator delete[](void* p);
+    void operator delete(void* p) { ShouldNotReachHere(); }
+    void operator delete[](void* p) { ShouldNotReachHere(); }
 
     IR *_ir;
     boolArray _used;