RFR: 8231356: Fix broken ResourceObj::operator new[] in debug builds [v2]

Leo Korinth lkorinth at openjdk.java.net
Mon Sep 6 14:03:46 UTC 2021


On Wed, 11 Aug 2021 12:30:45 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

>> Leo Korinth has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Remove all other new [] operators in RsourceObj and the delete [] operator as well
>
> src/hotspot/share/memory/allocation.hpp line 444:
> 
>> 442:   }
>> 443: 
>> 444:   void* operator new [](size_t size) throw() = delete;
> 
> I think it should suffice to `delete` this one, with the others completely removed.  I think that name lookup will find this, and one will either get an error because the arguments don't match or because they do match to a deleted function.

Sorry for the delay, can I keep all `= delete`? I have an idea how to fix them in the future.

-------------

PR: https://git.openjdk.java.net/jdk/pull/5055


More information about the hotspot-runtime-dev mailing list