Skip to content

[0.46.0] Mark unlikely blocks as cold for Unsafe.{get|put}* #19681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

hzongaro
Copy link
Member

In generating inline IL for Unsafe.get* and Unsafe.put* methods in the case where no conversion is needed, the blocks that test whether the object reference is null or whether the object's type is java/lang/Class had their frequencies set to VERSIONED_COLD_BLOCK_COUNT, copied from the indirect access block. However, unlike the indirect access block, those two blocks were not marked explicitly as cold. This change corrects that.

This is a port of pull request #19676 to the v0.46.0-release branch.

In generating inline IL for Unsafe.get* and Unsafe.put* methods in the
case where no conversion is needed, the blocks that test whether the
object reference is null or whether the object's type is java/lang/Class
had their frequencies set to VERSIONED_COLD_BLOCK_COUNT, copied from the
indirect access block.  However, unlike the indirect access block, those
two blocks were not marked explicitly as cold.  This change corrects
that.

Signed-off-by:  Henry Zongaro <[email protected]>
@hzongaro hzongaro changed the title Mark unlikely blocks as cold for Unsafe.{get|put}* [0.46.0] Mark unlikely blocks as cold for Unsafe.{get|put}* Jun 11, 2024
@hzongaro hzongaro marked this pull request as ready for review June 11, 2024 21:40
@hzongaro
Copy link
Member Author

@vijaysun-omr, may I ask you to consider this for the 0.46.0 release?

@vijaysun-omr
Copy link
Contributor

Very small change, and checks have passed on the head stream.

@vijaysun-omr vijaysun-omr merged commit 8256945 into eclipse-openj9:v0.46.0-release Jun 11, 2024
@hzongaro hzongaro deleted the mark-blocks-cold-v0.46.0 branch June 12, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants