GNOME Bugzilla – Bug 711756
gthreadpool: Don't pass bad data to GThreadPool sorter
Last modified: 2013-11-11 07:00:19 UTC
gthreadpool passes GUINT_TO_POINTER(1) to unused threads as a magic marker to get them to wake up. When used with a data sorter, this causes a crash. We shouldn't pass the magic marker through sorters, just queue it.
Created attachment 259389 [details] [review] gthreadpool: Don't pass bad data to GThreadPool sorter This causes sorters to crash.
Review of attachment 259389 [details] [review]: Makes sense to me! ::: glib/gthreadpool.c @@ +822,3 @@ + * So here we're sending bogus data to the pool threads, which + * should cause them each to wake up, and check the above + * pool->imediate condition. However we don't want that Minor typo, immediate.
Attachment 259389 [details] pushed as dce83ad - gthreadpool: Don't pass bad data to GThreadPool sorter