[sgen] Use sgen_qsort instead of qsort (#3205)
authorVlad Brezae <brezaevlad@gmail.com>
Mon, 27 Jun 2016 16:30:45 +0000 (19:30 +0300)
committerMiguel de Icaza <miguel@gnome.org>
Mon, 27 Jun 2016 16:30:45 +0000 (12:30 -0400)
qsort is not signal safe.

mono/sgen/sgen-marksweep.c

index 4d0c09d40a8514809c32b3ddc4f34cf838751f94..8b4f3cb612dd4370c6f96a04798abf26ec1cc6cb 100644 (file)
@@ -1850,7 +1850,7 @@ sgen_evacuation_freelist_blocks (MSBlockInfo * volatile *block_list, int size_in
 
        SGEN_ASSERT (0, num_blocks == index, "Why did the freelist change ?");
 
-       qsort (evacuated_blocks, num_blocks, sizeof (gpointer), block_usage_comparer);
+       sgen_qsort (evacuated_blocks, num_blocks, sizeof (gpointer), block_usage_comparer);
 
        /*
         * Form a new freelist with the fullest blocks. These blocks will also be