RFR: Loom checked stack chunk casts [v2]

Erik Österlund eosterlund at openjdk.java.net
Thu Mar 24 08:28:05 UTC 2022


On Thu, 24 Mar 2022 07:19:26 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

>> Replace raw oop to stackChunkOops casts with calls to a ::cast function which asserts that the oops is a stackChunkOop. This is similar to what we do for other types like *Klass, *CollectedHeap, *Thread, ...
>> 
>> Given that we assert when converting oops to stackChunkOops, I've also removed the redundant is_stackChunk asserts.
>
> Stefan Karlsson has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Don't cast nullptr to oop

Looks good.

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

Marked as reviewed by eosterlund (Committer).

PR: https://git.openjdk.java.net/loom/pull/119


More information about the loom-dev mailing list