On Tue, 3 Aug 2021 06:38:55 GMT, David Holmes <dhol...@openjdk.org> wrote:
>> I was thinking about the same. If we always use _threadObj() then there is >> no need to make sure the threadObj is still valid. > > I'm not quite sure what point is being made here. We don't have to do > anything to "make sure the threadObj is still valid" as we don't have any > code here that could expose a "naked oop". We only need/want to use a handle > when we have to ensure the oop is preserved across calls. That is not the > case here. I agree, it is not the case here. Thanks. ------------- PR: https://git.openjdk.java.net/jdk/pull/4921