Commit 3a29bea
committed
Abandon coroutine handles during IOCP shutdown to avoid stack overflow
Coroutine frames cannot be destroyed during the shutdown drain loop
because trampoline and inner-task coroutines have circular ownership
that causes re-entrant destruction. Instead, abandon the handles and
force outstanding_work_ to zero after draining both queues.
Also adds /EHsc to the benchmark target for MSVC so Asio comparison
files link correctly.1 parent ae9afa7 commit 3a29bea
File tree
4 files changed
+14
-24
lines changed- include/boost/corosio/native/detail/iocp
- perf/bench
4 files changed
+14
-24
lines changedLines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | 156 | | |
160 | 157 | | |
161 | 158 | | |
| |||
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
152 | | - | |
| 150 | + | |
153 | 151 | | |
154 | 152 | | |
155 | 153 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 154 | + | |
161 | 155 | | |
162 | 156 | | |
163 | 157 | | |
| |||
Lines changed: 10 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | 199 | | |
201 | 200 | | |
202 | 201 | | |
203 | | - | |
204 | | - | |
| 202 | + | |
205 | 203 | | |
206 | | - | |
207 | 204 | | |
208 | 205 | | |
209 | 206 | | |
210 | 207 | | |
211 | 208 | | |
212 | 209 | | |
| 210 | + | |
| 211 | + | |
213 | 212 | | |
214 | 213 | | |
215 | | - | |
216 | 214 | | |
| 215 | + | |
217 | 216 | | |
218 | 217 | | |
219 | | - | |
220 | 218 | | |
221 | 219 | | |
222 | 220 | | |
223 | 221 | | |
224 | 222 | | |
225 | 223 | | |
226 | | - | |
227 | 224 | | |
228 | 225 | | |
229 | | - | |
230 | 226 | | |
231 | 227 | | |
232 | 228 | | |
233 | 229 | | |
234 | 230 | | |
235 | | - | |
236 | 231 | | |
237 | 232 | | |
238 | 233 | | |
| 234 | + | |
239 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
240 | 239 | | |
| 240 | + | |
| 241 | + | |
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
| |||
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | 257 | | |
260 | 258 | | |
261 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
0 commit comments