[glib: 1/9] gobject: Remove unsynchronized read of freeze_count
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [glib: 1/9] gobject: Remove unsynchronized read of freeze_count
- Date: Tue,  5 Mar 2019 11:46:53 +0000 (UTC)
commit d72192f69b92c20cd202c23cf75fe248ec2aa2dc
Author: Tomasz Miąsko <tomasz miasko gmail com>
Date:   Thu Feb 21 00:00:00 2019 +0000
    gobject: Remove unsynchronized read of freeze_count
    
    There is no need to preserve the check, since check is performed again
    while holding the notify_locks that protects freeze_count.
 gobject/gobject.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/gobject/gobject.c b/gobject/gobject.c
index de61a0481..5f23a4908 100644
--- a/gobject/gobject.c
+++ b/gobject/gobject.c
@@ -263,7 +263,6 @@ g_object_notify_queue_thaw (GObject            *object,
   GSList *slist;
   guint n_pspecs = 0;
 
-  g_return_if_fail (nqueue->freeze_count > 0);
   g_return_if_fail (g_atomic_int_get(&object->ref_count) > 0);
 
   G_LOCK(notify_lock);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]