[webkit-dev] WTF StackBounds not compatible with Windows fiber threads & custom fiber or thread stack size
barraclough at apple.com
Tue Aug 30 11:34:49 PDT 2011
I had a partially working solution to this using the deallocation stack member of the Win32 Thread Information Block, see https://bugs.webkit.org/show_bug.cgi?id=26276 & http://en.wikipedia.org/wiki/Win32_Thread_Information_Block – but I didn't manage to get this working consistently. Perhaps a Windows expert may be able to build on this.
Bug #26276 would be a great place to be having this discussion, so that anything useful is recorded.
On Aug 29, 2011, at 9:08 PM, Jacques Quidu wrote:
> WTF current implementation of StackBounds is not quite compatible with Windows fiber threads and/or custom stack sizes:
> we have successfully implemented support for Windows fiber threads in StackBounds & fixed some 64 issues but we are still stuck on how to determine thread or fiber allocated stack size...
> From the fiber or thread context, i can only get the stack base & stack current pointer but not the allocated stack size: any idea on how to get it assuming that i cannot get stack size from the executable stack size because our main app might use cooperative fiber threads with variable stack size, along with preemptive threads created from WebKit ?
> For now the only workaround i think about is to pass the fiber stack size as fiber data while creating the fiber in our main app & get it in StackBounds with GetFiberData() using a custom define to filter with our app impl: but it means adding code specific to our app in JavacriptCore/WTF which i would like to avoid if it is possible.
> Kind regards,
> Jacques Quidu
> Graphics Software Engineer
> E-Mail: jquidu at hotmail.fr
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev