snmalloc icon indicating copy to clipboard operation
snmalloc copied to clipboard

custom memmove implementation proposal.

Open devnexen opened this issue 2 years ago • 3 comments

mostly like memcpy with optional bound checking but capable of handling overlapping cases thus using reverse copy instead.

devnexen avatar Feb 19 '23 13:02 devnexen

@devnexen sorry for the delay in running the CI. It looks like there are a few failures in the tests, and clangformat is not happy.

mjp41 avatar Feb 28 '23 09:02 mjp41

weird as the issue seem about check_bounds about using memcpy ? Also my clang-format(9) does not report format issue..

devnexen avatar Feb 28 '23 21:02 devnexen

I think it is the last line here:

Check fail: dst[u] == i in /home/runner/work/snmalloc/snmalloc/src/test/func/memcpy/func-memcpy.cc on 200  
in test void check_overlaps2(size_t) [after = false] overlap error: 0x4 0x2

https://github.com/microsoft/snmalloc/actions/runs/4256879925/jobs/7476767702#step:9:16563

The clangformat might be it has cached an old file list. If you try rerunning cmake, and then the clangformat target?

mjp41 avatar Mar 01 '23 09:03 mjp41