Skip to content

Commit d342864

Browse files
committed
Disable specialization for free-threaded build
1 parent 043f978 commit d342864

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Python/bytecodes.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,11 @@ dummy_func(
294294
* marshalling can intern strings and make them immortal. */
295295
PyObject *obj = GETITEM(FRAME_CO_CONSTS, oparg);
296296
value = PyStackRef_FromPyObjectNew(obj);
297+
#ifdef ENABLE_SPECIALIZATION
297298
if (this_instr->op.code == LOAD_CONST) {
298299
this_instr->op.code = _Py_IsImmortal(obj) ? LOAD_CONST_IMMORTAL : LOAD_CONST_MORTAL;
299300
}
301+
#endif
300302
}
301303

302304
inst(LOAD_CONST_MORTAL, (-- value)) {

Python/generated_cases.c.h

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)