Project

General

Profile

Feature #12025 ยป 0001-Reduce-minimum-string-buffer-size-from-128-to-127.patch

jeremyevans0 (Jeremy Evans), 01/26/2016 09:04 PM

View differences:

string.c
return v;
}
#define STR_BUF_MIN_SIZE 128
#define STR_BUF_MIN_SIZE 127
VALUE
rb_str_buf_new(long capa)
......
capa = (total + 4095) / 4096 * 4096;
break;
}
capa = 2 * capa;
capa = 2 * capa + 1;
}
}
else {
    (1-1/1)