зеркало из https://github.com/github/ruby.git
* ext/etc/etc.c (etc_nprocessors_affin): maximum "n" should be 16384.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
dfe56d3662
Коммит
2f438d6010
|
@ -1,3 +1,7 @@
|
|||
Wed Oct 22 03:47:43 2014 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* ext/etc/etc.c (etc_nprocessors_affin): maximum "n" should be 16384.
|
||||
|
||||
Wed Oct 22 03:37:00 2014 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* ext/etc/etc.c (etc_nprocessors_affin): minor spell fix.
|
||||
|
|
|
@ -934,7 +934,7 @@ etc_nprocessors_affin(void)
|
|||
* So, we use hardcode number for a workaround. Current linux kernel
|
||||
* (Linux 3.17) support 8192 cpus at maximum. Then 16384 must be enough.
|
||||
*/
|
||||
for (n=64; n < 16384; n *= 2) {
|
||||
for (n=64; n <= 16384; n *= 2) {
|
||||
size = CPU_ALLOC_SIZE(n);
|
||||
if (size >= 1024) {
|
||||
cpuset = xcalloc(1, size);
|
||||
|
|
Загрузка…
Ссылка в новой задаче