Re: Detect double-release of spinlock - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Detect double-release of spinlock
Date
Msg-id 2812470.1722275822@sss.pgh.pa.us
Whole thread Raw
In response to Re: Detect double-release of spinlock  (Andres Freund <andres@anarazel.de>)
Responses Re: Detect double-release of spinlock
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> However, I still don't think it's a problem to assert that the lock is held in
> in the unlock "routine". As mentioned before, the spinlock implementation
> itself has never followed the "just straight line code" rule that users of
> spinlocks are supposed to follow.

Yeah, that's fair.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Detect double-release of spinlock
Next
From: "Joel Jacobson"
Date:
Subject: Re: Optimize mul_var() for var1ndigits >= 8