RFR: Use single-condition instance type checks

Thomas Schatzl tschatzl at openjdk.java.net
Wed Mar 23 11:30:50 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.

Marked as reviewed by tschatzl (no project role).

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

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


More information about the loom-dev mailing list