forked from rapidsai/cucim
-
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.
Fix iterator-related memory issues (rapidsai#620)
MERGE after rapidsai#618 ### Fix memory corruption issue in ThreadBatchDataLoader Fix rapidsai#592 - Return a shared pointer of CuImageIterator, taking ownership of CuImageIterator instance, instead of returning a copy of CuImageIterator - Do not create new instance for CuImageIterator when `__iter__` is called. Instead, return self. - Wait until all threads are finished in ThreadBatchDataLoader destructor ### Fix memory leak in ThreadBatchDataLoader Fix rapidsai#598 - Throw StopIteration exception early - Do not set nullptr for `raster_data_` in `ThreadBatchDataLoader::next_data()` - Setting nullptr prevents freeing memory in the destructor of ThreadBatchDataLoader ### Fix fatal errors for cache object - GIL is not acquired when using Python object. ### Add iterator-related test cases for memory issue Authors: - Gigon Bae (https://github.com/gigony) Approvers: - Gregory Lee (https://github.com/grlee77) - https://github.com/jakirkham URL: rapidsai#620
- Loading branch information
Showing
5 changed files
with
131 additions
and
25 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
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
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