Commit e1b82d8
Remove dlsym() lookup for TSan functions from common path (#36478)
* Move TSan function lookup out of the common path
Move TSan function lookup via `dlsym()` out of the common path. The
TSan runtime will now call `__tsan_on_initialize()` which we can use to
initialize the TSan functions in the Swift runtime.
This avoids paying the cost of `dlsym()` in the common, non-TSan case.
Depends on: https://reviews.llvm.org/D98810
rdar://75493372
* Remove Windows code
Thread Sanitizer is not supported on Windows.
Co-authored-by: Julian Lettner <[email protected]>1 parent 172df21 commit e1b82d8
1 file changed
+8
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | | - | |
21 | | - | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 29 | | |
44 | 30 | | |
45 | 31 | | |
46 | | - | |
47 | 32 | | |
48 | 33 | | |
49 | 34 | | |
50 | 35 | | |
51 | 36 | | |
52 | 37 | | |
53 | | - | |
54 | 38 | | |
55 | 39 | | |
56 | 40 | | |
57 | 41 | | |
58 | 42 | | |
59 | 43 | | |
60 | | - | |
61 | | - | |
62 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
63 | 47 | | |
| 48 | + | |
0 commit comments