Skip to content

Commit 06bc3bd

Browse files
committed
Don't inline escape-y instrumentation functions
1 parent c02ff3a commit 06bc3bd

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Python/instrumentation.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ call_instrumentation_vector(
11941194
return err;
11951195
}
11961196

1197-
int
1197+
Py_NO_INLINE int
11981198
_Py_call_instrumentation(
11991199
PyThreadState *tstate, int event,
12001200
_PyInterpreterFrame *frame, _Py_CODEUNIT *instr)
@@ -1203,7 +1203,7 @@ _Py_call_instrumentation(
12031203
return call_instrumentation_vector(instr, tstate, event, frame, instr, 2, args);
12041204
}
12051205

1206-
int
1206+
Py_NO_INLINE int
12071207
_Py_call_instrumentation_arg(
12081208
PyThreadState *tstate, int event,
12091209
_PyInterpreterFrame *frame, _Py_CODEUNIT *instr, PyObject *arg)
@@ -1212,7 +1212,7 @@ _Py_call_instrumentation_arg(
12121212
return call_instrumentation_vector(instr, tstate, event, frame, instr, 3, args);
12131213
}
12141214

1215-
int
1215+
Py_NO_INLINE int
12161216
_Py_call_instrumentation_2args(
12171217
PyThreadState *tstate, int event,
12181218
_PyInterpreterFrame *frame, _Py_CODEUNIT *instr, PyObject *arg0, PyObject *arg1)
@@ -1248,7 +1248,7 @@ _Py_call_instrumentation_jump(
12481248
return dest;
12491249
}
12501250

1251-
static void
1251+
Py_NO_INLINE static void
12521252
call_instrumentation_vector_protected(
12531253
PyThreadState *tstate, int event,
12541254
_PyInterpreterFrame *frame, _Py_CODEUNIT *instr, Py_ssize_t nargs, PyObject *args[])
@@ -1265,7 +1265,7 @@ call_instrumentation_vector_protected(
12651265
assert(_PyErr_Occurred(tstate));
12661266
}
12671267

1268-
void
1268+
Py_NO_INLINE void
12691269
_Py_call_instrumentation_exc2(
12701270
PyThreadState *tstate, int event,
12711271
_PyInterpreterFrame *frame, _Py_CODEUNIT *instr, PyObject *arg0, PyObject *arg1)

0 commit comments

Comments
 (0)