Skip to content

Add support to Shuttle crate #86

Closed

Description

@ihtefyw

First, great project!

I'm currently using quick_cache in one of my component, which is multithreaded and has multiple corner cases which may deadlock. I am using shuttle to test for thread interleaving issues, a tool similar to loom but probabilistic.
While it works pretty well, unfortunately it clashes with quick_cache as it requires the application to switch to their drop-in std::sync primitives, which causes some conditions not to be detected (e.g. two shuttle threads trying to acquire a lock to the same shard, leading to a deadlock).
Would you be okay with having a feature flag "shuttle" to switch the std::sync primitives for quick_cache?

This issue is more to understand if it would be acceptable for the project authors to have such a feature. In that case, I may also submit a PR for that.

Activity

  1. arthurprs commented on Oct 6, 2025

    @arthurprs
    Owner

    Hi. Did you try the existing shuttle feature? quick_cache makes heavy use of shuttle already.

  2. ihtefyw commented on Oct 6, 2025

    @ihtefyw
    Author

    Ouch, I missed that. Enabling the shuttle feature fixed the issue.
    Maybe it would be nice to have a line in the docs about Shuttle support/compatibility, which would be a nice selling point IMO.

  3. arthurprs commented on Oct 6, 2025

    @arthurprs
    Owner

    Good suggestion, shuttle is becoming more popular, as it should. I'll get that sorted in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions