Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-113190: Reenable non-debug interned string cleanup#113601

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Changes from1 commit
Commits
Show all changes
19 commits
Select commitHold shift + click to select a range
666ca33
Reenable non-debug interned string cleanup through _PyUnicode_ClearIn…
eduardo-elizondoDec 31, 2023
23d1aff
Revert test changes due to previously leftover leaks
eduardo-elizondoDec 31, 2023
fd9c7ff
Merge remote-tracking branch 'upstream/main' into reenable_unicode_cl…
eduardo-elizondoJan 15, 2024
ed09466
Add documentation
eduardo-elizondoJan 15, 2024
2608119
Lint docs
eduardo-elizondoJan 15, 2024
17e8817
Lint docs v2
eduardo-elizondoJan 15, 2024
dd1e8b4
Lint docs v3
eduardo-elizondoJan 15, 2024
ce5536b
Lint docs v4
eduardo-elizondoJan 15, 2024
071438f
Lint docs v5
eduardo-elizondoJan 15, 2024
afc7c1d
Lint docs v6
eduardo-elizondoJan 15, 2024
2ec1326
Lint docs v7
eduardo-elizondoJan 15, 2024
e8b9b45
Lint docs v8
eduardo-elizondoJan 15, 2024
175bc40
Lint docs v9
eduardo-elizondoJan 15, 2024
ffe9d03
Fix NEWS message
eduardo-elizondoJan 16, 2024
085b93e
Merge in the main branch
encukouJul 19, 2024
080a853
Remove outdated comment
encukouJul 19, 2024
8484c4b
Merge remote-tracking branch 'upstream/main' into reenable_unicode_cl…
eduardo-elizondoAug 11, 2024
6aee7f5
Addressed Comments
eduardo-elizondoAug 11, 2024
dc3b54f
Update whatsnew
encukouAug 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
Reenable non-debug interned string cleanup through _PyUnicode_ClearIn…
…terned
  • Loading branch information
@eduardo-elizondo
eduardo-elizondo committedDec 31, 2023
commit666ca33e14e7cef8b4c80d5d9763aaa87b531e7a
12 changes: 0 additions & 12 deletionsObjects/unicodeobject.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -14961,17 +14961,6 @@ _PyUnicode_ClearInterned(PyInterpreterState *interp)
}
assert(PyDict_CheckExact(interned));

/* TODO:
* Currently, the runtime is not able to guarantee that it can exit without
* allocations that carry over to a future initialization of Python within
* the same process. i.e:
* ./python -X showrefcount -c 'import itertools'
* [237 refs, 237 blocks]
*
* Therefore, this should remain disabled for until there is a strict guarantee
* that no memory will be left after `Py_Finalize`.
*/
#ifdef Py_DEBUG
/* For all non-singleton interned strings, restore the two valid references
to that instance from within the intern string dictionary and let the
normal reference counting process clean up these instances. */
Expand DownExpand Up@@ -15028,7 +15017,6 @@ _PyUnicode_ClearInterned(PyInterpreterState *interp)
for (Py_ssize_t i=0; i < ids->size; i++) {
Py_XINCREF(ids->array[i]);
}
#endif /* Py_DEBUG */
clear_interned_dict(interp);
}

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp