[ODE] ODE stack usage

Nguyen Binh ngbinh at gmail.com
Tue Sep 7 14:37:28 MST 2004


There is a problem with your patch: it won't be happy with HashSpace.
I don't understand why but I use a modified version of the patch with
QuadSpace(have to avoid HashSpace)


On Tue, 07 Sep 2004 08:51:26 +0200, Olivier Michel
<olivier.michel at cyberbotics.com> wrote:
> Hi,
> 
> The patch is still there, waiting for someone to commit it in:
> 
> http://cyberboticspc1.epfl.ch/ftp/ode_dynamic_memory.tar.bz2 (49k)
> 
> It allows you to get rid of stack overflow problem definitively. The
> counterpart is that it slows down ODE a little bit. This is not a
> dangerous patch as it corresponds to a compilation option which is
> disabled by defaut in the config/user-settings. Hence the resulting
> patched version of ODE behaves exactly as the non-patched version,
> except if you set the DYNAMIC_MEMORY_ALLOCATION flag in the
> config/user-settings file before compiling.
> 
> It would be nice to commit it since some people already have ideas on
> how to improve this patch. Moreovoer, it has been used by several people
> without any problems (it has been around for more than 3 months now).
> 
> Thanks.
> 
> -Olivier
> 
> 
> 
> Adam D. Moss wrote:
> 
> > Dominic Jackson wrote:
> >
> >> I am currently experimenting with ODE and am continually running out
> >> of stack space (I assume this is due to the large number of alloca
> >> calls).
> >>
> >> Can anyone help me with this as I need to put strict controls on
> >> memory usage, or has anyone come across similar issues that they have
> >> found ways to resolve ?
> >
> >
> > There's a patch floating around (with a bit more positive feedback
> > and a bit more time I'll check it in :)) which optionally enormously
> > reduces ODE's stack usage (even if you're using QuickStep, which I
> > expect you're using if you care about stack space usage anyway!).
> >
> > Hmm, probably check out a non-broken list archive near you if
> > interested....
> >
> > ODE nonetheless promises no 'strict' controls on stack usage.  YMMV.
> >
> > --Adam
> > _______________________________________________
> > ODE mailing list
> > ODE at q12.org
> > http://q12.org/mailman/listinfo/ode
> >
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
> 



-- 
Nguyen Binh
www.glassegg.com
----------------------------------------------------------------------------------------------
...currently searching for a graduate school in physical simulation...
----------------------------------------------------------------------------------------------


More information about the ODE mailing list