classification
Title: Remove own implementation for thread-local storage
Type: enhancement Stage: resolved
Components: Interpreter Core Versions: Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: haypo, masamoto
Priority: normal Keywords:

Created on 2017-07-03 08:23 by masamoto, last changed 2017-07-05 13:44 by haypo. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 2537 merged masamoto, 2017-07-03 08:49
Messages (5)
msg297543 - (view) Author: Masayuki Yamamoto (masamoto) * Date: 2017-07-03 08:23
CPython has provided the own implementation for thread-local storage (TLS) on Python/thread.c, it's used in the case which a platform has not supplied native TLS.  However, currently all supported platforms (NT and pthreads) have provided native TLS and defined the Py_HAVE_NATIVE_TLS macro with unconditional in any case.
Therefore, I'd propose removing outdated code.

python-dev: https://mail.python.org/pipermail/python-dev/2017-July/148534.html
msg297547 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-07-03 08:54
This change is related to the PEP 539: the new Thread-Local Storage (TLS) API.
msg297572 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-07-03 11:34
New changeset aa0aa0492c5fffe750a26d2ab13737a1a6d7d63c by Victor Stinner (Masayuki Yamamoto) in branch 'master':
bpo-30832: Remove own implementation for thread-local storage (#2537)
https://github.com/python/cpython/commit/aa0aa0492c5fffe750a26d2ab13737a1a6d7d63c
msg297588 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-07-03 14:00
Well done, I didn't see any major outdage (compilation error) on 3.x buildbots ;-)
msg297749 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-07-05 13:44
New changeset 8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 by Victor Stinner in branch 'master':
Revert "bpo-30822: Fix testing of datetime module." (#2588)
https://github.com/python/cpython/commit/8207c17486baece8ed0ac42d9f8d69ecec4ba7e4
History
Date User Action Args
2017-07-05 13:44:56hayposetmessages: + msg297749
2017-07-03 14:00:29hayposetstatus: open -> closed
resolution: fixed
messages: + msg297588

stage: resolved
2017-07-03 11:34:40hayposetmessages: + msg297572
2017-07-03 08:54:59hayposetmessages: + msg297547
2017-07-03 08:49:11masamotosetpull_requests: + pull_request2604
2017-07-03 08:23:53masamotocreate