8000 gh-133885: Use locks instead of critical sections for _zstd by emmatyping · Pull Request #134289 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-133885: Use locks instead of critical sections for _zstd #134289

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

Merged
merged 18 commits into from
May 23, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unused includes
  • Loading branch information
emmatyping committed May 21, 2025
commit 005d1a06ba8cd1fcef01f4fbcc57b010657f0f7e
1 change: 0 additions & 1 deletion Modules/_zstd/compressor.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "_zstdmodule.h"
#include "buffer.h"
#include "zstddict.h"
#include "internal/pycore_lock.h" // PyMutex_IsLocked

#include <stddef.h> // offsetof()
#include <zstd.h> // ZSTD_*()
Expand Down Expand Up @@ -402,7 +401,7 @@
ZSTD_freeCCtx(self->cctx);
}

assert(!PyMutex_IsLocked(&self->lock));

Check failure on line 404 in Modules/_zstd/compressor.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

implicit declaration of function ‘PyMutex_IsLocked’; did you mean ‘PyMutex_Lock’? [-Werror=implicit-function-declaration]

Check failure on line 404 in Modules/_zstd/compressor.c

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

implicit declaration of function ‘PyMutex_IsLocked’; did you mean ‘PyMutex_Lock’? [-Werror=implicit-function-declaration]

Check failure on line 404 in Modules/_zstd/compressor.c

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

implicit declaration of function ‘PyMutex_IsLocked’; did you mean ‘PyMutex_Lock’? [-Werror=implicit-function-declaration]

Check failure on line 404 in Modules/_zstd/compressor.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

implicit declaration of function ‘PyMutex_IsLocked’; did you mean ‘PyMutex_Lock’? [-Werror=implicit-function-declaration]

/* Py_XDECREF the dict after free the compression context */
Py_CLEAR(self->dict);
Expand Down
1 change: 0 additions & 1 deletion Modules/_zstd/decompressor.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class _zstd.ZstdDecompressor "ZstdDecompressor *" "&zstd_decompressor_type_spec"
#include "_zstdmodule.h"
#include "buffer.h"
#include "zstddict.h"
#include "internal/pycore_lock.h" // PyMutex_IsLocked

#include <stdbool.h> // bool
#include <stddef.h> // offsetof()
Expand Down
Loading
0