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

Disable simplifying j9Class to j.l.Class to j9Class #18743

Conversation

hzongaro
Copy link
Member

Tree Simplification recognizes an indirect load that gets a java/lang/Class from a j9Class pointer, and then gets the j9Class pointer from that java/lang/Class, can be simplified to refer to the original j9Class pointer itself. However, that introduces an l2a operation which causes problems for Code Generation's l2aEvaluators, as they assume that l2a operations are only used for compressed references. Until the two different kinds of conversions of integers to addresses can be distinguished from one another — as described in eclipse-omr/omr#6508 — this transformation in Tree Simplification will be disabled.

Tree Simplification recognizes an indirect load that gets a
java/lang/Class from a j9Class, and then gets the j9Class from that
java/lang/Class can be simplified to refer to the original j9Class
pointer itself.  However, that introduces an l2a operation which causes
problems for Code Generation's l2aEvaluators, as they assume that l2a
operations are only used for compressed references.  Until the two
different kinds of conversions of integers to addresses can be
distinguished from one another, this transformation in Tree
Simplification will be disabled.
@hzongaro
Copy link
Member Author

@vijaysun-omr, may I ask you to review this change?

@vijaysun-omr
Copy link
Contributor

jenkins test sanity all jdk17

@vijaysun-omr
Copy link
Contributor

Pretty safe change since it only disables an optional transformation (that apparently runs rarely) until a design issue is resolved. Tests have passed.

@vijaysun-omr vijaysun-omr merged commit d5d5c9b into eclipse-openj9:master Jan 12, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants