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
8273545: Remove Thread::is_GC_task_thread() #5442
Conversation
|
Webrevs
|
@pliden This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 2 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the
|
Looks good to me. So Worker threads could always do operations during a safepoint? They're NamedThreads so they can run across safepoints? Thanks.
What a worker thread can and can not do with regards to safepoints depends on the GC, and what WorkGang instance in that GC. In other words, there's no strong connection between the two that is true for all GCs and all WorkGangs. |
Thanks all for reviewing! /integrate |
Going to push as commit 185eaca.
Your commit was automatically rebased without conflicts. |
I propose we remove Thread::is_GC_task_thread(). It's used only in two places (one in ZGC, and one assert in ParallelGC), and those two uses can be replaced by calls to is_Worker_thread() instead. Removing is_GC_task_thread() also allows us to clean out some stuff from WorkGang/GangWorker.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/5442/head:pull/5442
$ git checkout pull/5442
Update a local copy of the PR:
$ git checkout pull/5442
$ git pull https://git.openjdk.java.net/jdk pull/5442/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 5442
View PR using the GUI difftool:
$ git pr show -t 5442
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/5442.diff