reactor / reactor-core

Non-Blocking Reactive Foundation for the JVM
http://projectreactor.io
Apache License 2.0
4.99k stars 1.21k forks source link

Fix ThreadPerTaskScheduler busyness accounting #3859

Closed chemicL closed 3 months ago

chemicL commented 3 months ago

This change prevents the same BoundedElasticThreadPerTaskScheduler being picked up when the maximum number of Virtual Threads are already being executed in parallel. The consequence of improper busyness accounting was that tasks were executed sequentially instead of being run in parallel because the same Worker was being picked by operators.

Resolves #3857