Visitar URL original
dict: Internal cleanup by methane · Pull Request #31641 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20260328113211/https://github.com/python/cpython/pull/31641
Skip to content
/ cpython Public

dict: Internal cleanup#31641

Merged
methane merged 2 commits intopython:mainfrom
methane:dict
Mar 2, 2022
Merged

dict: Internal cleanup#31641
methane merged 2 commits intopython:mainfrom
methane:dict

Conversation

@methane
Copy link
Copy Markdown
Member

@methane methane commented Mar 2, 2022

  • Make empty_key from split table to combined table.
  • Use unicode_get_hash() when possible.

@sweeneyde
Copy link
Copy Markdown
Member

I think this may have introduced a reference leak:

.\python.bat -m test test_types -R3:3
Running Debug|x64 interpreter...
0:00:00 Run tests sequentially
0:00:00 [1/1] test_types
beginning 6 repetitions
123456
......
test_types leaked [33, 33, 33] references, sum=99
test_types failed (reference leak)

== Tests result: FAILURE ==

1 test failed:
    test_types

@methane
Copy link
Copy Markdown
Member Author

methane commented Mar 3, 2022

Thank you. I leaked reference of statically allocated object (thus it don't leak memory).
Fixed in GH-31650.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants