Skip to content

Commit 871dc4c

Browse files
committed
First try to fix..
1 parent bd4516d commit 871dc4c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Include/cpython/optimizer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ PyAPI_FUNC(_PyExecutorObject *) PyUnstable_GetExecutor(PyCodeObject *code, int o
109109

110110
void _Py_ExecutorInit(_PyExecutorObject *, const _PyBloomFilter *);
111111
void _Py_ExecutorDetach(_PyExecutorObject *);
112+
int _Py_ExecutorClear(_PyExecutorObject *);
112113
void _Py_BloomFilter_Init(_PyBloomFilter *);
113114
void _Py_BloomFilter_Add(_PyBloomFilter *bloom, void *obj);
114115
PyAPI_FUNC(void) _Py_Executor_DependsOn(_PyExecutorObject *executor, void *obj);

Python/optimizer.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,8 +1617,9 @@ _Py_ExecutorDetach(_PyExecutorObject *executor)
16171617
Py_DECREF(executor);
16181618
}
16191619

1620-
static int
1621-
executor_clear(_PyExecutorObject *executor)
1620+
1621+
int
1622+
_Py_ExecutorClear(_PyExecutorObject *executor)
16221623
{
16231624
if (!executor->vm_data.valid) {
16241625
return 0;
@@ -1644,6 +1645,11 @@ executor_clear(_PyExecutorObject *executor)
16441645
Py_DECREF(executor);
16451646
return 0;
16461647
}
1648+
static int
1649+
executor_clear(_PyExecutorObject *executor)
1650+
{
1651+
return _Py_ExecutorClear(executor);
1652+
}
16471653

16481654
void
16491655
_Py_Executor_DependsOn(_PyExecutorObject *executor, void *obj)

0 commit comments

Comments
 (0)