Skip to content

wgpu-core contains deadlocks #5572

@jimblandy

Description

@jimblandy

In the process of developing #5539, we identified at least one deadlock in wgpu-core, and I suspect there are others. We should fix these deadlocks, updating lock::rank as we go, and enable the lock::ranked run-time validation by default in debug builds (#5937).

The presence of deadlocks means that no cycle-free ranking of locks exists that won't cause panics in our current tests and examples. This means that the ranking defined in lock::rank must either remain incomplete, or we should change the implementation to permit ranking cycles for the time being. The latter option is unappealing, so we plan to land #5539 with an incomplete ranking, meaning that enabling the validate-locks feature will cause panics for now.

Issues for specific deadlocks:

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions