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

Delete unused code to make resolved const string CP indices irrelevant #21008

Merged

Conversation

jdmpapin
Copy link
Contributor

@jdmpapin jdmpapin commented Jan 24, 2025

  • Remove com/ibm/Compiler/Internal/Prefetch recognized methods
  • Delete TR_J9VMBase::getFieldOffset(), which is now unused

This class doesn't exist and (more or less) never did.
Previously the only call site was in ilgen when transforming recognized
methods of com/ibm/Compiler/Internal/Prefetch, which it no longer does.

With this deletion, the owning method and constant pool index of a const
string symref should only matter if it's unresolved. That will make it
possible to mark arbitrary (resolved) known object const refs as const
strings (whenever they happen to be strings).
@jdmpapin jdmpapin requested a review from dsouzai as a code owner January 24, 2025 17:01
@jdmpapin jdmpapin requested a review from 0xdaryl January 24, 2025 17:19
@jdmpapin
Copy link
Contributor Author

@0xdaryl, could you please review?

@0xdaryl 0xdaryl self-assigned this Jan 29, 2025
@0xdaryl
Copy link
Contributor

0xdaryl commented Jan 29, 2025

Did you confirm that the prefetch methods are no longer used in any class library code, even internal? If internal only then we may find a better way of dealing with these methods.

@zl-wang @r30shah : FYI. I think the prefetching code was only ever used on Power and maybe Z. Can you confirm removing them like this is fine?

@jdmpapin
Copy link
Contributor Author

I was unable to find any source code for the Prefetch class anywhere

@zl-wang
Copy link
Contributor

zl-wang commented Jan 29, 2025

have you tried IBM-JDK side? that is the only place i can think of having code outside these repositories.

@jdmpapin
Copy link
Contributor Author

Yes, but I'll check in privately to make sure I didn't overlook anything

@jdmpapin
Copy link
Contributor Author

We found no evidence that this Prefetch class exists

@0xdaryl
Copy link
Contributor

0xdaryl commented Jan 29, 2025

Jenkins test sanity xlinux,plinux,zlinux,alinux jdk21

@0xdaryl 0xdaryl merged commit a82928f into eclipse-openj9:master Jan 30, 2025
15 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.

3 participants