Commit 25b615a
committed
Fix gcguard_delete for rb_objspace_call_finalizer
rb_objspace_call_finalizer calls dfree functions in the order in which
the objects are lined up on the heap. So the gcguard object may be
freed before the objects guarded in it. This change avoids the
TypeError occurred on TypedData_Get_Struct in such the case.1 parent 85df349 commit 25b615a
1 file changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | | - | |
| 65 | + | |
64 | 66 | | |
65 | | - | |
66 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| |||
0 commit comments