Commit 3dfad72
committed
Move VALUE address registration to before assignment
The documentation says that this is necessary:
https://github.com/ruby/ruby/blob/86049a98754507a480e657274b4d38b07c46e6ea/include/ruby/internal/gc.h#L397
Also use the more descriptive alias function rb_gc_register_address instead of rb_global_variable.1 parent 5722d3b commit 3dfad72
3 files changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
942 | 942 | | |
943 | 943 | | |
944 | 944 | | |
| 945 | + | |
945 | 946 | | |
946 | | - | |
947 | 947 | | |
948 | 948 | | |
949 | 949 | | |
| |||
953 | 953 | | |
954 | 954 | | |
955 | 955 | | |
| 956 | + | |
| 957 | + | |
956 | 958 | | |
957 | | - | |
958 | 959 | | |
959 | | - | |
960 | 960 | | |
961 | 961 | | |
962 | 962 | | |
| |||
973 | 973 | | |
974 | 974 | | |
975 | 975 | | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
976 | 979 | | |
977 | | - | |
978 | 980 | | |
979 | | - | |
980 | 981 | | |
981 | | - | |
982 | 982 | | |
983 | 983 | | |
984 | 984 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| 384 | + | |
384 | 385 | | |
385 | | - | |
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | 128 | | |
| 129 | + | |
130 | 130 | | |
0 commit comments