mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Added atomic operations to `scanner_begin()` and `scanner_end()` to prevent race conditions on the `executing` flag in free-threaded builds. Also added tests for concurrent usage of the `re` module. Without the atomic operations, `test_scanner_concurrent_access()` triggers `assert(self->executing)` failures, or a thread sanitizer run emits errors. |
||
|---|---|---|
| .. | ||
| clinic | ||
| sre.c | ||
| sre.h | ||
| sre_constants.h | ||
| sre_lib.h | ||
| sre_targets.h | ||