gh-138431: JIT Optimizer --- Fix round-tripping references for str and tuple#138458
gh-138431: JIT Optimizer --- Fix round-tripping references for str and tuple#138458Fidget-Spinner merged 5 commits intopython:mainfrom
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
|
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 |
…str and tuple (pythonGH-138458) Co-authored-by: Mark Shannon <9448417+markshannon@users.noreply.github.com>
The problem is that when something round-trips through
strortuple, it isn't guaranteed to maintain the same reference information.The test script deals \with some quirks of immortalization/interning in CPython.
_POP_TOP_NOPcallingstr()on variable due to wrong reference information #138431