mariadb/storage/innobase/trx
Monty aae9b50a53 Added VALGRIND_YIELD to be able to abort from busy loops
Valgrind is single threaded and only changes threads as part of
system calls or waits.

I found some busy loops where the server assumes that some other
thread will change the state, which will not happen with valgrind.

Added VALGRIND_YIELD to the loops, which calls pthread_yield() if
HAVE_VALGRIND is defined.

Added pthread_yield() to the loops in table_cache.

We should consider changing some of the VALGRIND_YIELD calls to call
pthread_yield() as busy loop without any sleep() is usually a bad
thing.

Reviewer: svojtovich@gmail.com
2025-04-28 12:59:39 +03:00
..
trx0i_s.cc MDEV-24035 Failing assertion: UT_LIST_GET_LEN(lock.trx_locks) == 0 causing disruption and replication failure 2024-12-12 18:02:00 +02:00
trx0purge.cc Added VALGRIND_YIELD to be able to abort from busy loops 2025-04-28 12:59:39 +03:00
trx0rec.cc Merge branch '11.7' into 11.8 2025-02-11 20:29:43 +01:00
trx0roll.cc Fix typos in C comments inside storage/ 2025-03-26 16:56:50 +04:00
trx0rseg.cc Merge branch '10.11' into 11.2 2024-08-21 07:58:46 +02:00
trx0sys.cc Merge 11.4 into 11.7 2025-01-09 09:41:38 +02:00
trx0trx.cc Merge 11.4 into 11.8 2025-04-02 14:07:01 +03:00
trx0undo.cc Fix typos in C comments inside storage/ 2025-03-26 16:56:50 +04:00