bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] memset_explicit: port to older MS-Windows


From: Paul Eggert
Subject: Re: [PATCH] memset_explicit: port to older MS-Windows
Date: Mon, 26 Dec 2022 08:58:39 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 12/26/22 08:50, Bruno Haible wrote:
For compilers other than GCC and clang, we are betting on a trick with
'volatile'. I'm not sure it won't break in the future. But at least for
now, with MSVC, the unit tests still pass.

Thanks for doing the unit tests. Yes, the hope is that this good is good enough for today's compilers, and that tomorrow's compilers will implement C23 memset_explicit anyway so this code will be irrelevant.

Given the underlying hardware issues, memset_explicit is best-effort anyway. (Plus, you should see how Emacs misuses it! Oh my. I suggested an improvement for that but there were objections and I haven't had the time or patience to wade through it.)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]