Project

General

Profile

Bug #7772 ยป 0001-Bump-stack-size-in-ruby_qsort-for-64-bit-CPUs.patch

Patch to bump size to 64 - Conrad.Irwin (Conrad Irwin), 02/03/2013 04:07 PM

View differences:

util.c
char *L = base; /* left end of current region */
char *R = (char*)base + size*(nel-1); /* right end of current region */
size_t chklim = 63; /* threshold of ordering element check */
stack_node stack[32], *top = stack; /* 32 is enough for 32bit CPU */
stack_node stack[64], *top = stack; /* 64 is enough for arrays up to 2**64 elements */
int mmkind;
size_t high, low, n;
    (1-1/1)