Skip to content

Commit 42311b9

Browse files
committed
Set the ijar MAX_BUFFER_SIZE to 256 MB
Some users have reported that the Bazel server was growing to more than 128 MB. Fixes #609 -- MOS_MIGRATED_REVID=107920664
1 parent aa6a05f commit 42311b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

third_party/ijar/zip.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ class InputZipFile : public ZipExtractor {
122122
// not enough, we bail out. We only decompress class files, so they should
123123
// be smaller than 64K anyway, but we give a little leeway.
124124
// MAX_BUFFER_SIZE must be bigger than the size of the biggest file in the
125-
// ZIP. It is set to 128M here so we can uncompress the Bazel server with
125+
// ZIP. It is set to 256M here so we can uncompress the Bazel server with
126126
// this library.
127127
static const size_t INITIAL_BUFFER_SIZE = 256 * 1024; // 256K
128-
static const size_t MAX_BUFFER_SIZE = 128 * 1024 * 1024;
128+
static const size_t MAX_BUFFER_SIZE = 256 * 1024 * 1024;
129129
static const size_t MAX_MAPPED_REGION = 32 * 1024 * 1024;
130130

131131
// These metadata fields are the fields of the ZIP header of the file being

0 commit comments

Comments
 (0)