List Info

Thread: alien use causes gratuitous GC




alien use causes gratuitous GC
country flaguser name
United States
2007-12-21 12:05:11
I'm developing a Lisp application that links to C code.  The
general
organization is that the Lisp code builds a function that
encodes a
system of ordinary differential equations.  This function is
passed off
to C code that solves the system and returns values of the
variables
over time.  I have this code up and running in Allegro,
Clisp, and
CMUCL, but for some reason CMUCL exhibits some memory
problems.

Specifically, calls to solve the system of equations lead to
several
invocations of the garbage collector (presumably due to
memory
management issues) to the extent that the code cannot
complete within a
reasonable time.

Any ideas what could be causing this?  Is there something
flaky about
callbacks from C into Lisp?

Will


Re: alien use causes gratuitous GC
user name
2007-12-21 16:47:41
On 12/21/07, Will <perpetualstranger-clispyahoo.com> wrote:
> Any ideas what could be causing this?  Is there
something flaky about
> callbacks from C into Lisp?

Without seeing your code it is hard to know what could be
going wrong
for you.  Do you have a small test case that demonstrates
the
excessive heap allocations in your application?


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )