Title: [292267] trunk/Source/WebKit
- Revision
- 292267
- Author
- [email protected]
- Date
- 2022-04-02 09:36:36 -0700 (Sat, 02 Apr 2022)
Log Message
[Cocoa] semaphore_timedwait() can return KERN_ABORTED
https://bugs.webkit.org/show_bug.cgi?id=238694
Reviewed by Geoffrey Garen.
I was hitting this assert while debugging WebKit today.
* Platform/IPC/darwin/IPCSemaphoreDarwin.cpp:
(IPC::Semaphore::waitFor):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (292266 => 292267)
--- trunk/Source/WebKit/ChangeLog 2022-04-02 16:22:20 UTC (rev 292266)
+++ trunk/Source/WebKit/ChangeLog 2022-04-02 16:36:36 UTC (rev 292267)
@@ -1,3 +1,15 @@
+2022-04-02 Myles C. Maxfield <[email protected]>
+
+ [Cocoa] semaphore_timedwait() can return KERN_ABORTED
+ https://bugs.webkit.org/show_bug.cgi?id=238694
+
+ Reviewed by Geoffrey Garen.
+
+ I was hitting this assert while debugging WebKit today.
+
+ * Platform/IPC/darwin/IPCSemaphoreDarwin.cpp:
+ (IPC::Semaphore::waitFor):
+
2022-04-02 Yury Semikhatsky <[email protected]>
GTK doesn't compile with ENABLE_ACCESSIBILITY=0
Modified: trunk/Source/WebKit/Platform/IPC/darwin/IPCSemaphoreDarwin.cpp (292266 => 292267)
--- trunk/Source/WebKit/Platform/IPC/darwin/IPCSemaphoreDarwin.cpp 2022-04-02 16:22:20 UTC (rev 292266)
+++ trunk/Source/WebKit/Platform/IPC/darwin/IPCSemaphoreDarwin.cpp 2022-04-02 16:36:36 UTC (rev 292267)
@@ -84,7 +84,7 @@
Seconds waitTime = timeout.secondsUntilDeadline();
auto seconds = waitTime.secondsAs<unsigned>();
auto ret = semaphore_timedwait(m_semaphore, { seconds, static_cast<clock_res_t>(waitTime.nanosecondsAs<uint64_t>() - seconds * NSEC_PER_SEC) });
- ASSERT(ret == KERN_SUCCESS || ret == KERN_OPERATION_TIMED_OUT || ret == KERN_TERMINATED);
+ ASSERT(ret == KERN_SUCCESS || ret == KERN_OPERATION_TIMED_OUT || ret == KERN_TERMINATED || ret == KERN_ABORTED);
return ret == KERN_SUCCESS;
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes