-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#pygrain Fix segfault when starting multiple mp_prefetches concurrently.
Parallel calls to `start_prefetch` result in concurrent calls to `SharedMemoryArray.enable_async_del`, which attempt to concurrently modify class-level state. Before the fix, the added unit test segfaults about 10% of the time, and the repro in experimental/ segfaults consistently. Using a higher number of iterators in the unit test results in forge OOMs. After the fix, the test passes with --runs_per_test=1000 PiperOrigin-RevId: 712578730
- Loading branch information
1 parent
3099aec
commit bc177d6
Showing
2 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters