Issue #7772 has been updated by Usaku NAKAMURA.

Backport changed from 1.9.3: REQUIRED, 2.0.0: DONE to 1.9.3: DONE, 2.0.0: DONE

backported into ruby_1_9_3 at r44738.

----------------------------------------
Bug #7772: Consider bumping stack size in ruby_qsort
https://bugs.ruby-lang.org/issues/7772#change-44675

* Author: Conrad Irwin
* Status: Closed
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: core
* Target version: 2.1.0
* ruby -v: 1.9.3p362
* Backport: 1.9.3: DONE, 2.0.0: DONE
----------------------------------------
At the moment the maximum size of the stack is 32. The comment implies this should be enough for arrays with up to 2**32 elements, but it's possible to create larger arrays on some big systems.

I was not able to trigger a bug with: ([0, 1] * (2**32 + 10000)).sort! so it may actually never be a problem in practice, but it seems unsafe.

---Files--------------------------------
0001-Bump-stack-size-in-ruby_qsort-for-64-bit-CPUs.patch (1010 Bytes)


-- 
http://bugs.ruby-lang.org/