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

(0.38) Handle lock reservation in single thread mode #16840

Merged
merged 1 commit into from Mar 7, 2023

Conversation

tajila
Copy link
Contributor

@tajila tajila commented Mar 7, 2023

(0.38) Handle lock reservation in single thread mode

Cancel reservation on blocking enter in single thread mode to prevent throwing blocking exceptions on uncontended acquires. This PR just attempts to cancel the reservation once and acquire the lock again. We only need to attempt the cancel once since its single thread mode.

Cancel reservation on blocking enter in single thread mode to prevent throwing blocking exceptions on uncontended acquires.
This PR just attempts to cancel the reservation once and acquire the lock again. We only need to attempt the cancel once since its single thread mode.

Signed-off-by: Tobi Ajila <atobia@ca.ibm.com>
@tajila tajila requested a review from pshipton March 7, 2023 13:51
@tajila
Copy link
Contributor Author

tajila commented Mar 7, 2023

@pshipton Please review and merge

@tajila tajila requested review from babsingh and removed request for pshipton March 7, 2023 15:02
@tajila
Copy link
Contributor Author

tajila commented Mar 7, 2023

@babsingh Peter is away, can you take a look

@tajila
Copy link
Contributor Author

tajila commented Mar 7, 2023

backport of #16812

Copy link
Contributor

@babsingh babsingh left a comment

Choose a reason for hiding this comment

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

also backports #16819

@babsingh babsingh merged commit 28c3b2a into eclipse-openj9:v0.38.0-release Mar 7, 2023
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.

None yet

2 participants