Skip to content

Commit 1b84486

Browse files
committed
Omit mutex_tid member from default build.
1 parent 9976b32 commit 1b84486

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Include/internal/pycore_interp_structs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,10 @@ struct types_state {
566566
managed_static_type_state initialized[_Py_MAX_MANAGED_STATIC_EXT_TYPES];
567567
} for_extensions;
568568
PyMutex mutex;
569+
#ifdef Py_GIL_DISABLED
569570
// used to check correct usage of the above mutex
570571
unsigned long long mutex_tid;
572+
#endif
571573

572574
// Borrowed references to type objects whose
573575
// tp_version_tag % TYPE_VERSION_CACHE_SIZE

0 commit comments

Comments
 (0)