kotlinx.coroutines icon indicating copy to clipboard operation
kotlinx.coroutines copied to clipboard

CoroutineScheduler: do not re-add stolen task to the head of the WorkerQueue where the task can be stolen from again

Open qwwdfsad opened this issue 3 years ago • 0 comments
trafficstars

We should hand it directly to the stealing worker without intermediate stores.

Apart from code being more straightforward, it also saves us at least 2 CASes on a fairly contended memory location

qwwdfsad avatar Aug 22 '22 16:08 qwwdfsad