Skip to content

Commit

Permalink
gh-94841: Ensure arena_map_get() is inlined in PyObject_Free() (GH-94842
Browse files Browse the repository at this point in the history
)

(cherry picked from commit 9b3f779)

Co-authored-by: neonene <[email protected]>
  • Loading branch information
miss-islington and neonene authored Jul 14, 2022
1 parent 91f7914 commit 498c649
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the possible performance regression of :c:func:`PyObject_Free` compiled with MSVC version 1932.
2 changes: 1 addition & 1 deletion Objects/obmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,7 @@ static arena_map_bot_t arena_map_root;

/* Return a pointer to a bottom tree node, return NULL if it doesn't exist or
* it cannot be created */
static arena_map_bot_t *
static Py_ALWAYS_INLINE arena_map_bot_t *
arena_map_get(block *p, int create)
{
#ifdef USE_INTERIOR_NODES
Expand Down

0 comments on commit 498c649

Please sign in to comment.