Re: Restartable Sequences system call merged into Linux
From: Florian Weimer
Date: Fri Jun 15 2018 - 01:09:52 EST
On 06/14/2018 03:01 PM, Mathieu Desnoyers wrote:
Another alternative would be to somehow let glibc handle the registration,
perhaps only doing it for applications expressing their interest for rseq.
That's not really possible. We can't rely on the visibility of symbol
bindings due to lazy binding and hidden visibility. Registration of
intent by other means will not work because if it is done from user
code, some other library may have already launched a thread at this point.
(It's also a moot point if we want to use restartable sequences in glibc
itself.)
Thanks,
Florian