Strengthen stream and vector memory tests
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-arm32 (push) Waiting to run
Build / build-win (push) Waiting to run
Build / build-freebsd (push) Waiting to run
Build / build-musl (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run

This commit is contained in:
Andrea Mazzoleni 2026-09-10 08:41:14 +02:00
parent a01ec45f14
commit f69007eaf6
6 changed files with 199 additions and 55 deletions

View file

@ -115,6 +115,14 @@ void **raid_malloc_vector_align(int n, size_t size, size_t align_size, size_t di
*/
void raid_mrand_vector(unsigned seed, int n, size_t size, void **vv);
/**
* Writes back and invalidates the CPU cache lines covering the memory range.
*
* This operation is best effort. It does nothing on architectures without a
* safe user-space cache invalidation instruction.
*/
void raid_mcache_flush(void *ptr, size_t size);
/**
* Tests the memory vector for RAM problems.
* If a problem is found, it crashes.