Repository navigation
Commit 9e3353b
Prevent module shadow check inlining
Summary:
Mark `_PyModule_IsPossiblyShadowing` as no-inline in Python 3.14, 3.15, and main (3.16).
The helper contains two `PATH_MAX`-sized wide-character buffers. PGO indirect-call promotion caused it to be folded into `PyObject_GetAttr` in 3.14, increasing every attribute lookup stack frame by about 32 KiB and allowing recursive calls to skip the physical-stack recovery margin. The annotation keeps those buffers in a separate frame entered only by module shadowing diagnostics.
Adds managed pyimport patches for all three source trees.
Reviewed By: alexmalyshev
Differential Revision: D123615531
fbshipit-source-id: b0fa0f521244da8793c0ec5a211a80999418a9d21 parent a9f4439 commit 9e3353b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1235 | 1235 | | |
1236 | 1236 | | |
1237 | 1237 | | |
1238 | | - | |
| 1238 | + | |
1239 | 1239 | | |
1240 | 1240 | | |
1241 | 1241 | | |
| |||
0 commit comments