Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-111962: Make dtoa thread-safe in --disable-gil builds. #112049

Merged
merged 5 commits into from
Dec 7, 2023

Commits on Nov 20, 2023

  1. pythongh-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.
    colesbury committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    d53c7f4 View commit details
    Browse the repository at this point in the history
  2. 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).
    colesbury committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    4de2fb8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    893f264 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2023

  1. Changes from review

    colesbury committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    4907b59 View commit details
    Browse the repository at this point in the history
  2. Fix assertion placement

    colesbury committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    d9536e5 View commit details
    Browse the repository at this point in the history