[Mesa-dev] [Bug 98172] Concurrent call to glClientWaitSync results in segfault in one of the waiters.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Oct 25 13:28:19 UTC 2016


--- Comment #49 from Suzuki, Shinji <shinji.suzuki at gmail.com> ---
(In reply to Marek Olšák from comment #47)
> What was wrong with the initial mutex idea? I think the solution in comment
> 22 is sufficient to close this bug.
I did not like added storage overhead of containing a mutex and CPU overhead of
initialization and destruction of the mutex even for single threaded execution.
Also I wonder if the lock needed to be held while so->fence is inspected &
duplicated. (Per sync-object mutex poses less contention than using
ctx->Shared.Mutex therefore this point is not worth bothering about.)
However I can't see anything wrong with the fix.

You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161025/79aff50b/attachment.html>

More information about the mesa-dev mailing list