[!amd64 will follow later]
Requested by: dchagin
Differential D30987
Only handle robust mutexes and sigfastblock on exec and exit for native FreeBSD ABIs kib on Jul 1 2021, 6:14 PM. Authored by Tags None Referenced Files
Subscribers None
Details
[!amd64 will follow later] Requested by: dchagin
Diff Detail
Event TimelineComment Actions it would be nice to eliminate umtx_thread_exit() call from linux_exit(). Comment Actions No need to call umtx_cleanup_thread() from cloudabi/linux thread exit syscalls either Comment Actions Looks ok, but why? Now in the native case we converted direct function calls to an indirect call, but umtx and sigfastblock already do nothing in the !native case. Comment Actions It was requested by dchagin. Obvious but vague reason is to not call freebsd-abi specific methods on other ABIs. But my guess is that linuxolator would get robust mutexes rework that might reuse parts of native code, including the structures pointed from struct thread. Then calling freebsd-native directly would be problematic. Comment Actions It makes some sense to hide sigfastblock this way, but umtx is not really tied to any particular ABI as I understand it. So it feels to me that the umtx code should internally handle any extensions required to support the futex implementation. Probably I'm just quibbling. |