aalhour / aalhour/PyCOOLC

Epic 5: Memory management / GC

Aperta
#21 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
41
Fork
10
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## Epic 5: Memory management / GC

### Goal: long-running programs don’t leak forever.

- [ ] Pick GC strategy (starting point: mark-and-sweep)
- [ ] Heap allocator:
- [ ] bump pointer allocator initially
- [ ] later: free list / coalescing (optional)
- [ ] GC runtime:
- [ ] mark phase (graph traversal)
- [ ] sweep phase
- [ ] Escape analysis (stack-allocate objects that don't escape the method)
- [ ] Safepoints + root tracking:
- [ ] define safepoints (alloc, call boundaries, loop back-edges, etc.)
- [ ] map stack slots + registers → "this holds an object pointer"
- [ ] Tests:
- [ ] cyclic structures
- [ ] allocation-heavy loops
- [ ] "GC during deep recursion" / stack-heavy programs

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.