1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-11-21 23:10:14 +00:00

port to C11 memory model

We don't know of any problems with the previous code on practical
platforms, but it's safer to be portable.
Problem reported by Andy Heninger in:
http://mm.icann.org/pipermail/tz/2014-September/021599.html
* localtime.c (VOLATILE): Remove.  All uses removed.
(gmtcheck): Don't access gmt_is_set until we have the lock.
This may be significantly slower, but it's safer.
(localtime_tzset): Likewise.  This change isn't significantly
slower, though; it's more of a refactoring.
* NEWS: Document this.
This commit is contained in:
Paul Eggert
2014-09-21 08:29:03 -07:00
parent 0eb01e8a0c
commit 9f224b2078
2 changed files with 6 additions and 9 deletions

3
NEWS
View File

@ -30,9 +30,10 @@ Unreleased, experimental changes
An access to uninitalized data has been fixed.
(Thanks to Jörg Richter for reporting the problem.)
When THREAD_SAFE is defined, the code ports to the C11 memory model.
A memory leak has been fixed if ALL_STATE and THREAD_SAFE are defined
and two threads race to initialize data used by gmtime-like functions.
(Thanks to Andy Heninger for reporting the problem.)
(Thanks to Andy Heninger for reporting the problems.)
Changes affecting build procedure