• 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: default avatarJason Ekstrand <jason@jlekstrand.net>
    943fecc5
Name
Last commit
Last update
..
sha1 Loading commit data...
tests Loading commit data...
xmlpool Loading commit data...
.gitignore Loading commit data...
Android.mk Loading commit data...
Makefile.am Loading commit data...
Makefile.sources Loading commit data...
SConscript Loading commit data...
bitscan.c Loading commit data...
bitscan.h Loading commit data...
bitset.h Loading commit data...
build_id.c Loading commit data...
build_id.h Loading commit data...
crc32.c Loading commit data...
crc32.h Loading commit data...
debug.c Loading commit data...
debug.h Loading commit data...
disk_cache.c Loading commit data...
disk_cache.h Loading commit data...
drirc Loading commit data...
format_r11g11b10f.h Loading commit data...
format_rgb9e5.h Loading commit data...
format_srgb.h Loading commit data...
format_srgb.py Loading commit data...
futex.h Loading commit data...
half_float.c Loading commit data...
half_float.h Loading commit data...
hash_table.c Loading commit data...
hash_table.h Loading commit data...
list.h Loading commit data...
macros.h Loading commit data...
merge_driinfo.py Loading commit data...
mesa-sha1.c Loading commit data...
mesa-sha1.h Loading commit data...
mesa-sha1_test.c Loading commit data...
meson.build Loading commit data...
os_time.c Loading commit data...
os_time.h Loading commit data...
ralloc.c Loading commit data...
ralloc.h Loading commit data...
rand_xor.c Loading commit data...
rand_xor.h Loading commit data...
register_allocate.c Loading commit data...
register_allocate.h Loading commit data...
rgtc.c Loading commit data...
rgtc.h Loading commit data...
roundeven_test.c Loading commit data...
rounding.h Loading commit data...
set.c Loading commit data...
set.h Loading commit data...
simple_list.h Loading commit data...
simple_mtx.h Loading commit data...
slab.c Loading commit data...
slab.h Loading commit data...
string_buffer.c Loading commit data...
string_buffer.h Loading commit data...
strndup.h Loading commit data...
strtod.c Loading commit data...
strtod.h Loading commit data...
texcompress_rgtc_tmp.h Loading commit data...
u_atomic.c Loading commit data...
u_atomic.h Loading commit data...
u_atomic_test.c Loading commit data...
u_dynarray.h Loading commit data...
u_endian.h Loading commit data...
u_queue.c Loading commit data...
u_queue.h Loading commit data...
u_string.h Loading commit data...
u_thread.h Loading commit data...
u_vector.c Loading commit data...
u_vector.h Loading commit data...
vma.c Loading commit data...
vma.h Loading commit data...
xmlconfig.c Loading commit data...
xmlconfig.h Loading commit data...
xmlpool.h Loading commit data...