RFR (S): 8155232: Augment Workgang to run task with a given number of threads
thomas.schatzl at oracle.com
Thu Apr 28 11:15:44 UTC 2016
can I have reviews for this small change that eases use of variable
number of threads for a given task?
Instead of longish
size_t new_active_threads = ...
size_t old_active_threads = gang->num_active_threads();
you can do
The method treats the existing number of active threads as the maximum
number of threads that may be used.
This is part of an effort to not hold up actual improvements on thread
usage due to trying to change where the number of active threads are
stored. The WorkGang might not be the best place to do so.
I am currently investigating several variants in JDK-8155093.
More information about the hotspot-gc-dev