Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b933ba61804bdad9b40c5e8d3f55c4da93824dd6
      
https://github.com/WebKit/WebKit/commit/b933ba61804bdad9b40c5e8d3f55c4da93824dd6
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-01-26 (Mon, 26 Jan 2026)

  Changed paths:
    M Source/WTF/wtf/PlatformJSCOnly.cmake
    M Source/WTF/wtf/PlatformWin.cmake
    M Source/bmalloc/libpas/src/libpas/pas_config.h
    M Source/bmalloc/libpas/src/libpas/pas_lock.c
    M Source/bmalloc/libpas/src/libpas/pas_lock.h

  Log Message:
  -----------
  [libpas] Use futex-based locking in Windows / FreeBSD
https://bugs.webkit.org/show_bug.cgi?id=306203
rdar://168860161

Reviewed by Justin Michaud and Sosuke Suzuki.

This patch adds futex locking in Windows / FreeBSD as well.
Also remove spinlock, as all libpas-suppoting platforms support
this new locking. Also move slow path code to C side to avoid bloating
code for locking.

* Source/WTF/wtf/PlatformJSCOnly.cmake:
* Source/WTF/wtf/PlatformWin.cmake:
* Source/bmalloc/libpas/src/libpas/pas_config.h:
* Source/bmalloc/libpas/src/libpas/pas_lock.c:
(pas_lock_futex_wait):
(pas_lock_futex_wake):
(pas_lock_lock_slow):
(pas_lock_unlock_slow):
* Source/bmalloc/libpas/src/libpas/pas_lock.h:
(pas_lock_construct_disabled):
(pas_lock_mutex_setname):
(pas_lock_lock):
(pas_lock_try_lock):
(pas_lock_unlock):
(pas_lock_test_held):
(pas_lock_assert_held):
(pas_lock_testing_assert_held):
(pas_lock_futex_wait):
(pas_lock_futex_wake):

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



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

Reply via email to