--- old/src/hotspot/share/memory/memRegion.cpp 2020-02-14 15:55:28.886578594 +0100 +++ new/src/hotspot/share/memory/memRegion.cpp 2020-02-14 15:55:28.670574958 +0100 @@ -1,5 +1,5 @@ /* - * 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 @@ -101,20 +101,3 @@ 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); -}