Commit 29a1062
Asan: Remove initializer for tsd_key
This caused a crash in asan with the current state of constructors and destructors. Originally, it's meant to be a thread_local with a constructor that runs lazily on first use. Currently in cheerp, thread_local constructors are not supported. Removing the initializer is safe because the struct is only ever used as a global, and it's initialized to zero by default.
This was not a problem before, because the constructor was never run. Since it initialized to zero it had no effect. With the work on global destructors however, there is now a reason to run this constructor.1 parent 98d893a commit 29a1062
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | | - | |
| 46 | + | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| |||
0 commit comments