projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdd84f6
)
[sgen] Use sgen_qsort instead of qsort (#3205)
author
Vlad Brezae
<brezaevlad@gmail.com>
Mon, 27 Jun 2016 16:30:45 +0000
(19:30 +0300)
committer
Miguel 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
patch
|
blob
|
history
diff --git
a/mono/sgen/sgen-marksweep.c
b/mono/sgen/sgen-marksweep.c
index 4d0c09d40a8514809c32b3ddc4f34cf838751f94..8b4f3cb612dd4370c6f96a04798abf26ec1cc6cb 100644
(file)
--- a/
mono/sgen/sgen-marksweep.c
+++ b/
mono/sgen/sgen-marksweep.c
@@
-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