BENCHTESTS: memmove benchtests do not test overlapping memory regions
Zack Weinberg
zackw@panix.com
Fri Feb 8 16:42:00 GMT 2019
On Fri, Feb 8, 2019 at 10:51 AM Anton Youdkevitch
<anton.youdkevitch@bell-sw.com> wrote:
> The current testing framework is using two buffers
> for all sorts of string benchmarks. Considering how
> the buffers get allocated (using mmap with the first
> argument set to 0) they can never overlap.
>
> So, the memmove benchtest actually tests memcpy
> (with a little additional startup) instead of memmove.
> I would like to adapt memmove benchset to cover the
> case of overlapping memory regions as well.
Yes, that would be a welcome improvement. It's probably going to be
big enough that you will need to file contributor paperwork with the
FSF: please read and follow the instructions at
https://git.savannah.gnu.org/cgit/gnulib.git/plain/doc/Copyright/request-assign.future
zw
More information about the Libc-alpha
mailing list