Skip to content

Fix is{Anonymous,Hidden}Class() for 64-bit big-endian JITServer #21925

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
merged 1 commit into from
May 22, 2025

Conversation

jdmpapin
Copy link
Contributor

For CLASSINFO_ROMCLASS_EXTRAMODIFIERS the result is uint32_t, but these call sites were passing a pointer to uintptr_t, which on 64-bit is twice as big as necessary. On a big-endian system, the result would be stored to the high half of the variable, leaving the low half zero, so these functions would return false for all classes.

For CLASSINFO_ROMCLASS_EXTRAMODIFIERS the result is uint32_t, but these
call sites were passing a pointer to uintptr_t, which on 64-bit is twice
as big as necessary. On a big-endian system, the result would be stored
to the high half of the variable, leaving the low half zero, so these
functions would return false for all classes.
@jdmpapin jdmpapin requested a review from dsouzai as a code owner May 21, 2025 18:32
@jdmpapin jdmpapin added the comp:jitserver Artifacts related to JIT-as-a-Service project label May 21, 2025
@jdmpapin
Copy link
Contributor Author

@dsouzai, could you please review?

@dsouzai dsouzai self-assigned this May 21, 2025
@dsouzai
Copy link
Contributor

dsouzai commented May 21, 2025

jenkins test sanity.functional xlinuxjit,plinuxjit,zlinuxjit jdk21

@dsouzai dsouzai merged commit c231456 into eclipse-openj9:master May 22, 2025
9 checks passed
@github-project-automation github-project-automation bot moved this from In progress to Done in JIT as a Service May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:jitserver Artifacts related to JIT-as-a-Service project
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants