[ruby-core:109845] [Ruby master Bug#18997] Don't define ruby_qsort when POSIX qsort_r is available
From:
"delphij (Xin Li)" <noreply@...>
Date:
2022-09-08 07:50:36 UTC
List:
ruby-core #109845
Issue #18997 has been reported by delphij (Xin Li). ---------------------------------------- Bug #18997: Don't define ruby_qsort when POSIX qsort_r is available https://bugs.ruby-lang.org/issues/18997 * Author: delphij (Xin Li) * Status: Open * Priority: Normal * ruby -v: Not applicable * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- 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/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>