]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Maek init_global_thread_specific_state as a constructor to try and ensure
authorTom Hughes <tom@compton.nu>
Sat, 14 Aug 2004 15:37:59 +0000 (15:37 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 14 Aug 2004 15:37:59 +0000 (15:37 +0000)
commit42c7adce4540f9879533bb1ad25c3d29ff1e5c2c
tree56c7c59eb21b4ba8983d4238a0542230b62b6e6f
parentbbb1fad521ca03707661982dc8d900fde62af510
Maek init_global_thread_specific_state as a constructor to try and ensure
that it is called as soon as libpthread.so is loaded even if pthread_create
is never called.

This ensures that pthread_exit will work correctly, and I think will also
cure the famous memory leak in the pthread specifics for the main thread.

CCMAIL: 86730-done@bugs.kde.org

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2584
corecheck/tests/Makefile.am
corecheck/tests/pth_exit2.c [new file with mode: 0644]
corecheck/tests/pth_exit2.stderr.exp [new file with mode: 0644]
corecheck/tests/pth_exit2.vgtest [new file with mode: 0644]
coregrind/vg_libpthread.c