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

Ensure AOT Compilation in JIT Dump #10852

Merged
merged 1 commit into from
Oct 21, 2020
Merged

Conversation

dsouzai
Copy link
Contributor

@dsouzai dsouzai commented Oct 8, 2020

Ensure that if there is a crash during an AOT compilation, the JIT Dump
performs an AOT compilation as well.

Signed-off-by: Irwin D'Souza [email protected]

Ensure that if there is a crash during an AOT compilation, the JIT Dump
performs an AOT compilation as well.

Signed-off-by: Irwin D'Souza <[email protected]>
@dsouzai
Copy link
Contributor Author

dsouzai commented Oct 8, 2020

@mpirvu could you please take a look?

jittedMethodsOnStack[i]._optLevel,
false,
jittedMethodsOnStack[i]._oldStartPC,
isAOTBody,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should note, I don't think this will actually result in an AOT compilation; this is because the method is already in the SCC, so the control code will probably just try to do an AOT load. However, if the AOT compilation was also done in the current JVM, it would be nice to be able to log that compilation as well, though this would require keeping track of the methods that were AOT compiled by the current JVM.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will you add more code to bypass those AOT loads? Otherwise the current change does not achieve its intended effect.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I figured I would leave that for a future PR, since trying to do that in this PR might result in quite a big PR.

Copy link
Contributor

@mpirvu mpirvu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if followed by another PR to actually allow AOT compilations to be performed by the diagnostic thread.
@fjeremic You may want to have a look at this as well given your vested interest in the JITDump facility.

@mpirvu mpirvu self-assigned this Oct 21, 2020
@mpirvu
Copy link
Contributor

mpirvu commented Oct 21, 2020

jenkins test sanity all jdk11

@mpirvu mpirvu merged commit 7ec0121 into eclipse-openj9:master Oct 21, 2020
@dsouzai dsouzai deleted the jitDumpAOT branch January 4, 2021 22:37
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.

3 participants