< prev index next >
src/hotspot/share/memory/memRegion.cpp
Print this page
rev 58059 : imported patch 8238999-memregion-custom-operator
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2020, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -99,22 +99,5 @@
return MemRegion();
}
ShouldNotReachHere();
return MemRegion();
}
-
-void* MemRegion::operator new(size_t size) throw() {
- return (address)AllocateHeap(size, mtGC, CURRENT_PC,
- AllocFailStrategy::RETURN_NULL);
-}
-
-void* MemRegion::operator new [](size_t size) throw() {
- return (address)AllocateHeap(size, mtGC, CURRENT_PC,
- AllocFailStrategy::RETURN_NULL);
-}
-void MemRegion::operator delete(void* p) {
- FreeHeap(p);
-}
-
-void MemRegion::operator delete [](void* p) {
- FreeHeap(p);
-}
< prev index next >