[Webkit-unassigned] [Bug 210068] [WPE] Fails to build on musl C library on Linux
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jun 8 14:31:10 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=210068
--- Comment #16 from Pablo Saavedra <psaavedra at igalia.com> ---
Comment on attachment 396213
--> https://bugs.webkit.org/attachment.cgi?id=396213
jsc stack adjusts
View in context: https://bugs.webkit.org/attachment.cgi?id=396213&action=review
>>>> b/Source/JavaScriptCore/runtime/OptionsList.h:53
>>>> +constexpr unsigned jscReservedZoneSize = 16 * KB;
>>>
>>> This is not correct. Darwin libc should have 5MB stack etc. Please reduce the stack size only when using musl.
>>
>> Are the stack size adjustments still needed after the patch for
>> bug #208223 has landed? It looks to me that setting a known-to-work
>> value for DEFAULT_THREAD_STACK_SIZE_IN_KB when building with Musl
>> should be enough ️
>
> Since Musl doesn't expose any __MUSL__ definition I dont see other alternative rather set a cmake flag -DUSE_MUSL
Could be enough are reverse logic?
```
#if OS(LINUX) && !defined(__GLIBC__)
constexpr unsigned jscMaxPerThreadStack = 80 * KB;
constexpr unsigned jscSoftReservedZoneSize = 32 * KB;
constexpr unsigned jscReservedZoneSize = 16 * KB;
#else
constexpr unsigned jscMaxPerThreadStack = 5 * MB;
constexpr unsigned jscSoftReservedZoneSize = 128 * KB;
constexpr unsigned jscReservedZoneSize = 64 * KB;
#endif
```
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200608/c16e0ec1/attachment.htm>
More information about the webkit-unassigned
mailing list