qstr pool in memory not garbage collected

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
amar123deep
Posts: 12
Joined: Tue Sep 27, 2016 2:29 pm

qstr pool in memory not garbage collected

Post by amar123deep » Thu Dec 08, 2016 8:50 am

Hi, I am porting an IoT software stack with micropython as a library. Currently looking into garbage collection. I am able to release most of the stuff except qstr pool which is created after executing mp_store_name. I execute this function to fill the class instance.

Any help in releasing this from memory?

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: qstr pool in memory not garbage collected

Post by dhylands » Thu Dec 08, 2016 7:02 pm

Currently, I don't think that is any way to release the qstr memory. qstr's are shared, and the code that uses them just uses a qstr index.

So it would need a separate garbage collection phase.

Post Reply