Added more notes

This commit is contained in:
Justin Ethier 2015-10-14 23:15:58 -04:00
parent e99301024a
commit 057c40eba8
2 changed files with 10 additions and 0 deletions

2
gc-notes.txt Normal file
View file

@ -0,0 +1,2 @@
Phase 1 (gc-dev) - Add gc.h, make sure it compiles.
Phase 2 (gc-dev2) - Change how strings are allocated, to clean up the code and be compatible with a new GC algorithm.

View file

@ -2420,6 +2420,14 @@ to handle this detail yet. and it is very important to get right
thoughts: thoughts:
- worth having a write barrier for globals? that is, only GC those that - worth having a write barrier for globals? that is, only GC those that
were modified. just an idea... were modified. just an idea...
- KEEP IN MIND AN OVERALL GOAL, that this should try to be as close as
possible to the cheney algorithm in terms of performance. so obviously we
want to try and do as little work as necessary during each minor GC.
since we will use a write barrier to keep track of the heap's stack refs,
it seems reasonable that we could skip globals that live on the heap.
- To some extent, it should be possible to test changes that improve performance
by coding something inefficient (but guaranteed to work) and then modifying it to
be more efficient (but not quite sure if idea will work).
*/ */
longjmp(jmp_main,1); /* Return globals gc_cont, gc_ans. */ longjmp(jmp_main,1); /* Return globals gc_cont, gc_ans. */
} }