Commit 9a5e48f
committed
gc_validate_pc(): Exclude imemos, add a test and explain the asserts
The validation is relevant only for traceable userland ruby objects ruby
code could interact with. ZJIT's use of rb_vm_method_cfunc_is()
allocates a CC imemo and was failing this validation when it was
actually fine. Relax the check.1 parent cdb9c25 commit 9a5e48f
2 files changed
+37
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
971 | 971 | | |
972 | 972 | | |
973 | 973 | | |
974 | | - | |
| 974 | + | |
975 | 975 | | |
976 | 976 | | |
977 | 977 | | |
978 | 978 | | |
979 | | - | |
980 | | - | |
981 | | - | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
982 | 984 | | |
983 | 985 | | |
984 | 986 | | |
| |||
988 | 990 | | |
989 | 991 | | |
990 | 992 | | |
991 | | - | |
| 993 | + | |
992 | 994 | | |
993 | 995 | | |
994 | 996 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2813 | 2813 | | |
2814 | 2814 | | |
2815 | 2815 | | |
| 2816 | + | |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
| 2832 | + | |
| 2833 | + | |
| 2834 | + | |
| 2835 | + | |
| 2836 | + | |
| 2837 | + | |
2816 | 2838 | | |
2817 | 2839 | | |
2818 | 2840 | | |
| |||
2826 | 2848 | | |
2827 | 2849 | | |
2828 | 2850 | | |
| 2851 | + | |
2829 | 2852 | | |
2830 | 2853 | | |
2831 | 2854 | | |
2832 | 2855 | | |
2833 | 2856 | | |
2834 | 2857 | | |
2835 | | - | |
| 2858 | + | |
2836 | 2859 | | |
2837 | 2860 | | |
2838 | 2861 | | |
| |||
2846 | 2869 | | |
2847 | 2870 | | |
2848 | 2871 | | |
2849 | | - | |
| 2872 | + | |
| 2873 | + | |
| 2874 | + | |
| 2875 | + | |
| 2876 | + | |
| 2877 | + | |
2850 | 2878 | | |
2851 | 2879 | | |
2852 | 2880 | | |
| |||
0 commit comments