-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
static_partitioner + global_control triggers an unbounded memory leak #1403
Comments
Here are my run logs |
Hi @lennoxho, I was able to reproduce described behavior. So basically it happens because with |
Description
We found using
tbb::static_partitioner
while atbb::global_control
is active causes steady and seemingly unbounded memory leaks as tasks were executed.A minimal repro is attached below.
The issue goes away if we do any of the following
tbb::static_partitioner
withtbb::auto_partitioner
tbb::global_control
tbb::parallel_for
call withtbb::task_arena::execute
Reproduced with the following setup
Minimal Repro
Makefile
tbb-leak-test.cpp
Steps to reproduce:
Makefile
&tbb-leak-test.cpp
make TBB_DIR=<path to oneTBB installation>
Ending Max RSS = 3079648 kB
)The text was updated successfully, but these errors were encountered: