Skip to content

Commit 3b45df0

Browse files
gh-124043: Disallow mixing --with-trace-refs and --disable-gil (#124078)
Tracing references is not currently thread-safe in the free-threaded build.
1 parent 44052b5 commit 3b45df0

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)