Commit 724f018
committed
py,ports/stm32: Remove GC test instrumentation causing MemoryErrors.
Remove gc_recently_run and gc_last_run_ms test instrumentation variables
and GC_MIN_INTERVAL_MS logic that was added during debugging. These checks
prevented normal GC behavior and caused MemoryError failures in production.
The GC now runs normally based on MICROPY_GC_ALLOC_THRESHOLD without
artificial delays or double-GC prevention, restoring standard MicroPython
garbage collection behavior.
Signed-off-by: Andrew Leech <andrew@alelec.net>
Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>1 parent 2032aa2 commit 724f018
3 files changed
+4
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | 51 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
762 | 762 | | |
763 | 763 | | |
764 | 764 | | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | 765 | | |
773 | 766 | | |
774 | 767 | | |
| |||
798 | 791 | | |
799 | 792 | | |
800 | 793 | | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
814 | 798 | | |
815 | 799 | | |
816 | 800 | | |
| |||
857 | 841 | | |
858 | 842 | | |
859 | 843 | | |
860 | | - | |
861 | | - | |
862 | | - | |
863 | | - | |
864 | | - | |
865 | | - | |
866 | | - | |
867 | 844 | | |
868 | 845 | | |
869 | 846 | | |
870 | | - | |
871 | | - | |
872 | 847 | | |
873 | 848 | | |
874 | 849 | | |
| |||
941 | 916 | | |
942 | 917 | | |
943 | 918 | | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | 919 | | |
948 | 920 | | |
949 | 921 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | 87 | | |
0 commit comments