Commit ff1f874
committed
Move tp_clear workaround to .NET
In Python 3.14, the objects __dict__ seems to already be half
deconstructed, leading to crashes during garbage collection.
Since gc in Python is single-threaded (I think :)), it should
be fine to have a single static for this. If that is not true,
we can always use a thread-local instead.1 parent cb16d01 commit ff1f874
File tree
5 files changed
+11
-23
lines changed- src/runtime
- Native
- Types
- tests
5 files changed
+11
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
| |||
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
54 | | - | |
55 | 52 | | |
56 | 53 | | |
57 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
| 377 | + | |
| 378 | + | |
377 | 379 | | |
378 | 380 | | |
379 | 381 | | |
| |||
385 | 387 | | |
386 | 388 | | |
387 | 389 | | |
388 | | - | |
389 | | - | |
| 390 | + | |
390 | 391 | | |
391 | | - | |
392 | | - | |
393 | | - | |
| 392 | + | |
| 393 | + | |
394 | 394 | | |
395 | 395 | | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
| 396 | + | |
| 397 | + | |
405 | 398 | | |
406 | 399 | | |
407 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
408 | 404 | | |
409 | 405 | | |
410 | 406 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
942 | 942 | | |
943 | 943 | | |
944 | 944 | | |
945 | | - | |
946 | 945 | | |
947 | 946 | | |
948 | 947 | | |
| |||
984 | 983 | | |
985 | 984 | | |
986 | 985 | | |
987 | | - | |
988 | 986 | | |
989 | 987 | | |
990 | 988 | | |
| |||
1027 | 1025 | | |
1028 | 1026 | | |
1029 | 1027 | | |
1030 | | - | |
1031 | 1028 | | |
1032 | 1029 | | |
1033 | 1030 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
308 | 307 | | |
309 | 308 | | |
310 | 309 | | |
| |||
0 commit comments