You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh-3108: Avoid materializing f_locals for KI protection (#3110)
* gh-3108: avoid materializing f_locals by using weakrefs to code objects instead
* enable ki protection on async_generator objects
* avoid adding an extra coroutine wrapper to Task coros
* fix returning the wrong object in (enable|disable)_ki_protection
* remove KIProtectionSignature from _check_type_completeness.json
* fix refcycles
* add newsfragment
* fix mypy
* now that the type annotation for enable_ki_protection is fixed, we need to fix the use of Any
* pre-commit
* add test for ki protection leaking accross local functions
* add fix for ki protection leaking accross local functions
* do slots properly
* python 3.8 support
* test reading currently_ki_protected doesn't freeze locals
* cover some tricky bits of ki.py
* cover a potentially impossible scenario
* eek out some last coverage of the eeking out coverage tests
* even more partial coverage
* Update src/trio/_core/_ki.py
* cleaner _IdRef.__eq__
* if the current_task().coro.cr_frame is in the stack ki_protection_enabled is current_task()._ki_protected
* Update newsfragments/3108.bugfix.rst
* avoid copying code objects for ki protected function
* Update src/trio/_core/_ki.py
* Update src/trio/_core/_ki.py
Co-authored-by: EXPLOSION <[email protected]>
* remove workaround for 3.8
* Add docs and update news
Co-Authored-By: oremanj <[email protected]>
* wrap ki protection locals demos in async def so they work
* add newsfragment for 2670
* Apply suggestions from code review
* use peo614
* add tests for passing on inspect flags
* 'return; yield' isn't considered covered
* Update newsfragments/3108.bugfix.rst
* [pre-commit.ci] auto fixes from pre-commit.com hooks
---------
Co-authored-by: EXPLOSION <[email protected]>
Co-authored-by: oremanj <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
0 commit comments