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

(0.47) JIT: Detect in-place redefinition based on J9JITRedefinedClass #20065

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

tajila
Copy link
Contributor

@tajila tajila commented Aug 27, 2024

Backport of #19824

Previously, the redefinition hook would determine the relationship
between the old/new and stale/fresh status of redefined classes by
checking for TR_EnableHCR. This was a proxy for debug mode, in which
fast HCR is off because redefinition will OSR and discard the entire
code cache. Until recently, this determination was accurate because in
debug mode the VM would always redefine classes out-of-place to allow
for "extended HCR." However, extended HCR is now being deprecated, and
as of 704a781, by default it's off and redefinition is in-place.

If a class was redefined in-place unexpectedly, the hook would mix up
the old and the new class, which would result in an incorrect CH table
state.

Rather than try to predict whether redefinition is supposed to be done
in-place, the hook will now detect whether it was in fact done in-place.
@tajila tajila requested a review from dsouzai as a code owner August 27, 2024 14:35
@tajila tajila requested review from pshipton and removed request for dsouzai August 27, 2024 14:35
@pshipton pshipton merged commit bfaa3d6 into eclipse-openj9:v0.47.0-release Aug 27, 2024
2 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.

4 participants