Skip to content

Tasks getting starved when trying to create HashMaps #11102

Closed
@jfager

Description

@jfager

It's pretty easy to starve a task that wants to create a HashMap by having a busy task somewhere else. This appears to be caused by HashMap's need for some random numbers.

Slapping #[no_uv] on the crate makes it better, but not a great solution at this point due to the other resulting limitations.

Example code w/ some explanation at https://gist.github.com/jfager/8072694.

I'm on OSX 10.8.5, using rustc built from b3cee62.

cc @alexcrichton

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions