diff options
author | Sam Gross <colesbury@gmail.com> | 2023-12-07 13:47:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-07 13:47:55 (GMT) |
commit | 2d76be251d0aee89f76e6fa5a63fa1ad3f2b76cf (patch) | |
tree | 3b37a23b864e6ae88736cf7b5fcc64b340d66d4d /Python/frozen_modules | |
parent | 9f67042f28bf886a9bf30fed6795d26cff255f1e (diff) | |
download | cpython-2d76be251d0aee89f76e6fa5a63fa1ad3f2b76cf.zip cpython-2d76be251d0aee89f76e6fa5a63fa1ad3f2b76cf.tar.gz cpython-2d76be251d0aee89f76e6fa5a63fa1ad3f2b76cf.tar.bz2 |
gh-111962: Make dtoa thread-safe in `--disable-gil` builds. (#112049)
This updates `dtoa.c` to avoid using the Bigint free-list in --disable-gil builds and
to pre-computes the needed powers of 5 during interpreter initialization.
* gh-111962: Make dtoa thread-safe in `--disable-gil` builds.
This avoids using the Bigint free-list in `--disable-gil` builds
and pre-computes the needed powers of 5 during interpreter initialization.
* Fix size of cached powers of 5 array.
We need the powers of 5 up to 5**512 because we only jump straight to
underflow when the exponent is less than -512 (or larger than 308).
* Rename Py_NOGIL to Py_GIL_DISABLED
* Changes from review
* Fix assertion placement
Diffstat (limited to 'Python/frozen_modules')
0 files changed, 0 insertions, 0 deletions