changeset 52510:43081c586d77

8210803: Compilation failure in codeBlob.cpp for Windows 32-bit Summary: Added ordinary operator delete declaration within class Reviewed-by: kvn, rlichten, thartmann
author rraghavan
date Mon, 12 Nov 2018 01:15:16 -0800
parents 5d1d07b72f15
children 1a6aeca4a8c9
files src/hotspot/share/code/codeBlob.hpp
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/code/codeBlob.hpp	Mon Nov 12 13:31:41 2018 +0530
+++ b/src/hotspot/share/code/codeBlob.hpp	Mon Nov 12 01:15:16 2018 -0800
@@ -393,6 +393,10 @@
   BufferBlob(const char* name, int size);
   BufferBlob(const char* name, int size, CodeBuffer* cb);
 
+  // This ordinary operator delete is needed even though not used, so the
+  // below two-argument operator delete will be treated as a placement
+  // delete rather than an ordinary sized delete; see C++14 3.7.4.2/p2.
+  void operator delete(void* p);
   void* operator new(size_t s, unsigned size) throw();
 
  public:
@@ -476,6 +480,10 @@
     bool        caller_must_gc_arguments
   );
 
+  // This ordinary operator delete is needed even though not used, so the
+  // below two-argument operator delete will be treated as a placement
+  // delete rather than an ordinary sized delete; see C++14 3.7.4.2/p2.
+  void operator delete(void* p);
   void* operator new(size_t s, unsigned size) throw();
 
  public:
@@ -511,6 +519,10 @@
   friend class VMStructs;
 
  protected:
+  // This ordinary operator delete is needed even though not used, so the
+  // below two-argument operator delete will be treated as a placement
+  // delete rather than an ordinary sized delete; see C++14 3.7.4.2/p2.
+  void operator delete(void* p);
   void* operator new(size_t s, unsigned size) throw();
 
  public: