diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-09-28 00:17:24 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-09-28 00:17:24 +0200 |
commit | b3ae8e299517556ec6e9ad06d91353f5b66d0827 (patch) | |
tree | a53c879c047e02a3474a6a1707bea553053f7d76 /src/qreg-commands.c | |
parent | c4a1c3a21818965f669ebc6a081f08323a6919f1 (diff) | |
download | sciteco-b3ae8e299517556ec6e9ad06d91353f5b66d0827.tar.gz |
fixed memory limiting if the process' memory usage is larger than 2GB and overflow checking
* teco_memory_usage is now an unsigned integer.
* Unfortunately we currently rely on the variable being int-sized since we use
atomic operations.
This means on 64-bit systems, limiting will not work as expected if you set the limit larger
than 4GB.
Not sure whether this should be fixed.
* Calling teco_memory_check() with a non-null request-size was totally broken and could
result in bogus failures.
This is currently used exclusively for checking backwards searches.
Diffstat (limited to 'src/qreg-commands.c')
0 files changed, 0 insertions, 0 deletions