Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 51024b1e8ca6ac7a91c9e8f61a4d8ee092f7f3e8
      
https://github.com/WebKit/WebKit/commit/51024b1e8ca6ac7a91c9e8f61a4d8ee092f7f3e8
  Author: Dan Hecht <[email protected]>
  Date:   2026-04-23 (Thu, 23 Apr 2026)

  Changed paths:
    M Source/JavaScriptCore/b3/air/AirAllocateRegistersByGreedy.cpp

  Log Message:
  -----------
  [JSC] Don't assert on self comparison in buildCoalescingGroups
https://bugs.webkit.org/show_bug.cgi?id=313005
rdar://175382009

Reviewed by Yijia Huang.

Technically, the C++ standard requires comparators to satisfy strict
weak ordering, including irreflexivity (comp(a,a) == false). Apparently,
some older libc++ sort implementations might be invoking comp(a, a), so
don't assert in that case. The code is already doing the right thing by
returning false.

* Source/JavaScriptCore/b3/air/AirAllocateRegistersByGreedy.cpp:
(JSC::B3::Air::Greedy::GreedyAllocator::buildCoalescingGroups):

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



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

Reply via email to