summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
Diffstat (limited to 'py')
-rw-r--r--py/gc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/py/gc.c b/py/gc.c
index 75fc82382..72eecd7ef 100644
--- a/py/gc.c
+++ b/py/gc.c
@@ -104,11 +104,13 @@
#ifdef LOG_HEAP_ACTIVITY
volatile uint32_t change_me;
-
+#pragma GCC push_options
+#pragma GCC optimize ("O0")
void __attribute__ ((noinline)) gc_log_change(uint32_t start_block, uint32_t length) {
change_me += start_block;
change_me += length; // Break on this line.
}
+#pragma GCC pop_options
#endif
// TODO waste less memory; currently requires that all entries in alloc_table have a corresponding block in pool