Skip to content

Better management for Poisoned Locks #43

Open
@gzurl

Description

@gzurl

Is your feature request related to a problem? Please describe.

Currently, if a lock is poisoned on the Rust side, the code will panic.
We might want to improve this behavior by returning an error.

See the original discussion at #41 (comment)

Since there is some literature written and different options about how to deal with poisoned locks, I'm opening this issue for an open discussion.

Describe the solution you'd like

@ereslibre suggested:

let mut executionctxs = WASM_RUNTIME_EXECUTIONCTXS.write().map_err(|e| format!("error: {:?}", e))?;

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions