Skip to content

Commit

Permalink
RapidsBufferStore race could cause NPE (NVIDIA#928)
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Bellina <abellina@nvidia.com>
  • Loading branch information
abellina authored and sperlingxx committed Nov 20, 2020
1 parent aec54d2 commit d28013e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,10 @@ abstract class RapidsBufferStore(
val bufferToSpill = buffers.nextSpillableBuffer()
if (bufferToSpill != null) {
spillAndFreeBuffer(bufferToSpill, stream)
bufferToSpill.size
} else {
0
}
bufferToSpill.size
}

private def spillAndFreeBuffer(buffer: RapidsBufferBase, stream: Cuda.Stream): Unit = {
Expand Down

0 comments on commit d28013e

Please sign in to comment.