RFR: Use single-condition instance type checks
Erik Österlund
eosterlund at openjdk.java.net
Wed Mar 23 11:26:48 UTC 2022
On Wed, 23 Mar 2022 10:41:41 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:
> Loom requires specialized code for stackChunks objects when marking/copying objects. This adds extra checks for every visited object. The current implementation checks both the layout helper, then checks the _kind flag. I suggest that we reimplement this as a single check against the Klass::_id field.
>
> This change would probably be a good cleanup for the mainline.
Looks good.
-------------
Marked as reviewed by eosterlund (Committer).
PR: https://git.openjdk.java.net/loom/pull/118
More information about the loom-dev
mailing list