Reuse the existing code for FreeBSD that is compatible with NetBSD.
Add NetBSD support in tests: tls_race.cc and tls_race2.cc.
Sponsored by <The NetBSD Foundation>
Differential D40105
Implement GetTls() for NetBSD krytarowski on Nov 15 2017, 3:34 PM. Authored by
Details Reuse the existing code for FreeBSD that is compatible with NetBSD. Add NetBSD support in tests: tls_race.cc and tls_race2.cc. Sponsored by <The NetBSD Foundation>
Diff Detail
Event TimelineComment Actions This patch also helps MSan/NetBSD.. and perhaps is the reason why MSan started to work better - modulo this DEADLYSIGNAL that plagues sanitizers on NetBSD. |
Please follow ld.elf_so/tls.c here and use _lwp_setprivate/_lwp_settcb for consistent behavior across all platforms.