Re: [dpdk-dev] [PATCH 2/2] malloc: avoid padding elements on page deallocation

2018-05-02 Thread Thomas Monjalon
02/05/2018 17:38, Anatoly Burakov: > Currently, when deallocating pages, malloc will fixup other > elements' headers if there is not enough space to store a full > element in leftover space. This leads to race conditions because > there are some functions that check for pad size with an unlocked >

[dpdk-dev] [PATCH 2/2] malloc: avoid padding elements on page deallocation

2018-05-02 Thread Anatoly Burakov
Currently, when deallocating pages, malloc will fixup other elements' headers if there is not enough space to store a full element in leftover space. This leads to race conditions because there are some functions that check for pad size with an unlocked heap, expecting pad size to be constant. Fix