[ruby-core:113004] [Ruby master Bug#18997] Don't define ruby_qsort when POSIX qsort_r is available

Issue #18997 has been updated by nagachika (Tomoyuki Chikanaga). Backport changed from 2.7: REQUIRED, 3.0: REQUIRED, 3.1: REQUIRED to 2.7: REQUIRED, 3.0: REQUIRED, 3.1: DONTNEED I don't think this is necessary to backport to stable branches. ---------------------------------------- Bug #18997: Don't define ruby_qsort when POSIX qsort_r is available https://bugs.ruby-lang.org/issues/18997#change-102537 * Author: delphij (Xin Li) * Status: Closed * Priority: Normal * ruby -v: Not applicable * Backport: 2.7: REQUIRED, 3.0: REQUIRED, 3.1: DONTNEED ---------------------------------------- The current code would define ruby_qsort as a wrapper of qsort_s when it is available. When both qsort_s and POSIX (GNU) qsort_r are available, we should call qsort_r directly instead, and the qsort_s wrapper is redundant. Proposed patch at https://github.com/ruby/ruby/pull/6332 and can be applied on Ruby 2.7 and newer Ruby versions -- https://bugs.ruby-lang.org/
participants (1)
-
nagachika (Tomoyuki Chikanaga)