Skip to content
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

Simplify ArrayStoreCHK evaluator #11530

Merged

Conversation

aviansie-ben
Copy link
Contributor

Previously, the evaluator for ArrayStoreCHK included duplicate code for
performing write barriers. While this did provide one small optimization
benefit (it avoided performing two null checks for a certain kind of
write barrier), it required that a lot of very complex code for
performing write barriers be duplicated and would make changes to this
code needlessly difficult due to the way that support is currently
written.

While it should be possible to reintroduce this optimization in the
future, in the interests of simplicity while the write barrier code is
undergoing some modifications, this code has been deduplicated by having
the ArrayStoreCHK evaluator defer to the awrtbari evaluator to perform
the write barrier.

Signed-off-by: Ben Thomas [email protected]

Previously, the evaluator for ArrayStoreCHK included duplicate code for
performing write barriers. While this did provide one small optimization
benefit (it avoided performing two null checks for a certain kind of
write barrier), it required that a lot of very complex code for
performing write barriers be duplicated and would make changes to this
code needlessly difficult due to the way that support is currently
written.

While it should be possible to reintroduce this optimization in the
future, in the interests of simplicity while the write barrier code is
undergoing some modifications, this code has been deduplicated by having
the ArrayStoreCHK evaluator defer to the awrtbari evaluator to perform
the write barrier.

Signed-off-by: Ben Thomas <[email protected]>
@gita-omr
Copy link
Contributor

Jenkins test sanity plinux,aix jdk8,jdk11

@gita-omr gita-omr merged commit d4ce286 into eclipse-openj9:master Dec 22, 2020
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