commit | 3ea488aac44887a7cdb30be69580c81a0ca6afe2 | [log] [tgz] |
---|---|---|
author | Sam Gross <colesbury@gmail.com> | Tue Oct 15 19:06:41 2024 |
committer | GitHub <noreply@github.com> | Tue Oct 15 19:06:41 2024 |
tree | 925b843905d373016f38c08431a7658fd10db081 | |
parent | 206de4155b01f6285c5551d2224391fa1fa0ac14 [diff] |
gh-124218: Use per-thread refcounts for code objects (#125216) Use per-thread refcounting for the reference from function objects to their corresponding code object. This can be a source of contention when frequently creating nested functions. Deferred refcounting alone isn't a great fit here because these references are on the heap and may be modified by other libraries.