This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 07/10] Add __pthread_set_abort_hook export


Rich Felker <dalias@aerifal.cx> 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.

> I
> 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()
functionality.

-Andi

-- 
ak@linux.intel.com -- Speaking for myself only


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]