libX11: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Nov 9 16:50:53 UTC 2020
src/locking.c | 13 +++++++++++++
src/xlibi18n/lcConv.c | 25 ++++++++++++++++++++-----
src/xlibi18n/lcStd.c | 50 +++++++++++++++++++-------------------------------
src/xlibi18n/lcWrap.c | 33 ++-------------------------------
4 files changed, 54 insertions(+), 67 deletions(-)
New commits:
commit 7cf1729590534e257b851899cf03421b65c538e3
Author: Keith Packard <keithp at keithp.com>
Date: Sat Nov 7 17:02:56 2020 -0800
Don't attempt to unload locale context data
Most locale context users call _XlcCurrentLC, which returns a pointer
which never needs to be passed to _XCloseLC, meaning it has unbounded
lifetime, so that locale data can never be freed.
Remove all reference counting and just leave all locales that were
ever used in memory.
Signed-off-by: Keith Packard <keithp at keithp.com>
Acked-by: Martin Peres <martin.peres at mupuf.org>
commit 87a8fd8051b823636c3c4f3c37c4cfd11fdb880d
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Aug 14 19:20:19 2017 +0200
Don't cache last lcd in _XlcCurrentLC.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=55678
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=68538
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=69088
The way it's currently cached is not thread safe. As long as locale doesn't change, the same object is reused anyway.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Keith Packard <keithp at keithp.com>
Acked-by: Martin Peres <martin.peres at mupuf.org>
commit 7a38c09b82ee2522d987c3da4af8af186e562c61
Author: Keith Packard <keithp at keithp.com>
Date: Sat Nov 7 16:59:37 2020 -0800
Don't cache converters in _Xlcmbtowc and Xlcwctomb
These functions were caching encoding conversion functions in static
variables which is not thread safe. Let the conversion loader do its
job and cache locale to converters there. It's less efficient, but
it's also (now) thread safe.
Signed-off-by: Keith Packard <keithp at keithp.com>
Acked-by: Martin Peres <martin.peres at mupuf.org>
commit b52ba5c209165fc2c533b77b86147b31763299f3
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Aug 14 19:20:20 2017 +0200
Make conv_list thread safe.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=55678
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=68538
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=69088
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Keith Packard <keithp at keithp.com>
Acked-by: Martin Peres <martin.peres at mupuf.org>
More information about the xorg-commit
mailing list