1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

Assume 32 MiB of RAM on unsupported operating systems like

the comment in hardware.c already said.
This commit is contained in:
Lasse Collin 2009-02-07 17:07:52 +02:00
parent d0ab8c1c73
commit bd7ca1dad5

View file

@ -81,7 +81,7 @@ hardware_memlimit_init(void)
// even that is too much on some systems. But on most systems it's // even that is too much on some systems. But on most systems it's
// far too little, and can be annoying. // far too little, and can be annoying.
if (mem == 0) if (mem == 0)
mem = UINT64_C(16) * 1024 * 1024; mem = UINT64_C(32) * 1024 * 1024;
// Use at maximum of 90 % of RAM when encoding and 33 % when decoding. // Use at maximum of 90 % of RAM when encoding and 33 % when decoding.
memlimit_encoder = mem - mem / 10; memlimit_encoder = mem - mem / 10;