48 Commits (8762fe8b4c6a7608d48daa8458e6501fafd3eafc)

Author SHA1 Message Date
Angus Gratton decf8e6a8b all: Remove the "STATIC" macro and just use "static" instead. 8 months ago
IhorNehrutsa 6e79b55dc8 py/malloc: Fix DEBUG_print() args in m_realloc_maybe. 1 year ago
Damien George fca5701f74 py/malloc: Introduce m_tracked_calloc, m_tracked_free functions. 3 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
Damien George 7768a8c38d py/malloc: Put { on separate line for funcs that have selective sigs. 5 years ago
Damien George fcf621b066 py/malloc: Give a compile warning if using finaliser without GC. 6 years ago
Damien George 26d4a6fa45 py/malloc: Remove unneeded code checking m_malloc return value. 7 years ago
Paul Sokolovsky 9ebc037eee py/malloc: Allow to use debug logging if !MICROPY_MALLOC_USES_ALLOCATED_SIZE. 7 years ago
Paul Sokolovsky 88a8043a27 py/malloc: MICROPY_MEM_STATS requires MICROPY_MALLOC_USES_ALLOCATED_SIZE. 7 years ago
Damien George ca21aed0a1 py: Make m_malloc_fail() have void return type, since it doesn't return. 7 years ago
Stefan Naumann ace9fb5405 py: Add verbose debug compile-time flag MICROPY_DEBUG_VERBOSE. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Damien George 5ffe1d8dc0 py/gc: Add MICROPY_GC_CONSERVATIVE_CLEAR option to always zero memory. 8 years ago
Damien George e9d1a94bf0 py/malloc: Provide a proper malloc-based implementation of realloc_ext. 9 years ago
Damien George ade9a05236 py: Improve allocation policy of qstr data. 10 years ago
Damien George d891452a73 py: Add MICROPY_MALLOC_USES_ALLOCATED_SIZE to allow simpler malloc API. 10 years ago
Damien George b4b10fd350 py: Put all global state together in state structures. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
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