diff options
author | Damien Martin-Guillerez <dmarting@google.com> | 2015-11-16 10:22:55 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2015-11-16 10:52:36 +0000 |
commit | f5773fc677ca66507fde46077076480571c24601 (patch) | |
tree | f57547fa9b8a2898c3800b0bf0c2c9d0eda21a18 /third_party/ijar/zip.cc | |
parent | 533657e0b13320312268d3d4d23ae6507304a317 (diff) |
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
Diffstat (limited to 'third_party/ijar/zip.cc')
-rw-r--r-- | third_party/ijar/zip.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/ijar/zip.cc b/third_party/ijar/zip.cc index 5a3d1a589c..8d35bd3401 100644 --- a/third_party/ijar/zip.cc +++ b/third_party/ijar/zip.cc @@ -122,10 +122,10 @@ class InputZipFile : public ZipExtractor { // not enough, we bail out. We only decompress class files, so they should // be smaller than 64K anyway, but we give a little leeway. // MAX_BUFFER_SIZE must be bigger than the size of the biggest file in the - // ZIP. It is set to 128M here so we can uncompress the Bazel server with + // ZIP. It is set to 256M here so we can uncompress the Bazel server with // this library. static const size_t INITIAL_BUFFER_SIZE = 256 * 1024; // 256K - static const size_t MAX_BUFFER_SIZE = 128 * 1024 * 1024; + static const size_t MAX_BUFFER_SIZE = 256 * 1024 * 1024; static const size_t MAX_MAPPED_REGION = 32 * 1024 * 1024; // These metadata fields are the fields of the ZIP header of the file being |