On Wed, 8 Sep 2021 11:40:25 GMT, Leo Korinth <lkori...@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