[Mesa-dev] [Bug 92757] GL_ARB_sync objects are not properly synchronized across threads
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sat Oct 31 12:19:48 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=92757
--- Comment #1 from Ilia Mirkin <imirkin at alum.mit.edu> ---
After looking at the code briefly, it looks like _mesa_validate_sync really
needs to be _mesa_validate_sync_and_get_ref. Otherwise another thread might
delete and unref the last RefCount, deleting the object.
Not entirely sure how sharing between multiple threads is done with this, but
from the looks of it, there's no refcount acquired there. So each function has
to acquire a refcount for the duration of the call.
This is separate from fixing validate_sync to not race against adds/removes to
the hash set.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20151031/d0693e38/attachment.html>
More information about the mesa-dev
mailing list