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

Provided an error code for "compilationAotHasInvokeSpecialInterface" to retry as JIT compilation #11018

Merged
merged 1 commit into from
Oct 29, 2020

Conversation

EmanElsaban
Copy link
Contributor

Caught the exception "AOTHasInvokeSpecialInInterface", which is thrown when a method that has an invoke special in an interface is AOT Compiled, in processException to retry the compilation as a JIT compilation.
issue: #11011

Signed-off-by: Eman Elsabban eman.elsaban1@gmail.com

@EmanElsaban EmanElsaban changed the title Provided an error code for "compilationAotHasInvokeSpecialInterface" to retry compilation Provided an error code for "compilationAotHasInvokeSpecialInterface" to retry as JIT compilation Oct 28, 2020
@EmanElsaban
Copy link
Contributor Author

@mpirvu Ready for review. Thanks.

@mpirvu mpirvu linked an issue Oct 28, 2020 that may be closed by this pull request
@mpirvu mpirvu self-assigned this Oct 28, 2020
@mpirvu mpirvu self-requested a review October 28, 2020 14:28
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. Just a small comment around error code definitions

@@ -86,6 +86,7 @@ typedef enum {
compilationStreamVersionIncompatible = compilationFirstJITServerFailure+3,
compilationStreamInterrupted = compilationFirstJITServerFailure+4,
#endif /* defined(J9VM_OPT_JITSERVER) */
compilationAotHasInvokeSpecialInterface = 60,
Copy link
Contributor

Choose a reason for hiding this comment

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

This is going to be harder to maintain if we add or delete JITServer related failures. Maybe add a compilationLastJITServerFailure and start counting from there.
Even better, don't add any number; let the compiler do the counting. Just add a comment with the supposed value.

…essException

Caught the exception "AOTHasInvokeSpecialInInterface" in processException to retry the compilation
as a JIT compilation.
issue: eclipse-openj9#11011

Signed-off-by: Eman Elsabban <eman.elsaban1@gmail.com>
@mpirvu
Copy link
Contributor

mpirvu commented Oct 29, 2020

jenkins test sanity all jdk11

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.

Some AOT compilations that fail are not retried
2 participants