Join GitHub today
[Lock] Remove released semaphore #27357
This PR remove the semaphore with
@stof unless I missed a point, the bug reported is
The test asserts that amount of semaphores used on the OS does not increase when the lock is acquired then released, regardless of the implementation.
An other way to test it would be to reproduce the reported bug. Meaning either
Do you see another way to test the behavior?
Wouldn't say so.
If your application can control the amount of distinguished resource, you should
For the record, we have exactly the same issue with the original implementation of