• Scott D Phillips's avatar
    util: Add a randomized test for the virtual memory allocator · 943fecc5
    Scott D Phillips authored
    The test pseudo-randomly makes allocations and deallocations with
    the virtual memory allocator and checks that the results are
    consistent. Specifically, we test that:
    
     * no result from the allocator overlaps an already allocated range
     * allocated memory fulfills the stated alignment requirement
     * a failed result from the allocator could not have been fulfilled
     * memory freed to the allocator can later be allocated again
    
    v2: - fix if() in test() to actually run fill()
    v3: - add c++11 build flag (Jason)
        - test the full 64-bit range (Jason)
    Reviewed-by: 's avatarJason Ekstrand <jason@jlekstrand.net>
    943fecc5
Name
Last commit
Last update
..
amd Loading commit data...
broadcom Loading commit data...
compiler Loading commit data...
egl Loading commit data...
gallium Loading commit data...
gbm Loading commit data...
getopt Loading commit data...
glx Loading commit data...
gtest Loading commit data...
hgl Loading commit data...
intel Loading commit data...
loader Loading commit data...
mapi Loading commit data...
mesa Loading commit data...
util Loading commit data...
vulkan Loading commit data...
Makefile.am Loading commit data...
SConscript Loading commit data...
git_sha1.h.in Loading commit data...
meson.build Loading commit data...