diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2022-11-07 17:22:04 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-11-07 17:22:04 +0200 |
commit | 5e2450c75cbac966c62cf2231c824f2cc91ddba8 (patch) | |
tree | 1aa804cf9cb5405ce2c9bafe617473be79f7e16e /Doxyfile.in | |
parent | xz: Avoid a compiler warning in progress_speed() in message.c. (diff) | |
download | xz-5e2450c75cbac966c62cf2231c824f2cc91ddba8.tar.xz |
liblzma: Include cached memory in reported memusage in threaded decoder.
This affects lzma_memusage() and lzma_memlimit_set() when used
with the threaded decompressor. Now all allocations are reported
by lzma_memusage() (so it's not misleading) and lzma_memlimit_set()
cannot lower the limit below that value.
The alternative would have been to allow lowering the limit if
doing so is possible by freeing the cached memory but since
the primary use case of lzma_memlimit_set() is to increase
memlimit after LZMA_MEMLIMIT_ERROR this simple approach
was selected.
The cached memory was always included when enforcing
the memory usage limit while decoding.
Thanks to Jia Tan.
Diffstat (limited to 'Doxyfile.in')
0 files changed, 0 insertions, 0 deletions