by stingraycharles · 1y ago · 0 comments
Having said that, it saved my ass a lot of times, and I’m very grateful that it exists.
From a quick glance, it seems that Go is now registering the stacks and emitting stack change commands on every goroutine context switch. This is most likely enough to make Valgrind happy with Go's scheduler.
(I think it was possible to use on openmp if you compiled your compiler with special options)
Also, strictly speaking all Go programs are multithreaded. The inability to spawn a single-threaded Go program is actually a huge issue in some system tools like container runtimes and requires truly awful hacks to work around. (Before you ask, GOMAXPROCS=1 doesn't work.)