Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

8278389: SuspendibleThreadSet::_suspend_all should be volatile/atomic #9


Copy link

@tschatzl tschatzl commented Dec 10, 2021

Hi all,

can I have reviews for this change that makes SuspendibleThreadSet::_suspend_all volatile and all accesses to it use Atomic helpers?

I found that the only getter for that member is called SuspendibleThreadSet::should_yield(), which contradicts our naming rules; to keep the change minimal (and the naming discussion out of this PR because I do not feel that _suspend_all is particularly good) I introduced a private suspend_all() method.
I can of course add some renaming in this change (but then for jdk19+ only).

Testing: gha, local compilation



  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed


  • JDK-8278389: SuspendibleThreadSet::_suspend_all should be volatile/atomic


Using git

Checkout this PR locally:
$ git fetch pull/9/head:pull/9
$ git checkout pull/9

Update a local copy of the PR:
$ git checkout pull/9
$ git pull pull/9/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 9

View PR using the GUI difftool:
$ git pr show -t 9

Using diff file

Download this PR as a diff file:

Copy link

bridgekeeper bot commented Dec 10, 2021

👋 Welcome back tschatzl! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk openjdk bot added the rfr Pull request is ready for review label Dec 10, 2021
Copy link

openjdk bot commented Dec 10, 2021

@tschatzl The following label will be automatically applied to this pull request:

  • hotspot-gc

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the hotspot-gc label Dec 10, 2021
Copy link

mlbridge bot commented Dec 10, 2021


Copy link

Closing to have proper GHA testing

@tschatzl tschatzl closed this Dec 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
hotspot-gc rfr Pull request is ready for review
1 participant