Integrated: Use single-condition instance type checks

Stefan Karlsson stefank at openjdk.java.net
Thu Mar 24 09:21:57 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.

This pull request has now been integrated.

Changeset: b9d8aff6
Author:    Stefan Karlsson <stefank at openjdk.org>
Committer: Erik Österlund <eosterlund at openjdk.org>
URL:       https://git.openjdk.java.net/loom/commit/b9d8aff6db6c77b6c88643925512a9240783e766
Stats:     79 lines in 15 files changed: 4 ins; 33 del; 42 mod

Use single-condition instance type checks

Reviewed-by: eosterlund, tschatzl, coleenp

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

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


More information about the loom-dev mailing list