mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
gh-132336: Mark a few "slow path" functions used by the interpreter loop as noinline (#132337)
Mark a few functions used by the interpreter loop as noinline These are all the slow path and should not be inlined into the interpreter loop. Unfortunately, they end up being inlined with LTO and the current PGO task.
This commit is contained in:
parent
5f1aed1c7e
commit
619edb802e
3 changed files with 22 additions and 22 deletions
|
@ -1427,7 +1427,7 @@ skip_to_next_entry(unsigned char *p, unsigned char *end) {
|
|||
|
||||
#define MAX_LINEAR_SEARCH 40
|
||||
|
||||
static int
|
||||
static Py_NO_INLINE int
|
||||
get_exception_handler(PyCodeObject *code, int index, int *level, int *handler, int *lasti)
|
||||
{
|
||||
unsigned char *start = (unsigned char *)PyBytes_AS_STRING(code->co_exceptiontable);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue