1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/core
Marian Buschsieweke 11e273c4db
core/thread: "fix" valgrind erros in thread_measure_stack_free()
The dark magic used used in thread_measure_stack_free() is frowned upon
by valgrind. E.g. valgrind may deduce (by monitoring the stack pointer)
that a specific value was at some point allocated on the stack, but has
gone out of scope. When that value is now read again to estimate stack
usage, it does look a lot like someone passed a pointer to a stack
allocated value, and that pointer is referenced after that value has
gone out of scope.

This is "fixed" by temporarily disabling valgrind error reporting while
iterating over the stack.
2024-06-05 14:31:58 +02:00
..
include core/thread: fix thread_measure_stack_free() 2024-05-31 19:54:10 +02:00
lib core/lib/assert: consistify output and cleanup documentation 2024-05-27 17:12:49 +02:00
cond.c core/*: realign ENABLE_DEBUG 2020-10-23 00:45:56 +02:00
doc.txt doc/mainpage: don't claim to be a microkernel 2024-01-11 16:59:50 +01:00
Kconfig *Kconfig*: Modify Kconfig to remove dep model 2024-03-27 10:28:12 +01:00
Makefile core/thread, mutex: provide dummy implementation for riotboot 2022-05-02 13:18:39 +02:00
mbox.c core: 64 bit compatibility 2024-01-15 10:16:30 +01:00
msg_bus.c core: Access internal vars via helper funcs 2020-08-06 16:47:33 +02:00
msg.c core/msg: better DEBUG() in queue_msg 2023-10-22 10:50:00 +02:00
mutex.c core/mutex: fix debug message for mutex priority inheritance 2023-12-14 16:43:28 +01:00
sched.c core/sched.c: fix undefined behavior on 8-bit/16-bit 2022-09-09 21:55:17 +02:00
thread_flags.c core: 64 bit compatibility 2024-01-15 10:16:30 +01:00
thread.c core/thread: "fix" valgrind erros in thread_measure_stack_free() 2024-06-05 14:31:58 +02:00