Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unpack_ram: More graceful handling of low unpack ram
Some people try setting RUSTUP_UNPACK_RAM below the minimum RAM needed for a threaded operation. Since, in principle, we need at least IO_CHUNK_SIZE and thus in theory 2x IO_CHUNK_SIZE, this change softens the failure mode from a panic to a warning and then tries anyway. This is *likely* to succeed and as such we'll let it happen. The warning should make it clear if there's a problem, and should not appear for no-sysinfo platforms since they default to minimum_ram anyway. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
- Loading branch information