This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 02/10] Add the low level infrastructure for pthreads lockelision with TSX
On 01/13/2013 03:46 PM, Andi Kleen wrote:
>> I'm going to be suggesting we should expose a generic API and
>> environment variables.
>
> I think an program API is a bad idea. I don't want programs with these
> tunables hard coded. I don't consider them an ABI and reserve
> the right to change them at any time. Tunables are for experiments,
> not for hardcoding forever.
An API and ABI are two completely different things.
I agree that the tunables *should not* be considered an ABI,
they are part of the implementation and vary from major release
to major release e.g. 2.18 to 2.19.
However, the interface to get or set a tunable should be
well defined.
Say we use integer values to specify the tunable, we need
only deprecate the value's use at runtime and return EINVAL
when the user tries to get or set that tunable.
The ABI is unbroken.
Cheers,
Carlos.