Skip to content

Commit ae4b856

Browse files
remove _PyTypes_AfterFork
1 parent 1d96329 commit ae4b856

3 files changed

Lines changed: 0 additions & 8 deletions

File tree

Include/internal/pycore_typeobject.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ extern PyStatus _PyTypes_InitTypes(PyInterpreterState *);
4141
extern void _PyTypes_FiniTypes(PyInterpreterState *);
4242
extern void _PyTypes_FiniExtTypes(PyInterpreterState *interp);
4343
extern void _PyTypes_Fini(PyInterpreterState *);
44-
extern void _PyTypes_AfterFork(void);
4544
extern void _PyTypes_FiniCachedDescriptors(PyInterpreterState *);
4645

4746
static inline PyObject **

Objects/typeobject.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6134,11 +6134,6 @@ is_dunder_name(PyObject *name)
61346134
return 0;
61356135
}
61366136

6137-
void
6138-
_PyTypes_AfterFork(void)
6139-
{
6140-
}
6141-
61426137
/* Internal API to look for a name through the MRO.
61436138
This returns a strong reference, and doesn't set an exception!
61446139
If nonzero, version is set to the value of type->tp_version at the time of

Python/pystate.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,6 @@ _PyRuntimeState_ReInitThreads(_PyRuntimeState *runtime)
420420
}
421421
#endif
422422

423-
_PyTypes_AfterFork();
424-
425423
_PyThread_AfterFork(&runtime->threads);
426424

427425
return _PyStatus_OK();

0 commit comments

Comments
 (0)