RFR: 8280705: Parallel: Full gc mark stack draining should prefer to make work available to other threads

Albert Mingkun Yang ayang at openjdk.java.net
Thu Jan 27 13:37:33 UTC 2022


On Thu, 27 Jan 2022 12:49:12 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

> Hi all,
> 
>   can I get reviews for this change that improves task queue handling during queue overflow similar to JDK-8280396 for Parallel GC? Basically the change modifies the queue selection heuristics to be the same as for G1.
> 
> Testing: tier1-5, internal promotion perf testing, perf testing of some local benchmarks (BRT, optaplanner) looking for regressions
> 
> Thanks,
>   Thomas

`transfer_from_overflow_stack` tries to publish any many items as possible to the global queue (eligible for work stealing), and returns whether we have successfully popped an item from the local overflow queue. How about `publish_or_pop_overflow`?

-------------

Marked as reviewed by ayang (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/7244



More information about the hotspot-gc-dev mailing list