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

Relocatable Compilation support for Method Handles in Eclipse OpenJ9 #5897

Merged
merged 2 commits into from
Apr 8, 2021

Conversation

dsouzai
Copy link
Contributor

@dsouzai dsouzai commented Apr 5, 2021

This PR contains changes necessary to support the Method Handle feature in Eclipse OpenJ9 (eclipse-openj9/openj9#4850), namely:

  • Adding a new relo type, which is used to relocate special methods known to the VM.
  • Ensuring consistency between the isInterpreted flag between the resolved method and resolved method symbol.

This relo type is needed in Eclipse OpenJ9 to relocate method pointers
that are special and known within the VM.

Signed-off-by: Irwin D'Souza <[email protected]>
@@ -157,15 +157,17 @@ OMR::ResolvedMethodSymbol::ResolvedMethodSymbol(TR_ResolvedMethod * method, TR::
//
if ((_methodIndex > JITTED_METHOD_INDEX && !_resolvedMethod->isSameMethod(comp->getJittedMethodSymbol()->getResolvedMethod()))
|| comp->isDLT()
|| (comp->getOption(TR_UseSymbolValidationManager) && comp->compileRelocatableCode()))
|| comp->compileRelocatableCode())
Copy link
Contributor

Choose a reason for hiding this comment

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

Please fix copyright header.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Didn't OMR have at one point a copyright header checker? Do you know why it was removed?

Copy link
Contributor

Choose a reason for hiding this comment

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

Never implemented: #2254

@0xdaryl 0xdaryl self-assigned this Apr 7, 2021
In a relocatable compilation, if the resolved method denotes an
interpreted method, ensure that the resolved method symbol also denotes
it is interpreted.

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

dsouzai commented Apr 8, 2021

Copyright updated.

@0xdaryl
Copy link
Contributor

0xdaryl commented Apr 8, 2021

Jenkins build all

@0xdaryl 0xdaryl merged commit 158a15e into eclipse-omr:master Apr 8, 2021
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.

2 participants