Leopold Toetsch wrote:

On Dec 14, 2005, at 12:52, Joshua Isom (via RT) wrote:

[ substr related PANIC ]

After a lengthy session with gdb and some added debug prints, I've now tracked down and fixed the reason for the memory panic. The sweep code tried to avoid freeing buffers, if there were plenty of PMCs left usable, which of course is totally bogus for string-only code. I've removed that part.

Anyway, the COW-ping-pong issue is *not* solved, just the PANIC. Reversing a string of 100000 bytes (1/10th of the example code) with the posted rev.pir takes:

time                30 s   [1]
GC runs           7147
memory collected   1.8 GByte

[1] unoptimized build, default runcore, but that really doesn't matter ;)

leo

Reply via email to