changeset 35117:3191066d12e0

8144850: C1: operator delete needs an implementation Reviewed-by: kvn
author mdoerr
date Mon, 07 Dec 2015 18:24:24 +0100
parents 10e40ef26537
children b0e320b024c5
files hotspot/src/share/vm/c1/c1_LIRGenerator.hpp hotspot/src/share/vm/c1/c1_RangeCheckElimination.hpp
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;