<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/gc.c, branch v1.5.1</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.5.1</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.5.1'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2015-11-07T14:26:11+00:00</updated>
<entry>
<title>py: Clear finalizer flag when calling gc_free.</title>
<updated>2015-11-07T14:26:11+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2015-11-06T22:32:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=7f3c0d1ea8fa21df3b2078c7189f2b26fe36da59'/>
<id>urn:sha1:7f3c0d1ea8fa21df3b2078c7189f2b26fe36da59</id>
<content type='text'>
Currently, the only place that clears the bit is in gc_collect.
So if a block with a finalizer is allocated, and subsequently
freed, and then the block is reallocated with no finalizer then
the bit remains set.

This could also be fixed by having gc_alloc clear the bit, but
I'm pretty sure that free is called way less than alloc, so doing
it in free is more efficient.
</content>
</entry>
<entry>
<title>py: Eliminate some cases which trigger unused parameter warnings.</title>
<updated>2015-09-04T15:53:46+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-09-04T15:53:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3a2171e4061f3a6e3f00c28edf78ff9473355887'/>
<id>urn:sha1:3a2171e4061f3a6e3f00c28edf78ff9473355887</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Improve allocation policy of qstr data.</title>
<updated>2015-07-14T21:56:32+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-06-13T20:53:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ade9a052365247be5ed4ce8b53c2164a576a4a05'/>
<id>urn:sha1:ade9a052365247be5ed4ce8b53c2164a576a4a05</id>
<content type='text'>
Previous to this patch all interned strings lived in their own malloc'd
chunk.  On average this wastes N/2 bytes per interned string, where N is
the number-of-bytes for a quanta of the memory allocator (16 bytes on 32
bit archs).

With this patch interned strings are concatenated into the same malloc'd
chunk when possible.  Such chunks are enlarged inplace when possible,
and shrunk to fit when a new chunk is needed.

RAM savings with this patch are highly varied, but should always show an
improvement (unless only 3 or 4 strings are interned).  New version
typically uses about 70% of previous memory for the qstr data, and can
lead to savings of around 10% of total memory footprint of a running
script.

Costs about 120 bytes code size on Thumb2 archs (depends on how many
calls to gc_realloc are made).
</content>
</entry>
<entry>
<title>py: Convert occurrences of non-debug printf to mp_printf.</title>
<updated>2015-04-16T14:30:16+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-04-11T11:15:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e72cda99fd5fc9e7c6476eb8574c4401d3ef9560'/>
<id>urn:sha1:e72cda99fd5fc9e7c6476eb8574c4401d3ef9560</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Make heap printing compatible with 16-bit word size.</title>
<updated>2015-04-03T13:11:13+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-03-31T22:07:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=12ab9eda8dcebb166679cb3b2e8b61facedced68'/>
<id>urn:sha1:12ab9eda8dcebb166679cb3b2e8b61facedced68</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Put mp_sys_path, mp_sys_argv and gc_collected in mp_state_ctx_t.</title>
<updated>2015-02-07T17:24:10+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-02-07T17:24:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e1e359ff59d6bbf09441cc1f3965be63f1046182'/>
<id>urn:sha1:e1e359ff59d6bbf09441cc1f3965be63f1046182</id>
<content type='text'>
Without mp_sys_path and mp_sys_argv in the root pointer section of the
state, their memory was being incorrectly collected by GC.
</content>
</entry>
<entry>
<title>py, unix, lib: Allow to compile with -Wold-style-definition.</title>
<updated>2015-01-12T22:34:38+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-12T22:34:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=abc1959e2c8170cc37d2e1fa1654f1266479d666'/>
<id>urn:sha1:abc1959e2c8170cc37d2e1fa1654f1266479d666</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Add (commented out) code to gc_dump_alloc_table for qstr info.</title>
<updated>2015-01-11T14:37:06+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-11T14:37:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ec21405821dd997d337a0f387db9b1a45b32834b'/>
<id>urn:sha1:ec21405821dd997d337a0f387db9b1a45b32834b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove obsolete bss-related code/build features</title>
<updated>2015-01-08T14:29:44+00:00</updated>
<author>
<name>stijn</name>
<email>stinos@zoho.com</email>
</author>
<published>2015-01-08T09:32:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=afd6c8e1d2a2c24595194879481987cec3b57f8a'/>
<id>urn:sha1:afd6c8e1d2a2c24595194879481987cec3b57f8a</id>
<content type='text'>
GC for unix/windows builds doesn't make use of the bss section anymore,
so we do not need the (sometimes complicated) build features and code related to it
</content>
</entry>
<entry>
<title>py: Put all global state together in state structures.</title>
<updated>2015-01-07T20:33:00+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-01T23:30:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b4b10fd350852e321624d74983cca286091b55a1'/>
<id>urn:sha1:b4b10fd350852e321624d74983cca286091b55a1</id>
<content type='text'>
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.
</content>
</entry>
</feed>
