changeset 57301:4ec9fc2b2f0d

8233359: Add global sized operator delete definitions Summary: Added new definitions. Reviewed-by: dholmes
author kbarrett
date Fri, 01 Nov 2019 16:21:17 -0400
parents 76638c631869
children 5573a7098439
files src/hotspot/share/memory/operator_new.cpp
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/memory/operator_new.cpp	Fri Nov 01 13:16:50 2019 -0700
+++ b/src/hotspot/share/memory/operator_new.cpp	Fri Nov 01 16:21:17 2019 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -89,4 +89,12 @@
   fatal("Should not call global delete []");
 }
 
+void operator delete(void* p, size_t size) throw() {
+  fatal("Should not call global sized delete");
+}
+
+void operator delete [](void* p, size_t size) throw() {
+  fatal("Should not call global sized delete []");
+}
+
 #endif // Non-product