summaryrefslogtreecommitdiff
path: root/ext/etc
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-21 18:48:03 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-21 18:48:03 +0000
commit2f438d60106789a8628617ab41bc1c750ecae62b (patch)
tree9114b6c06ae139195fecb19d7c9d46511bece9c4 /ext/etc
parentdfe56d36624b9da86121a40469d487099d9818e9 (diff)
* 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
Diffstat (limited to 'ext/etc')
-rw-r--r--ext/etc/etc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/etc/etc.c b/ext/etc/etc.c
index b25cb7b..694ef5e 100644
--- a/ext/etc/etc.c
+++ b/ext/etc/etc.c
@@ -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);