fix guarded sample rate of 1 (issue #1085)

This commit is contained in:
daanx 2025-05-13 15:58:45 -07:00
parent a6ecb5c299
commit 72f05e2f07
3 changed files with 9 additions and 11 deletions

View file

@ -512,7 +512,6 @@ struct mi_heap_s {
size_t guarded_size_min; // minimal size for guarded objects
size_t guarded_size_max; // maximal size for guarded objects
size_t guarded_sample_rate; // sample rate (set to 0 to disable guarded pages)
size_t guarded_sample_seed; // starting sample count
size_t guarded_sample_count; // current sample count (counting down to 0)
#endif
mi_page_t* pages_free_direct[MI_PAGES_DIRECT]; // optimize: array where every entry points a page with possibly free blocks in the corresponding queue for that size.