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

Leo Korinth lkorinth at openjdk.java.net
Wed Sep 8 13:00:06 UTC 2021


On Wed, 8 Sep 2021 11:40:25 GMT, Leo Korinth <lkorinth at openjdk.org> wrote:

>> I added a `set_type` method that ensures that the `_thread_last_allocated` always transition over a `STACK_OR_EMBEDDED`. I did *not* create a PUSH/POP macro pair because i believe it would give the false impression that we are doing a stack operation. 
>> 
>> Other than that I also made `allocation_type` use a `u8` as backing type. I also removed the now unused `allocation_mask` and the now unimportant detail that `STACK_OR_EMBEDDED = 0`.
>
> 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.

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

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


More information about the serviceability-dev mailing list