Commit 1da76d8
committed
executors: fix parallel_executor caching and fork_join stacksize
- Remove mutable mask_ cache from parallel_policy_executor_base.
Storing a mutable member in a constexpr execution_policy causes
UB and compilation failures (specifically, reading the mutable
member during constant destruction in C++20). The caching has
been entirely removed to restore correctness.
- Remove stale 'Must not be nostack' doc comments from
fork_join_executor constructors, as stackless threads are now
supported (yielding is simply skipped via allow_yielding).1 parent acfa35a commit 1da76d8
2 files changed
Lines changed: 4 additions & 66 deletions
Lines changed: 2 additions & 40 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1250 | 1250 | | |
1251 | 1251 | | |
1252 | 1252 | | |
1253 | | - | |
1254 | | - | |
1255 | | - | |
1256 | | - | |
1257 | | - | |
1258 | | - | |
1259 | | - | |
1260 | | - | |
1261 | | - | |
1262 | | - | |
1263 | | - | |
1264 | | - | |
1265 | | - | |
1266 | | - | |
1267 | | - | |
1268 | | - | |
1269 | | - | |
1270 | | - | |
1271 | 1253 | | |
1272 | 1254 | | |
1273 | 1255 | | |
| |||
1288 | 1270 | | |
1289 | 1271 | | |
1290 | 1272 | | |
1291 | | - | |
1292 | | - | |
| 1273 | + | |
1293 | 1274 | | |
1294 | 1275 | | |
1295 | 1276 | | |
| |||
1301 | 1282 | | |
1302 | 1283 | | |
1303 | 1284 | | |
1304 | | - | |
1305 | | - | |
1306 | | - | |
1307 | | - | |
1308 | | - | |
1309 | | - | |
1310 | | - | |
1311 | | - | |
1312 | | - | |
1313 | 1285 | | |
1314 | 1286 | | |
1315 | 1287 | | |
| |||
1318 | 1290 | | |
1319 | 1291 | | |
1320 | 1292 | | |
1321 | | - | |
1322 | | - | |
| 1293 | + | |
1323 | 1294 | | |
1324 | 1295 | | |
1325 | 1296 | | |
| |||
1331 | 1302 | | |
1332 | 1303 | | |
1333 | 1304 | | |
1334 | | - | |
1335 | | - | |
1336 | | - | |
1337 | | - | |
1338 | | - | |
1339 | | - | |
1340 | | - | |
1341 | | - | |
1342 | | - | |
1343 | 1305 | | |
1344 | 1306 | | |
1345 | 1307 | | |
| |||
Lines changed: 2 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
162 | 161 | | |
163 | 162 | | |
164 | 163 | | |
165 | | - | |
166 | 164 | | |
167 | 165 | | |
168 | 166 | | |
| |||
179 | 177 | | |
180 | 178 | | |
181 | 179 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | 180 | | |
186 | 181 | | |
187 | 182 | | |
| |||
190 | 185 | | |
191 | 186 | | |
192 | 187 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
| 188 | + | |
197 | 189 | | |
198 | 190 | | |
199 | 191 | | |
| |||
348 | 340 | | |
349 | 341 | | |
350 | 342 | | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | 343 | | |
358 | 344 | | |
359 | 345 | | |
| |||
380 | 366 | | |
381 | 367 | | |
382 | 368 | | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
| 369 | + | |
393 | 370 | | |
394 | 371 | | |
395 | 372 | | |
| |||
403 | 380 | | |
404 | 381 | | |
405 | 382 | | |
406 | | - | |
407 | 383 | | |
408 | 384 | | |
409 | 385 | | |
| |||
0 commit comments