See discussion on PR44792. This reverts commit 02ce9d8ef5. It also reverts the follow-up commits 8f46269f0 "[profile] Don't dump counters when forking and don't reset when calling exec** functions" 62c7d8402 "[profile] gcov_mutex must be static"
02ce9d8ef5
8f46269f0
62c7d8402