Performance gain by avoiding arguments check is very small (less then 1%).
Amit
amitchoudhary0523@gmail.com
Tue Sep 30 01:55:47 GMT 2025
On Tue, Sep 30, 2025, 1:07 AM Joseph Myers <josmyers@redhat.com> wrote:
> On Mon, 29 Sep 2025, Amit wrote:
>
> > """"It is so less that it is better to validate the arguments to avoid
> > crashes, etc.""""
>
> Actually, reliably crashing a program on a bug (such as passing a null
> pointer to a function whose interface specifies that's not valid) can be
> much safer than continuing execution after undefined behavior.
>
> --
> Joseph S. Myers
> josmyers@redhat.com
I am not going to get into any discussion because I have learned that glibc
people are defensive people and they will defend their wrongdoings.
------------
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20250930/1e97506a/attachment.htm>
More information about the Libc-alpha
mailing list