ntdll: Reduce stack usage of virtual memory functions by storing sigset in static memory.

Grazvydas Ignotas notasas at gmail.com
Mon Sep 28 11:16:44 CDT 2015


On Sun, Sep 27, 2015 at 6:05 PM, Michael Müller <michael at fds-team.de> wrote:
> Am 27.09.2015 um 00:07 schrieb Sebastian Lackner:
>> From: Michael Müller <michael at fds-team.de>
>>
>> For https://bugs.winehq.org/show_bug.cgi?id=34558
>>
>> Depending on the compiler optimization flags there is still no guarantee that
>> everything will fit into the available stack space, no matter if its declared
>> as static or not.
>
> As suspected the idea does not work for all optimization levels. At
> least GCC merges the content of the functions when using -O2 and
> therefore reintroduces the problem - even __attribute__ ((noinline)) is
> not sufficient.

Try __attribute__ ((noclone,noinline))

Gražvydas



More information about the wine-devel mailing list