Skip to content

yield() should not allocate #57736

Closed as not planned
Closed as not planned
@PatrickHaecker

Description

@PatrickHaecker
julia> @allocated yield()
64

In an ideal world, yield() should not allocate. I am not sure whether this is possible in general. But my gut feeling is that it should at least be possible when yield() is effectively a no-op as the same task continues.

Maybe being able to preallocate the workqueue so that it does not allocate in practice could be an option?

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidIndicates that an issue or pull request is no longer relevantmultithreadingBase.Threads and related functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions