Skip to content

Commit 8af2d18

Browse files
[3.13] gh-124043: Disallow mixing --with-trace-refs and --disable-gil (GH-124078) (#124138)
gh-124043: Disallow mixing `--with-trace-refs` and `--disable-gil` (GH-124078) Tracing references is not currently thread-safe in the free-threaded build. (cherry picked from commit 3b45df0) Co-authored-by: Peter Bierma <[email protected]>
1 parent 9d21c46 commit 8af2d18

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Building using :option:`--with-trace-refs` is (temporarily) disallowed when the
2+
GIL is disabled.

configure

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1777,6 +1777,10 @@ then
17771777
[Define if you want to enable tracing references for debugging purpose])
17781778
fi
17791779

1780+
if test "$disable_gil" = "yes" -a "$with_trace_refs" = "yes";
1781+
then
1782+
AC_MSG_ERROR([--disable-gil cannot be used with --with-trace-refs])
1783+
fi
17801784

17811785
# Check for --enable-pystats
17821786
AC_MSG_CHECKING([for --enable-pystats])

0 commit comments

Comments
 (0)