On Mon, Apr 26, 2010 at 1:51 PM, Juan Jose Garcia-Ripoll juanjose.garciaripoll@googlemail.com wrote:
It is very problematic because ECL allocates and frees foreign memory using the garbage collector. If the user applies FOREIGN-FREE upon a pointer that was NOT created using CFFI, then ECL's garbage collector will choke. The tests we causing ECL to hang.
I see. What's the rationale? Could ECL's FOREIGN-FREE/ALLOC use plain malloc()/free()? If not, CFFI should probably provide something like LIBC-MALLOC and LIBC-FREE explicitly.
I attach you an updated patch that fixes CFFI's test suite. Could you please include it in the tree? With the current abuse of FOREIGN-FREE ECL hangs and this is causing my test farm a lot of headaches.
Pushed, as a temporary solution.
Thanks,