Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7232022d3ce5b65f4579de0becaf60cf825922ec
      
https://github.com/WebKit/WebKit/commit/7232022d3ce5b65f4579de0becaf60cf825922ec
  Author: Sosuke Suzuki <[email protected]>
  Date:   2026-01-18 (Sun, 18 Jan 2026)

  Changed paths:
    M Source/WTF/wtf/StackBounds.cpp

  Log Message:
  -----------
  [WTF] Use `GetCurrentThreadStackLimits` for Windows stack bounds calculation
https://bugs.webkit.org/show_bug.cgi?id=305717

Reviewed by Yusuke Suzuki.

Segmentation Faults caused by preCommitStackMemory were frequently reported in 
Bun's Windows port.

To address this, we applied a patch [1] to our fork that uses 
GetCurrentThreadStackLimits instead of VirtualQuery,
and released it as Bun 1.3.6. Several days have passed since Bun 1.3.6 was 
released, and the same issue has not occurred.

I'm not sure if this issue has been reported in the WebKit Windows Port, but it 
should potentially occur there as well.
Therefore, I believe we should also apply the patch we applied to Bun to 
upstream.

[1]: https://github.com/oven-sh/WebKit/pull/128

* Source/WTF/wtf/StackBounds.cpp:
(WTF::StackBounds::currentThreadStackBoundsInternal):

Canonical link: https://commits.webkit.org/305789@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to