Squadrick / shadesmar

Fast C++ IPC using shared memory
MIT License
555 stars 85 forks source link

Stronger multithreaded allocator test #36

Closed Squadrick closed 4 years ago

Squadrick commented 4 years ago

Adds stronger tests for the allocator. In parallel, make a series of allocations, write some data, free and check data, and free it. It sleeps randomly between each step to make the test less deterministic (to reflect real-world use-case).

Works without issue for 128 threads. Should work for higher, 128 was chosen as an assumed real-world worst-case.