diff --git a/r/R/arrow-package.R b/r/R/arrow-package.R index f4a93b2619523..21bbfd7ca51b4 100644 --- a/r/R/arrow-package.R +++ b/r/R/arrow-package.R @@ -82,8 +82,9 @@ } .onUnload <- function(...) { - # When running valgrind we need to wait for the thread pools to finish - # running background tasks or else we may get spurious memory leaks reported. + # When running valgrind this helps other threads run any tasks that + # may be completing, reducing the risk of valgrind reporting a spurious + # memory leak. if (on_linux_dev()) { Sys.sleep(1) }