• antirez's avatar
    Hopefully better memory test on crash. · a1c9c05e
    antirez authored
    The old test, designed to do a transformation on the bits that was
    invertible, in order to avoid touching the original memory content, was
    not effective as it was redis-server --test-memory. The former often
    reported OK while the latter was able to spot the error.
    
    So the test was substituted with one that may perform better, however
    the new one must backup the memory tested, so it tests memory in small
    pieces. This limits the effectiveness because of the CPU caches. However
    some attempt is made in order to trash the CPU cache between the fill
    and the check stages, but not for the addressing test unfortunately.
    
    We'll see if this test will be able to find errors where the old failed.
    a1c9c05e
debug.c 39.3 KB