| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
// NOTE: ref of mangled can be leaked on ADDOP* and VISIT macros due to early returns
// fixing would require an overhaul of these macros
That's unfortunate, but this change already fix multiple issues and is worth it. The issues described in the comment can be fixed in a follow-up change is someone is interested.
Sorry, something went wrong.
| _Py_DECLARE_STR(format, ".format"); | ||
| ADDOP_I(c, loc, LOAD_FAST, 0); | ||
| ADDOP_LOAD_CONST(c, loc, value_with_fake_globals); | ||
| ADDOP_LOAD_CONST_NEW(c, loc, value_with_fake_globals); |
There was a problem hiding this comment.
That's a real bugfix, but in practice _Py_ANNOTATE_FORMAT_VALUE_WITH_FAKE_GLOBALS=2 which is an immortal small integer, and so refcount is not really an issue. It's not worth it to backport this change in practice.
Sorry, something went wrong.
|
Merged, thanks for your fixes. |
Sorry, something went wrong.
Would the preferred approach here be to introduce the same macros but accepting an object to DecRef. Similar to how some of the other existing do? |
Sorry, something went wrong.
|
You may move to a subfunction and DECREF(mangled) if the subfunction fails. |
Sorry, something went wrong.
|
Ah ok, I can raise the issue and work on the refactor over the next couple days. |
Sorry, something went wrong.
* main: pythongh-145458: use `self.skip_idle` consistently in the tachyon profiler (python#145459) pythongh-146615: Fix format specifiers in Objects/ directory (pythonGH-146620) pythongh-146615: Fix format specifiers in Python/ directory (pythonGH-146619) pythongh-146615: Fix format specifiers in test cextensions (pythonGH-146618) pythongh-146615: Fix format specifiers in extension modules (pythonGH-146617) pythongh-146615: Fix crash in __get__() for METH_METHOD descriptors with invalid type argument (pythonGH-146634) pythongh-146376: Reduce timeout in Emscripten GHA workflow (python#146378) pythongh-146442: Fix various bugs in compiler pipeline (python#146443) pythongh-146238: Support half-floats in the array module (python#146242) pythongh-145056: Add support for merging collections.UserDict and frozendict (pythonGH-146465) pythongh-145056: Fix merging of collections.OrderedDict and frozendict (pythonGH-146466) pythongh-139633: Run netrc file permission check only once per parse (pythonGH-139634)
Fix null derefs, missing decrefs, and unchecked returns from bug report.
Fix null derefs, missing decrefs, and unchecked returns from bug report.
| Back | FazBrowse Home | New Git URL |
Compiler Pipeline (codegen + compile + symtable + flowgraph + assemble) | 6 FIX
codegen.c (6,632 lines) — 4 FIX
compile.c (1,772 lines) — 1 FIX
assemble.c (802 lines) — 1 FIX
symtable.c (3,355 lines) — 0 FIX (clean)
flowgraph.c (4,088 lines) — 0 FIX (clean)
Did not fix