Coder Social home page Coder Social logo

skinny-mutex's People

Contributors

dpw avatar majek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

skinny-mutex's Issues

Incorrect assumption in cond_wait_cleanup.

This comment in cond_wait_cleanup didn't make sense to me:

/* Cancellation of pthread_cond_wait re-acquires fat->mutex,
 * and we have it pinned, so we can access the fat mutex
 * directly from the skinny mutex for once. */

So I decided to use a more brutal test for the wait cancellation, to see if it would pop (which it did). I pushed the test I made, and suggested fix (and comments as to why I believe the way you had it would fail) - and you can see the diff here:

master...december1981:master
(You'll note line 450: "assert(!fat->held);" in fat_mutex_release was also detected as a false positive).

Not making a pull request, as the changes were hacked together quickly to assist you in exposing the issue/working toward a proper fix.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.