[glib/wip/antoniof/fallback-timezone-cache-lookup] WIP debugging BSD failure




commit 9769ada3b78f8e7330ae4bbb032502eeef6d358a
Author: Philip Withnall <pwithnall endlessos org>
Date:   Thu Oct 15 12:24:55 2020 +0100

    WIP debugging BSD failure
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 glib/gtimezone.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/glib/gtimezone.c b/glib/gtimezone.c
index 8e38bb549..085e87eed 100644
--- a/glib/gtimezone.c
+++ b/glib/gtimezone.c
@@ -505,6 +505,8 @@ zone_identifier_unix (void)
 out:
   g_free (canonical_path);
 
+g_message ("%s: %s (%p)", G_STRFUNC, resolved_identifier, resolved_identifier);
+
   return resolved_identifier;
 }
 
@@ -1704,7 +1706,10 @@ g_time_zone_new (const gchar *identifier)
         {
           /* Flush default if changed */
           if (g_strcmp0 (tz_default->name, resolved_identifier))
-            g_clear_pointer (&tz_default, g_time_zone_unref);
+            {
+              g_message ("%s: Flushing tz_default %s %s", G_STRFUNC, tz_default->name, resolved_identifier);
+              g_clear_pointer (&tz_default, g_time_zone_unref);
+            }
           else
             {
               tz = g_time_zone_ref (tz_default);
@@ -1793,6 +1798,7 @@ g_time_zone_new (const gchar *identifier)
         {
           /* Caching reference */
           g_atomic_int_inc (&tz->ref_count);
+          g_message ("%s: Caching tz_default from %p to %s (%p) %s", G_STRFUNC, tz_default, tz->name, tz, 
resolved_identifier);
           tz_default = tz;
         }
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]