-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
gh-138431: JIT Optimizer --- Fix round-tripping references for str and tuple #138458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I don't think this has anything to do with string interning, but that |
Yes I'm aware. Sorry that I didn't put it in the first sentence. What I was talking about (interning/immortalization) is a quirk of why the test script is written that way. For some reason if it's in a separate script, it stays non-immortal but interned, but if it's in the same test file, it stays immortal and interned, causing some weird behavior. |
Co-Authored-By: Mark Shannon <9448417+markshannon@users.noreply.github.com>
…nto fix-ref-str-tup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Thanks @Fidget-Spinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
Sorry, @Fidget-Spinner, I could not cleanly backport this to
|
The problem is that when something round-trips through
str
ortuple
, it isn't guaranteed to maintain the same reference information.The test script deals \with some quirks of immortalization/interning in CPython.
_POP_TOP_NOP
callingstr()
on variable due to wrong reference information #138431