Uh oh!
There was an error while loading. Please reload this page.
gh-149335: Avoid JIT trace buffer asserts with overhead above FITNESS_INITIAL - #149633
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
markshannon
commented
May 21, 2026
I think this is the wrong approach. We need to either reduce the fitness or increase the buffer size. Since the fitness numbers should be tailored for giving us good traces, I'd increase the buffer size a bit. Maybe define the fitness and then set the buffer size to that plus a small bit to account for loop closure/entry overheads. #defineFITNESS_INITIAL UOP_MAX_TRACE_LENGTHuse #defineUOP_MAX_TRACE_LENGTH (FITNESS_INITIAL + OVERHEAD)The |
FITNESS_INITIALcocolato
commented
May 21, 2026
thanks for review! updated. |
vstinner
commented
May 22, 2026
This change should be backported to Python 3.15 which is also affected by the issue. |
Thanks @cocolato for the PR, and @markshannon for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15. |
GH-150245 is a backport of this pull request to the 3.15 branch. |
bedevere-bot
commented
May 24, 2026
|
The trace buffer now reserves a small fixed overhead above FITNESS_INITIAL for entry and loop-closing uops.