qdbplang / qdbp

MIT License
50 stars 1 forks source link

New Malloc/Free Strategy #42

Closed dghosef closed 10 months ago

dghosef commented 10 months ago

We can have everything use the freelist strategy, but have the freelists be dynamically resizable. This is because the maximum possible object size can be pre-determined. Also realistically, there won't be more than, say, 2^13(8192) fields in a struct, so we just need to make 13 freelists. When we run out of memory, we can garbage collect easily.

dghosef commented 10 months ago

The only time we will need malloc/free is for gmp, capture arrays and strings