Skip to content

Commit db78601

Browse files
authored
Prevent NPE in deallocate_pages (#688)
Prevent NPE in `deallocate_pages` If `deallocate_pages` is called on a job for which `allocate_pages` has not been called (see `iterate_start_jobs` for conditions under which this is true), `allocated_pages` is `None`, raising a NPE when attempting to iterate. In particular, this prevents `clear_queue` from working. In practice, this problem readily occurs when starting a few jobs and then calling `clear_queue`.
1 parent 663eea1 commit db78601

File tree

2 files changed

+349
-3
lines changed

2 files changed

+349
-3
lines changed

0 commit comments

Comments
 (0)