[PATCH] Use posix_fallocate instead of ftruncate.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 19 08:16:01 PDT 2016


This also makes lld marginally faster.

Cheers,
Rafael


On 19 July 2016 at 10:06, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:
> This makes sure that space is actually available. With this change
> running lld on a full file system causes it to exit with
>
>  failed to open foo: No space left on device
>
> instead of crashing with a sigbus.
>
> Cheers,
> Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: times-btrfs
Type: application/octet-stream
Size: 676 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160719/3126a5f0/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: times-tmpfs
Type: application/octet-stream
Size: 675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160719/3126a5f0/attachment-0001.obj>


More information about the llvm-commits mailing list