sprhawk / python-on-a-chip

Automatically exported from code.google.com/p/python-on-a-chip
Other
0 stars 0 forks source link

Improve GC's marking of seglists #131

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The GC marks an entire segment even if only some of the entries are valid.  
This can be improved to only mark valid entries; the exact length of the 
seglist.  Can also make it linear rather than recursive for each linked segment.

Original issue reported on code.google.com by dwhall...@gmail.com on 26 Aug 2010 at 7:39

GoogleCodeExporter commented 9 years ago
r586
- Edited src/vm/heap.c heap_gcMarkObj() so that seglists' linked segments are 
marked linearly (not recursive).  The exact number of items are marked. A 
recursive call is still made to mark the segment's items.

System tests pass.
Mainlined directly.

Original comment by dwhall...@gmail.com on 26 Aug 2010 at 8:55