[CRIU] [PATCH] rst-malloc: return aligned pointers to sizeof(void *) (v4)

Pavel Emelyanov xemul at virtuozzo.com
Sun Feb 7 00:09:02 PST 2016


On 02/07/2016 03:23 AM, Andrew Vagin wrote:
> On Sat, Feb 06, 2016 at 08:39:44PM +0300, Pavel Emelyanov wrote:
>> On 02/05/2016 09:09 PM, Andrey Vagin wrote:
>>> From: Andrew Vagin <avagin at virtuozzo.com>
>>>
>>> Stas found that if we don't align a pointer,
>>> futex and atomic operations can fail.
>>>
>>> v2: don't hard-code the size of void *
>>> v3: add a function to allocate memory without gaps with
>>>     a privious slice. It's used to allocate arrays.
>>> v4: don't change rst_mem_cpos
>>>
>>> Cc: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
>>> Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
>>
>> I'm OK with the patch. Will there be another one that actually
>> makes use of the new rst_mem_alloc_cont() routine?
> 
> The second patch does this.

Please, don't break/drop the patch numbering within the series when
resending :( I saw the [PATCH] tag and removed the whole v3 series.

-- Pavel



More information about the CRIU mailing list