RFR: 8269537: memset() is called after operator new [v2]

Leo Korinth lkorinth at openjdk.java.net
Fri Sep 24 08:52:54 UTC 2021


On Wed, 8 Sep 2021 12:57:18 GMT, Leo Korinth <lkorinth at openjdk.org> wrote:

>> Hmm, u8 was not what I was thinking, I will change that to a uint8_t in the next update...
>
> I hit the new assert when not on Linux, I guess it has to do with the initialization of the thread local variable.

Thanks Ioi for making me adding the assert!!! The sequencing of the allocation function and the arguments to the constructor is not what I thought, so my "solution" is not working. I am unsure how to resolve this in a good way. We could probably have a small thread local collection of (type, address) pairs, but I wonder if it is not better removing this debug information altogether. It is to my knowledge only used in GrowableArray (to limit the type of its internal allocations) and to hinder delete on resource allocated objects.

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

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


More information about the hotspot-dev mailing list