jemalloc/test
Dmitry Ilvokhin 47d69b4eab HPA: Fix infinite purging loop
One of the condition to start purging is `hpa_hugify_blocked_by_ndirty`
function call returns true. This can happen in cases where we have no
dirty memory for this shard at all. In this case purging loop will be an
infinite loop.

`hpa_hugify_blocked_by_ndirty` was introduced at 0f6c420, but at that
time purging loop has different form and additional `break` was not
required. Purging loop form was re-written at 6630c5989, but additional
exit condition wasn't added there at the time.

Repo code was shared by Patrik Dokoupil at [1], I stripped it down to
minimum to reproduce issue in jemalloc unit tests.

[1]: https://github.com/jemalloc/jemalloc/pull/2533
2024-04-30 13:46:32 -07:00
..
analyze Enabled -Wstrict-prototypes and fixed warnings. 2023-07-06 12:00:02 -07:00
include/test Make headers self-contained by fixing #includes 2023-07-14 09:06:32 -07:00
integration Make headers self-contained by fixing #includes 2023-07-14 09:06:32 -07:00
src Enable a few additional warnings for CI and fix the issues they uncovered 2023-08-11 13:56:23 -07:00
stress Enabled -Wstrict-prototypes and fixed warnings. 2023-07-06 12:00:02 -07:00
unit HPA: Fix infinite purging loop 2024-04-30 13:46:32 -07:00
test.sh.in Print test error messages in color when stderr is a terminal 2023-07-13 13:03:23 -07:00