Skip to content

Commit 9547bdb

Browse files
committed
don't unload tbbmalloc_proxy
1 parent 7859edc commit 9547bdb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

R/zzz.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ loadTbbLibrary <- function(name) {
4747
if (!is.null(.dllInfo))
4848
library.dynam.unload("RcppParallel", libpath)
4949

50-
# unload tbbmalloc_proxy if we loaded it
51-
if (!is.null(.tbbMallocProxyDllInfo))
52-
dyn.unload(.tbbMallocProxyDllInfo[["path"]])
50+
# NOTE: we do not explicitly unload tbbmalloc_proxy as switching
51+
# the allocator at runtime can cause issues
5352

5453
# unload tbbmalloc if we loaded it
5554
if (!is.null(.tbbMallocDllInfo))

0 commit comments

Comments
 (0)