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

Change default -Xthr:spin1 value for PPC64BE #10636

Merged
merged 1 commit into from
Sep 18, 2020

Conversation

midronij
Copy link
Contributor

@midronij midronij commented Sep 17, 2020

Currently, the xlC compiler generates a bunch of extra nops in the spinOnFlatLock routine, throwing off the spinning timing and causing a ~5% regression. This change modifies the default spin count to 151 for PPC64BE (previously 96 for all PPC machines), which restores the proper timing and fixes the regression.

Signed-off-by: Jackie Midroni jackie.midroni@mail.utoronto.ca

@pshipton
Copy link
Member

pshipton commented Sep 17, 2020

Pls provide the details of the compiler versions which changed and caused the problem. I see this change affects both AIX and plinux, and isn't specific to a version of Java. Possibly it needs to be more specific.

These are the current versions used to build:
AIX OpenJ9 Java 8,11 xlC 13.1.3
AIX OpenJ9 Java 14+ xlC 16.1.0
AIX IBM Java 8 xlC 12.1

plinux BE xlC 13.1 "recently" changed from 12.1 from SR6 FP5

runtime/vm/vmthread.c Outdated Show resolved Hide resolved
Currently the xlC compiler generates a bunch of extra nops in the
spinOnFlatLock routine, throwing off the spinning timing and causing
a ~5% regression. This change modifies the default spin count to 151
for PPC64BE (previously 96 for all PPC machines), which restores the
proper timing and fixes the regression.

Signed-off-by: Jackie Midroni <jackie.midroni@mail.utoronto.ca>
@midronij
Copy link
Contributor Author

midronij commented Sep 17, 2020

Pls provide the details of the compiler versions which changed and caused the problem

@pshipton My bad, my description wasn't clear enough. This regression was caused by this change (eclipse/omr@6cbc638), not by a change to the version of xlC used

@pshipton
Copy link
Member

jenkins compile plinux jdk8

@pshipton pshipton merged commit 1f73f3f into eclipse-openj9:master Sep 18, 2020
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.

None yet

3 participants