This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH 07/10] Add __pthread_set_abort_hook export
Rich Felker <firstname.lastname@example.org> writes:
> I object to the existence of such a function entirely. It creates
> global state where the desired behavior is local. If such a function
> were to exist, it should be setting an attribute of the particular
> mutex to store the function pointer, not setting a global.
TSX transactions always flatten, there is no abort to a nested
transaction. Any abort always has to be handled in the outer layer.
TSX aborts are by definition global.
> agree with everybody else that external tools, not introspective
> interfaces, are the right way to handle something like this.
I don't think it makes sense to rely on external tools for assert()
email@example.com -- Speaking for myself only