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

Add Power-specific relocation types needed for SVM AOT #4781

Merged
merged 1 commit into from
Feb 20, 2019

Conversation

aviansie-ben
Copy link
Contributor

For the Power codegen to work correctly with the newly implemented
Symbol Validation Manager for AOT, a couple new relocation types need to
be added:

  1. TR_DiscontiguousSymbolFromManager represents a discontiguous load
    sequence that needs to be relocated with a symbol from the SVM
  2. TR_ResolvedTrampolines represents the need to reserve a trampoline
    for a resolved method

Signed-off-by: Ben Thomas ben@benthomas.ca

@@ -3911,12 +3918,12 @@ TR_RelocationRecordSymbolFromManager::applyRelocation(TR_RelocationRuntime *relo
if (reloRuntime->reloLogger()->logEnabled())
{
reloRuntime->reloLogger()->printf("%s\n", name());
reloRuntime->reloLogger()->printf("\tpreparePrivateData: symbol %p\n", symbol);
reloRuntime->reloLogger()->printf("\tapplyRelocation: symbol %p\n", symbol);
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@dsouzai dsouzai left a comment

Choose a reason for hiding this comment

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

You should also add the sizes of the binary templates to TR_RelocationRecord::_relocationRecordHeaderSizeTable since that will be the canonical table of relo header sizes once all the AOT consolidation work is done.

For the Power codegen to work correctly with the newly implemented
Symbol Validation Manager for AOT, a couple new relocation types need to
be added:

1. TR_DiscontiguousSymbolFromManager represents a discontiguous load
   sequence that needs to be relocated with a symbol from the SVM
2. TR_ResolvedTrampolines represents the need to reserve a trampoline
   for a resolved method

Signed-off-by: Ben Thomas <ben@benthomas.ca>
@aviansie-ben
Copy link
Contributor Author

@dsouzai All the issues you brought up should be fixed now

@dsouzai
Copy link
Contributor

dsouzai commented Feb 20, 2019

jenkins test sanity xlinux,zlinux,plinux,aix jdk8,jdk11

@dsouzai
Copy link
Contributor

dsouzai commented Feb 20, 2019

jenkins test sanity zlinux jdk8

@dsouzai
Copy link
Contributor

dsouzai commented Feb 20, 2019

15:14:17 TOTAL: 192   EXECUTED: 114   PASSED: 114   FAILED: 0   SKIPPED: 78
15:14:17 ALL TESTS PASSED

All tests passed; I guess the "build failed" is because of a Jenkins hiccup.

@dsouzai dsouzai merged commit f4c2e8e into eclipse-openj9:master Feb 20, 2019
@aviansie-ben aviansie-ben deleted the power-aot-new-relos branch February 21, 2019 15:16
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