RFR: 8321242: Enable WorkerThreads to run tasks in caller thread [v2]
Aleksey Shipilev
shade at openjdk.org
Wed Dec 6 08:56:36 UTC 2023
On Wed, 6 Dec 2023 08:49:08 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:
> The code might also become a little bit easier with less special-case bookkeeping if the caller tried to claim tasks (with trywait), instead of pre-decrementing _num_finishes. I'd like to see at least a prototype of that before we integrate the current solution.
Right, let me try!
> W.r.t. the priorities. I'm not convinced that it is worth adding the code to change the priorities. I'd like to see a proper use-case where this matters, esp. if we let the caller compete to claim the tasks from the other workers.
Kim asked for it. I am on the fence about that too, especially given we might be losing some time messing with priorities. I am willing to take that part out, if we are in consensus that priority adjustments are not needed.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16945#issuecomment-1842452276
More information about the hotspot-gc-dev
mailing list