[w32handle] Remove unused assertions
authorLudovic Henry <ludovic@xamarin.com>
Wed, 24 Aug 2016 13:45:08 +0000 (15:45 +0200)
committerLudovic Henry <ludovic@xamarin.com>
Wed, 24 Aug 2016 14:39:16 +0000 (16:39 +0200)
mono/utils/w32handle.c

index bd98e37b702d157ae473d84c26e873e248f5c32c..5fd01a3db23a1edd6ca2804ec731a61c409919bb 100644 (file)
@@ -357,8 +357,6 @@ mono_w32handle_cleanup (void)
 static void mono_w32handle_init_handle (MonoW32HandleBase *handle,
                               MonoW32HandleType type, gpointer handle_specific)
 {
-       g_assert (!shutting_down);
-       
        handle->type = type;
        handle->signalled = FALSE;
        handle->ref = 1;
@@ -385,8 +383,6 @@ static guint32 mono_w32handle_new_internal (MonoW32HandleType type,
        static guint32 last = 0;
        gboolean retry = FALSE;
        
-       g_assert (!shutting_down);
-       
        /* A linear scan should be fast enough.  Start from the last
         * allocation, assuming that handles are allocated more often
         * than they're freed. Leave the space reserved for file