|
|
@@ -144,7 +144,7 @@ void *m_realloc(void *ptr, size_t new_num_bytes) {
|
|
|
MP_STATE_MEM(current_bytes_allocated) += diff;
|
|
|
UPDATE_PEAK();
|
|
|
#endif
|
|
|
- DEBUG_printf("realloc %p, %d, %d : %p\n", ptr, old_num_bytes, new_num_bytes, new_ptr);
|
|
|
+ //DEBUG_printf("realloc %p, %d, %d : %p\n", ptr, old_num_bytes, new_num_bytes, new_ptr);
|
|
|
return new_ptr;
|
|
|
}
|
|
|
|
|
|
@@ -168,7 +168,7 @@ void *m_realloc_maybe(void *ptr, size_t new_num_bytes, bool allow_move) {
|
|
|
UPDATE_PEAK();
|
|
|
}
|
|
|
#endif
|
|
|
- DEBUG_printf("realloc %p, %d, %d : %p\n", ptr, old_num_bytes, new_num_bytes, new_ptr);
|
|
|
+ //DEBUG_printf("realloc %p, %d, %d : %p\n", ptr, old_num_bytes, new_num_bytes, new_ptr);
|
|
|
return new_ptr;
|
|
|
}
|
|
|
|
|
|
@@ -181,7 +181,7 @@ void m_free(void *ptr) {
|
|
|
#if MICROPY_MEM_STATS
|
|
|
MP_STATE_MEM(current_bytes_allocated) -= num_bytes;
|
|
|
#endif
|
|
|
- DEBUG_printf("free %p, %d\n", ptr, num_bytes);
|
|
|
+ //DEBUG_printf("free %p, %d\n", ptr, num_bytes);
|
|
|
}
|
|
|
|
|
|
#if MICROPY_MEM_STATS
|