| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| Fix a reference leak in the JIT when a trace is rewound after encountering | ||
| unsupported bytecode. | ||
|
Comment thread
Copy link
Copy Markdown
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Qualitymaybe just say when tracing is rewound? I think this get's triggered for standard supported JIT traces hit natural endings such as jumps
Sorry, something went wrong.
All reactions
Copy link
Copy Markdown
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityIt seems too detailed. We can ask others?👀
Sorry, something went wrong.
johng reacted with thumbs up emoji
All reactions
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -789,6 +789,9 @@ _PyJit_translate_single_bytecode_to_trace( | |
| { | ||
| _PyUOpInstruction *curr = uop_buffer_last(trace); | ||
| while (curr->opcode != _SET_IP && uop_buffer_length(trace) > 2) { | ||
| if (_PyUop_Flags[curr->opcode] & HAS_RECORDS_VALUE_FLAG) { | ||
| Py_XDECREF((PyObject *)(uintptr_t)curr->operand0); | ||
|
Comment thread
Copy link
Copy Markdown
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Qualitywe now have a very similar pattern three times in this file, maybe worth seeing if it's worth to make it a common operation
Sorry, something went wrong.
All reactions
Copy link
Copy Markdown
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityI think it would be better to focus on the bug fix scope of this PR. However, currently the JIT has been suspended and only bug fixes are accepted
Sorry, something went wrong.
All reactions
|
||
| } | ||
| trace->next--; | ||
| curr = uop_buffer_last(trace); | ||
| } | ||
| Expand Down | ||
| Back | FazBrowse Home | New Git URL |
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.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityShould this test assert that the rewinding happened? Or would that make the test too brittle?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.