On Mon Feb 13 22:14:54 2023 +0000, Rémi Bernon wrote:
I don't see what to explain, `bin_try_enable` is called after updating the counters, it enables the LFH globally on the heap, and then specific bin, and `heap_allocate_block_lfh` is supposed to work with a LFH enabled heap and on LFH enabled bin. It would probably work with relaxed semantics too, but would be less correct.
That's exactly the kind of explanation I'm looking for, although I'm afraid I don't understand it here, since heap_allocate_block_lfh() doesn't seem to read the compatibility flags anywhere?