Skip degenerate qsort: num < 2, size == 0, base == 0 (mono/mono#16016)
authorJay Krell <jaykrell@microsoft.com>
Wed, 14 Aug 2019 10:22:40 +0000 (03:22 -0700)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 14 Aug 2019 10:22:40 +0000 (12:22 +0200)
commit5a1f6d25647199a4ce6cb41550140c177079b02b
tree5c2076a1839c006e50be02b3aa243784fec51301
parent4a3db888bbc7f24c0667774744e899efe5eb7445
Skip degenerate qsort: num < 2, size == 0, base == 0 (mono/mono#16016)

Fixes https://github.com/mono/mono/issues/15994

Some is redundant for some qsort implementations.

Commit migrated from https://github.com/mono/mono/commit/12de10007cf9a2973452c9cf2df36692808fefb6
14 files changed:
src/mono/mono/dis/main.c
src/mono/mono/eglib/glib.h
src/mono/mono/eglib/gptrarray.c
src/mono/mono/metadata/icall-table.c
src/mono/mono/metadata/mono-ptr-array.h
src/mono/mono/metadata/object.c
src/mono/mono/metadata/sgen-bridge.c
src/mono/mono/metadata/sre-save.c
src/mono/mono/metadata/w32handle.c
src/mono/mono/mini/aot-compiler.c
src/mono/mono/mini/dwarfwriter.c
src/mono/mono/profiler/mprof-report.c
src/mono/mono/unit-tests/test-sgen-qsort.c
src/mono/mono/utils/mono-os-wait-win32.c