From: Matheus Tavares Bernardino Date: Tue, 11 Aug 2020 14:27:04 GMT Subject: Re: What's cooking in git.git (Aug 2020, #02; Mon, 10) Message-ID: In-Reply-To: Hi, Junio On Mon, Aug 10, 2020 at 4:44 PM Junio C Hamano wrote: > > * mt/hash-to-hex-thread-safety (2020-06-26) 2 commits > - hex: make hash_to_hex_algop() and friends thread-safe > - compat/win32/pthread: add pthread_once() > > hash_to_hex() used a set of rotating static buffers, which was not > safe to use in a threaded environment. This has been made safer by > using thread-local storage. > > Expecting a reroll. > cf. I think we can drop this one. Dscho suggested using a different approach for this conversion, with Coccinelle [1]. I won't be able to look at it right now, but if someone wants to give it a try, [2] would be a good starting point. [1]: https://lore.kernel.org/git/nycvar.QRO.7.76.6.2007161214270.54@tvgsbejvaqbjf.bet/ [2]: https://lore.kernel.org/git/a35a9334-6db2-d8e3-8ce5-15f15a9005e1@web.de/