WinAPI thread stack size

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
napco
Newbie
Newbie
Posts: 1
Joined: Wed Jun 01, 2022 4:30 am

WinAPI thread stack size

Post by napco »

Hello, respected "wine" developers.

Thank you for the such incredible software.
It works great for the majority of windows applications.
But we have some issue about the multithreading WIN32 application, that creates several thousands threads.

Each windows thread has its own stack and sizeof that stack might be changed in WinAPI (CreateThread function) while thread is created. The application we have tested is set up appropriate stack size (64K) for each thread that is created.

The issue we come across with "wine" and tested application considers the max virtual memory size that Win32 application is used.
Application has ran by wine can't create amount of threads that more than about 3500, because each thread consumes/reserves 1Mb of virtual memory instead of value 64K that was set up in application programmatically.

Please, advice us if it possible to change default reserved stack size for threads in application started by wine?

Thank you in advance.
Locked