Commit 49bb6a0
Make Async Profiler tests compatible with single threaded runtime. (#127762)
Initial async profiler tests used some techniques to isolate tests
running on thread pool, but that doesn't work on single threaded
platforms like WASM.
* Split tests into tests that can run without multithreaded support and
tests that must have thread pool.
* Harden test to only look for specific events using a Task id mapping
to the marker frame used by the test.
* Fix failures on Native AOT due to missing native IP -> Method Name.
* Remove wrapper IP's from metadata event. With JIT they point to the
pre-stub, instead parsers needs rundown events and can create the
wrapper IP table through that. The wrapper count is still in the
metadata event, but the wrapper name is now part of the contract, so
parsers can use rundown events to locate the IP's and build wrapper
table.
With these changes we now have all tests running on CoreCLR, NativeAOT
and 38 out of 48 tests running on CoreCLR WASM single threaded
configuration.
---------
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>1 parent ad815e7 commit 49bb6a0
3 files changed
Lines changed: 1211 additions & 913 deletions
File tree
- src
- coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices
- libraries
- System.Private.CoreLib/src/System/Runtime/CompilerServices
- System.Runtime/tests/System.Threading.Tasks.Tests/System.Runtime.CompilerServices
Lines changed: 20 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
141 | 156 | | |
142 | 157 | | |
143 | 158 | | |
| |||
154 | 169 | | |
155 | 170 | | |
156 | 171 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | 172 | | |
168 | 173 | | |
169 | 174 | | |
| |||
Lines changed: 3 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | 110 | | |
113 | 111 | | |
114 | 112 | | |
115 | 113 | | |
116 | 114 | | |
117 | 115 | | |
118 | | - | |
119 | 116 | | |
120 | | - | |
121 | 117 | | |
122 | 118 | | |
123 | | - | |
| 119 | + | |
124 | 120 | | |
125 | 121 | | |
126 | 122 | | |
127 | | - | |
| 123 | + | |
128 | 124 | | |
129 | 125 | | |
130 | 126 | | |
131 | 127 | | |
132 | 128 | | |
133 | 129 | | |
134 | 130 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
| 131 | + | |
141 | 132 | | |
142 | 133 | | |
143 | 134 | | |
| |||
857 | 848 | | |
858 | 849 | | |
859 | 850 | | |
860 | | - | |
861 | | - | |
862 | | - | |
863 | 851 | | |
864 | 852 | | |
865 | 853 | | |
| |||
0 commit comments