Skip to content

Conversation

brandtbucher
Copy link
Member

@brandtbucher brandtbucher commented Jul 31, 2023

There's currently an off-by-one error during trace construction that causes incorrect values to be loaded from the inline caches.

This fix results in a significant reduction in deoptimization events, and a dramatic improvement in our ability to stay on trace!

@brandtbucher brandtbucher added type-bug An unexpected behavior, bug, or error interpreter-core (Objects, Python, Grammar, and Parser dirs) labels Jul 31, 2023
@brandtbucher brandtbucher requested a review from gvanrossum July 31, 2023 20:43
@brandtbucher brandtbucher self-assigned this Jul 31, 2023
Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I'm surprised this never showed when I tested things. I guess it just caused excessive cache failures. :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants