forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core] Guard concurrent access to generator IDs with a mutex (ray-pro…
…ject#50740) The serve microbenchmark has been sporadically failing due to memory corruption issues (see the linked issue). One of the tracebacks captured pointed to the fact that the `deleted_generator_ids_` map was being accessed concurrently by multiple threads. Fixed by adding a mutex. Verified that it at least dramatically reduces the frequency of the crashes. I've also renamed a few fields for clarity. ## Related issue number ray-project#50802 --------- Signed-off-by: Edward Oakes <[email protected]>
- Loading branch information
Showing
2 changed files
with
38 additions
and
20 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