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

bpo-32604: Fix memory leaks in the new _xxsubinterpreters module.#5507

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
Changes from1 commit
Commits
Show all changes
19 commits
Select commitHold shift + click to select a range
e12d641
DECREF cls in _PyCrossInterpreterData_Lookup().
ericsnowcurrentlyJan 30, 2018
ce72eef
DECREF the id in interp_list_all().
ericsnowcurrentlyJan 30, 2018
27bbab7
Avoid raising RunFailedError.
ericsnowcurrentlyJan 31, 2018
c744873
DECREF id in _coerce_id().
ericsnowcurrentlyJan 31, 2018
e982d87
DECREF the original error message.
ericsnowcurrentlyJan 31, 2018
aac9485
Do not explicitly check against INT64_MAX.
ericsnowcurrentlyJan 31, 2018
35f6046
Free cids when done.
ericsnowcurrentlyJan 31, 2018
38d924e
DECREF other in channelid_richcompare().
ericsnowcurrentlyJan 31, 2018
4321ecf
Add items to non-empty channels.
ericsnowcurrentlyFeb 2, 2018
e5a3515
Add struct _sharedns and isolate related memory ops.
ericsnowcurrentlyFeb 2, 2018
0c0fa3d
Clean up memory ops for _sharedexception.
ericsnowcurrentlyFeb 2, 2018
f0d4430
Clean up _PyChannelState memory ops.
ericsnowcurrentlyFeb 3, 2018
4802046
Add _channelref_free().
ericsnowcurrentlyFeb 3, 2018
ac7bad5
Move the RunFailedError definition down.
ericsnowcurrentlyFeb 3, 2018
0689a9c
Do not INCREF after PyErr_Fetch().
ericsnowcurrentlyFeb 3, 2018
9a91a28
DECREF the exception name.
ericsnowcurrentlyFeb 3, 2018
654e59a
Free the channel when we close it.
ericsnowcurrentlyFeb 3, 2018
8ca3c96
Free the data when we are done with it.
ericsnowcurrentlyFeb 3, 2018
702876b
DECREF the ID in channelid_hash().
ericsnowcurrentlyFeb 3, 2018
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
PrevPrevious commit
NextNext commit
Avoid raising RunFailedError.
  • Loading branch information
@ericsnowcurrently
ericsnowcurrently committedFeb 3, 2018
commit27bbab7f66354dd341c2a6b525d56058d6366b5f
12 changes: 7 additions & 5 deletionsLib/test/test__xxsubinterpreters.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -362,13 +362,15 @@ def test_bad_id(self):
def test_from_current(self):
main, = interpreters.list_all()
id = interpreters.create()
script = dedent("""
script = dedent(f"""
import _xxsubinterpreters as _interpreters
_interpreters.destroy({})
""").format(id)
try:
_interpreters.destroy({id})
except RuntimeError:
pass
""")

with self.assertRaises(RuntimeError):
interpreters.run_string(id, script)
interpreters.run_string(id, script)
self.assertEqual(set(interpreters.list_all()), {main, id})

def test_from_sibling(self):
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp