https://bugs.winehq.org/show_bug.cgi?id=52492
--- Comment #15 from David Kahurani k.kahurani@gmail.com --- Created attachment 74912 --> https://bugs.winehq.org/attachment.cgi?id=74912 modified patch
(In reply to Fabian Maurer from comment #14)
I see, thanks for the explanation. If you want, I can see what I can do. But I have a few open MRs already that I want to get in first, so it might take some time.
Hey Fabian.
I modified the patch(conversion from recursive to iterative) and the code seems to work perfectly.
The modification was to remove the list nodes if they're no longer needed which fixes the problem with too much memory usage. You can see the changes I made in the attached patch. Basically adding jobs to the tail of the list and removing nodes which are no longer required.
Can you please submit the patch?