On 2001-06-29 at 03:19, Hans-Dieter Stich wrote:
> 
> maybe i'm wrong, but tracing memory leaks in my ruby extensions
> using the mtrace utility, it seems to me, that there are several
> small memory leaks in the ruby interpreter, sourced in the
> ruby_xmalloc routine in file gc.c.

hmm...

mtrace reports the following lines in the ruby interpreter:

RUBY_CRITICAL(p = heaps[heaps_used++] =
    (RVALUE*)malloc(sizeof(RVALUE)*HEAP_SLOTS));
RUBY_CRITICAL(mem = malloc(size));
RUBY_CRITICAL(mem = realloc(ptr, size));

is it possible, that mtrace has problems with the
'RUBY_CRITICAL' prefix?

ciao
h-d


-- 
_____________________________________________________________________

  Hans-Dieter Stich
  mail: hdstich / hdstich.com
  web:  http://www.hdstich.com/
_____________________________________________________________________