https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117276

Oliver Schönrock <oschonrock at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |https://github.com/oneapi-s
                   |                            |rc/oneTBB/issues/1533

--- Comment #2 from Oliver Schönrock <oschonrock at gmail dot com> ---
Sorry, premature submit on original report comment. 

continuing... 

The attached sort_leak.cpp  (59418) shows the problem. Single threaded sort is
fine, par_unseq is not. 

output:

Single threaded sort:
VM:    14544   RSS:    11648 (kB)
VM:    14616   RSS:    11588 (kB)
VM:    14616   RSS:    11588 (kB)
VM:    14616   RSS:    11588 (kB)
VM:    14616   RSS:    11588 (kB)

par_unseq sort:
VM:    29372   RSS:    17860 (kB)
VM:    33468   RSS:    19652 (kB)
VM:    33468   RSS:    21316 (kB)
VM:    37564   RSS:    23108 (kB)
VM:    37564   RSS:    24772 (kB)

Related bug reports:

Issue filed by me on oneTBB:
https://github.com/oneapi-src/oneTBB/issues/1533

my repo with demo code, instructions and references should they be needed:
https://github.com/oneapi-src/oneTBB/issues/1533

Pull request on oneDPL which fixes it
https://github.com/oneapi-src/oneDPL/pull/1589/files
(that is what my patch is based on)


Solution
--------
As stated above, the attached patch (59419) fixes the issue

Reply via email to