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

Kim Barrett kbarrett at openjdk.java.net
Mon Aug 9 23:44:29 UTC 2021


On Mon, 9 Aug 2021 20:01:49 GMT, Leo Korinth <lkorinth at openjdk.org> wrote:

> When I am thinking about it more I suspect and fear that that the scalar "new" does not work correctly either. What guarantee do we have that the memory area will not be overwritten by the constructor? Just because we do not explicitly write over the memory does not give us any guarantee that the constructor will leave the field untouched, right?

[Not a review, at least not yet, just a drive-by comment.]
See the comment for the implementation of ResourceObj::initialize_allocation_info().

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

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


More information about the hotspot-runtime-dev mailing list