[PATCH] D39444: [Support] Make the default chunk size of raw_fd_ostream to 1 GiB.

Kamil Rytarowski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 30 19:54:21 PDT 2017


krytarowski added inline comments.


================
Comment at: llvm/lib/Support/raw_ostream.cpp:580
   pos += Size;
+  size_t MaxWriteSize = SIZE_MAX;
 
----------------
```
If the value of nbyte is greater than {SSIZE_MAX}, the result is implementation-defined.
```

http://pubs.opengroup.org/onlinepubs/9699919799/functions/write.html#tag_16_685


https://reviews.llvm.org/D39444





More information about the llvm-commits mailing list