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-117657: Fix QSBR race condition #118843

Merged
merged 14 commits into from
May 10, 2024
Merged

gh-117657: Fix QSBR race condition #118843

merged 14 commits into from
May 10, 2024

Commits on May 9, 2024

  1. Configuration menu
    Copy the full SHA
    f3a362d View commit details
    Browse the repository at this point in the history

Commits on May 10, 2024

  1. Configuration menu
    Copy the full SHA
    ec921f7 View commit details
    Browse the repository at this point in the history
  2. pythongh-117657: Acquire a critical section around `SemLock.__{enter,…

    …exit}__` (python#118812)
    
    These methods are purely wrappers around `Semlock.{acquire,release}`,
    which expect a critical section to be held.
    mpage authored and SonicField committed May 10, 2024
    Configuration menu
    Copy the full SHA
    154a3f5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a6bc4e3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    63af4b5 View commit details
    Browse the repository at this point in the history
  5. pythongh-118561: Fix crash involving list.extend in free-threaded bui…

    …ld (python#118723)
    
    The `list_preallocate_exact` function did not zero initialize array
    contents. In the free-threaded build, this could expose uninitialized
    memory to concurrent readers between the call to
    `list_preallocate_exact` and the filling of the array contents with
    items.
    colesbury authored and SonicField committed May 10, 2024
    Configuration menu
    Copy the full SHA
    fa80517 View commit details
    Browse the repository at this point in the history
  6. pythongh-116984: Make mimalloc header includes relative to the curren…

    …t file (python#118808)
    
    Some embedders and extensions include parts of the internal API. The
    pycore_mimalloc.h file is transitively include by a number of other
    internal headers. This avoids include errors for code that was
    already including those headers.
    colesbury authored and SonicField committed May 10, 2024
    Configuration menu
    Copy the full SHA
    e0bb384 View commit details
    Browse the repository at this point in the history
  7. pythongh-118846: Fix PGO tests in free-threaded build (python#118862)

    Avoid immortalizing objects in tests that verify garbage collection of
    classes or modules.
    
    This fixes test_ordered_dict and test_struct.
    colesbury authored and SonicField committed May 10, 2024
    Configuration menu
    Copy the full SHA
    888d3d7 View commit details
    Browse the repository at this point in the history
  8. pythongh-117657: Replace TSAN suppresions with more specific rules (p…

    …ython#118722)
    
    Using `race:` filters out warnings if the function appears anywhere in
    the stack trace. This can hide a lot of unrelated warnings, especially
    for a function like `_PyEval_EvalFrameDefault`, which is somewhere on
    the stack more often than not.
    
    Change all free-threaded suppressions to `race_top:`, which only matches
    the top frame, and add any new suppressions this exposes.
    swtaarrs authored and SonicField committed May 10, 2024
    Configuration menu
    Copy the full SHA
    64a7f49 View commit details
    Browse the repository at this point in the history
  9. pythongh-118851: Default ctx arguments to AST constructors to Load() (p…

    …ython#118854)
    
    Co-authored-by: Alex Waygood <[email protected]>
    2 people authored and SonicField committed May 10, 2024
    Configuration menu
    Copy the full SHA
    bb8677d View commit details
    Browse the repository at this point in the history
  10. Revert "pythongh-115432: Add critical section variant that handles a …

    …NULL object (python#115433)" (python#118861)
    
    This reverts commit ad4f909.
    
    The API ended up not being used.
    colesbury authored and SonicField committed May 10, 2024
    Configuration menu
    Copy the full SHA
    9c4ae02 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6502eb3 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    1dff338 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    0f901c9 View commit details
    Browse the repository at this point in the history