Skip to content

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

@qwwdfsad

Description

@qwwdfsad

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions