Skip to content

Commit

Permalink
configure: disallow "--with-trace-refs"
Browse files Browse the repository at this point in the history
The tracing references feature is not thread-safe without the GIL. I
think it's possible to get the same functionality in a thread-safe way
by traversing the mimalloc heaps (like we do in the garbage collector),
but that's not currently implemented.
  • Loading branch information
colesbury committed Mar 6, 2023
1 parent 7cc3588 commit cefe5df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1669,6 +1669,7 @@ AC_MSG_RESULT($with_trace_refs)

if test "$with_trace_refs" = "yes"
then
AC_MSG_ERROR([--with-trace-refs is not supported in nogil mode])
AC_DEFINE(Py_TRACE_REFS, 1, [Define if you want to enable tracing references for debugging purpose])
fi

Expand Down

0 comments on commit cefe5df

Please sign in to comment.