mdbx-test: добавление исключений Valgrind для нового кода.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2022-10-09 15:41:00 +03:00
parent ae8e373143
commit 688ec3e85c
2 changed files with 15 additions and 5 deletions

View File

@ -621,8 +621,12 @@ MDBX_INTERNAL_FUNC int osal_ioring_create(osal_ioring_t *ior,
#endif /* !Windows */
#if MDBX_HAVE_PWRITEV && defined(_SC_IOV_MAX)
if (!osal_iov_max)
if (!osal_iov_max) {
osal_iov_max = sysconf(_SC_IOV_MAX);
if (RUNNING_ON_VALGRIND && osal_iov_max > 64)
/* чтобы не описывать все 1024 исключения в valgrind_suppress.txt */
osal_iov_max = 64;
}
#endif
ior->boundary = (char *)(ior->pool + ior->allocated);

View File

@ -33,16 +33,22 @@
# memcmp() inside iov_write() as workaround for todo4recovery://erased_by_github/libmdbx/issues/269
{
write-page-check-bcmp
iov-pagecheck-1
Memcheck:Cond
fun:bcmp
fun:iov_write*
fun:iov_callback4dirtypages
fun:osal_ioring_walk
fun:iov_complete
fun:iov_write
}
{
write-page-check-memcmp
iov-pagecheck-2
Memcheck:Cond
fun:memcmp*
fun:iov_write*
fun:iov_callback4dirtypages
fun:osal_ioring_walk
fun:iov_complete
fun:iov_write
}
# single-page flush by pwrite()