On 9/19/19 2:41 AM, David Hildenbrand wrote:
>> +    /* prepare the buffers - two consecutive pages */
>> +    src = valloc(ALLOC_SIZE);
>> +    dst = valloc(ALLOC_SIZE);
> 
> If anybody cares, I can convert the obsolete valloc into a
> posix_memalign(&src, 4096, ALLOC_SIZE) etc.

I don't care.  It may be obsolete, but it still works.

If you were to change it to anything I would think mmap
instead of using mprotect on the heap at all...

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>


r~

Reply via email to