- 03 Mar, 2015 1 commit
-
-
Damien George authored
-
- 07 Jan, 2015 1 commit
-
-
Damien George authored
This patch consolidates all global variables in py/ core into one place, in a global structure. Root pointers are all located together to make GC tracing easier and more efficient.
-
- 01 Jan, 2015 1 commit
-
-
Damien George authored
Addresses issue #1022.
-
- 31 Oct, 2014 1 commit
-
-
Damien George authored
gc.enable/disable are now the same as CPython: they just control whether automatic garbage collection is enabled or not. If disabled, you can still allocate heap memory, and initiate a manual collection.
-
- 23 Oct, 2014 1 commit
-
-
Damien George authored
-
- 25 Sep, 2014 1 commit
-
-
Damien George authored
It seems most sensible to use size_t for measuring "number of bytes" in malloc and vstr functions (since that's what size_t is for). We don't use mp_uint_t because malloc and vstr are not Micro Python specific.
-
- 21 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
It defines types used by all other headers. Fixes #691.
-
- 03 May, 2014 1 commit
-
-
Damien George authored
Blanket wide to all .c and .h files. Some files originating from ST are difficult to deal with (license wise) so it was left out of those. Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
-
- 26 Apr, 2014 1 commit
-
-
Damien George authored
This is a small optimisation to zero out only the additional bytes that the caller did not ask for.
-
- 25 Apr, 2014 1 commit
-
-
Damien George authored
Also add some more debugging output to gc_dump_alloc_table(). Now that newly allocated heap is always zero'd, maybe we just make this a policy for the uPy API to keep it simple (ie any new implementation of memory allocation must zero all allocations). This follows the D language philosophy. Before this patch, a previously used memory block which had pointers in it may still retain those pointers if the new user of that block does not actually use the entire block. Eg, if I want 5 blocks worth of heap, I actually get 8 (round up to nearest 4). Then I never use the last 3, so they keep their old values, which may be pointers pointing to the heap, hence preventing GC. In rare (or maybe not that rare) cases, this leads to long, unintentional "linked lists" within the GC'd heap, filling it up completely. It's pretty rare, because you have to reuse exactly that memory which is part of this "linked list", and reuse it in just the right way. This should fix issue #522, and might have something to do with issue #510.
-
- 10 Apr, 2014 2 commits
-
-
Damien George authored
Previously, a failed malloc/realloc would throw an exception, which was not caught. I think it's better to keep the parser free from NLR (exception throwing), hence this patch.
-
Damien George authored
-
- 05 Apr, 2014 1 commit
-
-
Damien George authored
-
- 04 Apr, 2014 1 commit
-
-
Damien George authored
A malloc/realloc fail now throws MemoryError.
-
- 03 Apr, 2014 1 commit
-
-
mux authored
-
- 02 Apr, 2014 1 commit
-
-
Damien George authored
-
- 17 Mar, 2014 1 commit
-
-
xbe authored
Remove unnecessary includes. Add includes that improve portability.
-
- 26 Feb, 2014 1 commit
-
-
Damien George authored
-
- 16 Feb, 2014 1 commit
-
-
Paul Sokolovsky authored
In particular, unix outputs to stderr, to allow to run testsuite against micropython built with debug output (by redirecting stderr to /dev/null).
-
- 12 Feb, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 11 Feb, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 10 Feb, 2014 1 commit
-
-
Paul Sokolovsky authored
If there's malloc and memset, then there's no need for calloc, especially if we need to implement it ourselves.
-
- 30 Jan, 2014 1 commit
-
-
Paul Sokolovsky authored
To alloc complete memory alloc flow tracing.
-
- 29 Jan, 2014 1 commit
-
-
Damien George authored
-
- 03 Jan, 2014 5 commits
-
-
Paul Sokolovsky authored
mpconfig.h will automatically pull mpconfigport.h.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
This is just max value of current_bytes_allocated seen.
-
Paul Sokolovsky authored
Unlike total_bytes_allocated, this tracks m_free()'s too.
-
Paul Sokolovsky authored
-
- 29 Dec, 2013 1 commit
-
-
Damien authored
-
- 23 Oct, 2013 1 commit
-
-
Damien authored
-
- 04 Oct, 2013 1 commit
-
-
Damien authored
-