Mail Archives: djgpp-workers/2000/06/01/07:09:46
Alexandre Oliva wrote:
>
> On May 7, 2000, Laurynas Biveinis <lauras AT softhome DOT net> wrote:
>
> > Alexandre Oliva wrote:
>
> > While looking into gc-simple performance issues, I've tried your
> > program on DJGPP (i686-pc-msdosdjgpp) and it fails:
>
> > Assertion failed at align-malloc.c line 60: p == r
> > Exiting due to signal SIGABRT
>
> Sorry about the late reply. I see you were not using the latest
> version of my patch (I'm not even sure I posted it :-). Would you
> like to give this one a try?
I've tried it; and there are several issues: a loop in xvmalloc_align()
is semi-infinite - it fails to allocate aligned memory, but does not
count that as a failure, so it tries over and over again. As a result,
my memory debugger gives me a 2.3MB log file for simple program:
unsigned i = xvalloc_overhead();
xvfree(xvalloc(4096), 4096);
I can see from a log that there were 7600 calls to xmalloc, memory usage
peak level over 7 MB.
So it is still not very useful to DJGPP. Sorry, I can't provide much help
now because idea behind your code is not very clear to me. DJGPP's malloc()
sources are confusing too. But if you have specific questions about DJGPP
malloc() behaviour, just ask.
Laurynas
- Raw text -