2021-06-03 12:20:51 UTC
It then spawns a 2nd thread for a TCP connection, and a 3rd thread for sending digital audio samples to ALSA.
When the 2nd and 3rd thread start together, the memory usage jumps from 88 kB to 157 MB. I don't know where this extra memory is being allocated.
So next I run my program under Valgrind Massif, but my program no longer spikes from 88 kB to 157 MB. My program runs fine under Valgrind Massif without any memory spike -- it stays constant at about 88 kB.
Anyone seen this kind of thing before?