简体   繁体   中英

Is there a validation suite for multithreaded memory allocators?

I will soon be distributing a C++ concurrency framework that includes 64-bit multithreaded memory allocation services with particular advantages. Although it has been tested and used for years (Windows7), and seemingly flawless, I really want validation from an independent source, to give my users the same confidence in using these services that I have. And if I am really lucky and fortunate, such testing will reveal further defects (to resolve). Obviously, we can already test this material quilte effectively. But a publicly recognized validation suite is what I am ask about here.

TCMalloc contains a unit test program t-test1.c which they say

forks a number of threads and performs a series of allocations and deallocations in each thread; the threads do not communicate other than by synchronization in the memory allocator.

The emphasis seems to be performance testing (number of random allocations and deallocations per second as a function of the number of concurrent threads).

I think forks a number of threads is poor wording, perhaps creates a number of threads would be better, otherwise one might get the impression they are forking new processes and the whole purpose is to have multiple threads sharing the same heap in the same virtual address space.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM