Changes between Version 1 and Version 2 of Ticket #1236
- Timestamp:
- 12/22/15 15:40:42 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1236 – Description
v1 v2 29 29 You'll see this blows up after only 16 or so iterations. I had to up the list nesting to 1000 because 100 only seems to crash once every blue moon. 30 30 31 A fix could involve dynamically allocating (with {{{malloc}}} or so) a "working list" stack and use that to convert the recursion to a loop. Alternatively, we could "de-inline" it so it can reclaim memory. On the plus side, this allows us to convert it to Scheme and taking theCPS hit.31 A fix could involve dynamically allocating (with {{{malloc}}} or so) a "working list" stack and use that to convert the recursion to a loop. Alternatively, we could "de-inline" it so it can reclaim memory. On the plus side, this allows us to convert it to Scheme. On the downside, we'd be taking a CPS hit. 32 32 33 33 Originally I thought it might be possible to use the scratch space in CHICKEN 5, but I'm not sure that's suitable in this case because there's nothing in the heap or nursery that points directly to it. We could create one and make an actual Scheme list of "todo" objects, but it would be such a long chain that it would become pretty slow I think.