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

Z: Accelerate inlining Thread.onSpinWait() #20714

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ehsankianifar
Copy link
Contributor

Thread.onSpinWait() is a simple nop instruction on z. Enabled by default. Disable by setting the TR_noPauseOnSpinWait environment variable.

Accelerate inlining Thread.onSpinWait() on z.
Thread.onSpinWait() is a simple `nop` instruction on z.
Enabled by default. Disable by setting the `TR_noPauseOnSpinWait`
environment variable.

Signed-off-by: Ehsan Kiani Far <[email protected]>
TR::Instruction* cursor = new (cg->trHeapMemory()) TR::S390NOPInstruction(TR::InstOpCode::NOP, 2, node, cg);

TR::Compilation *comp = cg->comp();
static const bool printIt = feGetEnv("TR_showPauseOnSpinWait") != NULL;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TR_showPauseOnSpinWait would be a little misleading since "PAUSE" instruction is x86 specific but I have to use the same env variable because it was used in shared code and x86!

@ehsankianifar
Copy link
Contributor Author

@r30shah I renamed the branch and it caused the older PR to close. I opened this one with a different branch name. Please take a look.
I am running builds and tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant