30 Commits (8427c5b76c9326ab3bc060fb729c1f0dbe17facd)

Author SHA1 Message Date
Damien George 109c1de015 py: Make gc.enable/disable just control auto-GC; alloc is still allowed. 10 years ago
Damien George 37378f8a9d py: Clean up edge cases of malloc/realloc/free. 10 years ago
Damien George b0261341d3 py: For malloc and vstr functions, use size_t exclusively for int type. 10 years ago
Paul Sokolovsky 59c675a64c py: Include mpconfig.h before all other includes. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Damien George 32bef315be py, gc: Only zero out the extra bytes at the end of the heap chunk. 11 years ago
Damien George daab651c5c py, gc: Zero out newly allocated blocks in the GC. 11 years ago
Damien George 58ba4c3b4c py: Check explicitly for memory allocation failure in parser. 11 years ago
Damien George f0954e3fac py: Add emergency exception object for when heap allocation fails. 11 years ago
Damien George 12bab72d93 Improve GC finalisation code; add option to disable it. 11 years ago
Damien George 6902eeda25 py: Add m_malloc_fail function to handle memory allocation error. 11 years ago
mux 4f7e9f5c44 Implement del 11 years ago
Damien George 70f33cde48 py: Fix up so that it can compile without float. 11 years ago
xbe efe3422394 py: Clean up includes. 11 years ago
Damien George 1dc76af7bf py: Remove name of var arg from macros with var args. 11 years ago
Paul Sokolovsky 44739e280e Make DEBUG_printf() a proper function, implementation is port-dependent. 11 years ago
Paul Sokolovsky 520e2f58a5 Replace global "static" -> "STATIC", to allow "analysis builds". Part 2. 11 years ago
Paul Sokolovsky b62c30b4bc Generalize malloc-via-gc-heap support, make it available to unix port. 11 years ago
Paul Sokolovsky 58ff93bc7c Get rid of calloc(). 11 years ago
Paul Sokolovsky cdd2c62e07 realloc(): Log original memory ptr too. 11 years ago
Damien George 2d15c1216d stm: Add optional memory debugging output. 11 years ago
Paul Sokolovsky b372bfca21 Rename default config file to mpconfig.h, and port's to mpconfigport.h. 11 years ago
Paul Sokolovsky ef18102b9e Make it possible to turn off collecting memory stats (MICROPY_MEM_STATS). 11 years ago
Paul Sokolovsky 780f555b2e Add new alloc metric: peak_bytes_allocated. 11 years ago
Paul Sokolovsky 02de0c57d2 Add new alloc metric: current_bytes_allocated. 11 years ago
Paul Sokolovsky 43f1c8080a m_realloc: Account only allocation size difference in total_bytes_allocated. 11 years ago
Damien 732407f1bf Change memory allocation API to require size for free and realloc. 11 years ago
Damien 8b3a7c2237 Fix func decls with no arguments: () -> (void). 11 years ago
Damien 429d71943d Initial commit. 11 years ago