| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
It works fine and generally follows the sketch in the issue. There are 17 failed tests with this PR in Py_STACKREF_DEBUG mode. 17 tests failed:
test.test_gdb.test_backtrace test.test_gdb.test_misc
test.test_gdb.test_pretty_print test.test_io.test_general
test.test_multiprocessing_fork.test_misc
test.test_multiprocessing_forkserver.test_misc
test.test_multiprocessing_spawn.test_manager
test.test_multiprocessing_spawn.test_misc test_external_inspection
test_faulthandler test_frame test_interpreters test_profiling
test_pyrepl test_regrtest test_repl test_threading
Compare with Here test.test_io.test_general is a bit flaky, but test_frame is a real find by new borrow checker. -> % ./python -m unittest -v test.test_frame.TestFrameLocals.test_overwrite_locals test_overwrite_locals (test.test_frame.TestFrameLocals.test_overwrite_locals) ... Fatal Python error: _Py_stackref_close: StackRef with ID 2401080 closed while borrows 1 refs at Objects/frameobject.c:288. Opened at Python/generated_cases.c.h:1239 There's no real problem here but we can rewrite it a little to prevent this error and make code related to frame->f_overwritten_fast_locals clearer. |
Sorry, something went wrong.
There was a problem hiding this comment.
Nice! Just some minor inline comments/suggestions. Feel free to push back if you don't agree.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM - thanks!
Sorry, something went wrong.
Sorry, something went wrong.
Add borrow checking to the stackref debug mode --------- Co-authored-by: mpage <mpage@meta.com>
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.