Test program:
#include <tbb/parallel_invoke.h>
int main(void)
{
tbb::parallel_invoke([]{},[]{});
return 0;
}
- Compiled using
g++ -std=c++11 tmp.cpp -ltbb
Checked with
valgrind --tool=memcheck --track-origins=yes \ --leak-check=full --log-file=report ./a.out`
libtbb
version:4.0
,valgrind
version:3.8.1
.
Part of the above test result:
possibly lost: 1,980 bytes in 6 blocks
Question is:
Is this a TBB
bug?
Or is this possible lost
actually safe, it's just some codes that valgrind does not consider safe?