Got rid of some debug code.
authorNathan Ricci <naricc@microsoft.com>
Wed, 21 Aug 2019 17:55:20 +0000 (13:55 -0400)
committerNathan Ricci <naricc@microsoft.com>
Wed, 21 Aug 2019 17:55:20 +0000 (13:55 -0400)
Commit migrated from https://github.com/mono/mono/commit/cfb4afff4372fa129869afc9a30aed8d7264eed5

src/mono/mono/sgen/sgen-alloc.c

index e4f07bb..73688cd 100644 (file)
@@ -406,9 +406,6 @@ sgen_try_alloc_obj_nolock (GCVTable vtable, size_t size)
        return (GCObject*)p;
 }
 
-
-gboolean sgen_debug_null = 0;
-
 GCObject*
 sgen_alloc_obj (GCVTable vtable, size_t size)
 {
@@ -450,10 +447,6 @@ sgen_alloc_obj (GCVTable vtable, size_t size)
        res = sgen_alloc_obj_nolock (vtable, size);
        UNLOCK_GC;
 
-       if (! res)
-       {
-               sgen_debug_null = 1;
-       }
        return res;
 }