Commit 11e7b75
committed
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>1 parent a1d5912 commit 11e7b75
1 file changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
198 | 204 | | |
199 | | - | |
200 | 205 | | |
201 | 206 | | |
202 | 207 | | |
| |||
0 commit comments