Commit 208d664
Fix iterator invalidation when reopting functions
Summary:
Advance the iterator before `reoptFunc()` erase the current function from the set, avoiding invalid iteration.
https://github.com/greg7mdp/parallel-hashmap?tab=readme-ov-file#iterator-invalidation-for-hash-containers
Reviewed By: alexmalyshev
Differential Revision: D97437765
fbshipit-source-id: a7cf22e082a7e798d997bd75dc5d2aa961592c121 parent ba1657f commit 208d664
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1375 | 1375 | | |
1376 | 1376 | | |
1377 | 1377 | | |
1378 | | - | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
1379 | 1384 | | |
1380 | 1385 | | |
1381 | 1386 | | |
| |||
0 commit comments