aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Celio <celio@eecs.berkeley.edu>2015-01-20 17:11:21 -0800
committerChristopher Celio <celio@eecs.berkeley.edu>2015-01-20 17:14:46 -0800
commitb222ef6bcb12197276affa231a4a3b36c068ea75 (patch)
tree3856428359bef6b0ffe8615396a6e2e8c5b304ea
parent68a2fe242b6255738caf1414f2d99fc4bcce3b7f (diff)
downloadpk-b222ef6bcb12197276affa231a4a3b36c068ea75.zip
pk-b222ef6bcb12197276affa231a4a3b36c068ea75.tar.gz
pk-b222ef6bcb12197276affa231a4a3b36c068ea75.tar.bz2
Increased max number of files,fds statically supported by pk.
The SPECINT benchmark 445.gobmk reads in a lot of files and would sometimes fail due to being unable to open more files.
-rw-r--r--pk/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pk/file.c b/pk/file.c
index e2510d8..4b85372 100644
--- a/pk/file.c
+++ b/pk/file.c
@@ -7,9 +7,9 @@
#include "frontend.h"
#include "vm.h"
-#define MAX_FDS 64
+#define MAX_FDS 128
static atomic_t fds[MAX_FDS];
-#define MAX_FILES 64
+#define MAX_FILES 128
static file_t files[MAX_FILES] = {[0 ... MAX_FILES-1] = {-1,{0}}};
file_t *stdout, *stdin, *stderr;