Don wrote:
bearophile wrote:
Even just:

void main() {
    auto a = new uint[10_000_000];
    a.sort;
    a.sort;
}

Bye,
bearophile

Confirmed. In fact, any size below 0x8F_FFFF works,
and any size >= 0x8F_FFFF fails. On DMD2.027 as well.

void main() {
    auto a = new uint[0x8F_FFFF]; // smallest size that fails
    a.sort;
    a.sort;
}
And it's caused by the hard-coded
  byte*[40] stack;              // stack

in
extern (C) long _adSort(Array a, TypeInfo ti)
in qsort.d.


Reply via email to