[kaffe] Help with Heap Allocation Functions
robilad at yahoo.com
Mon Feb 3 10:00:01 PST 2003
--- Tony Wyatt <wyattaw at optusnet.com.au> wrote:
> Greetings, fellow kaffe drinkers.
G'day to down under from cold Germany.
> I am trying to make kaffe 1.0.7 run on the m68k,
> under AmigaOS
> 3.9. It is supposed to run, but doesn't, for a
> number of reasons. I
> guess the Amiga configuration has been left untested
> for some
It's good to see the Amiga live on. They simply don't
build computers like they used to anymore. GUI,
processes, Unix-ish shell, real plug & play etc. in
512K. Sniff ;)
Could you try this patch and see if it improves things
> I am configuring/compiling/testing it in a Geek
> environment, using
> gcc 2.95.2. I have already installed, built and
> tested gmp-4.1
> successfully, so something works.
Cool. With the latest source from CVS you don't need
gmp anymore. If it con't find it, it will use a pure
java implementation of the java.math libraries.
> First question: I've managed to get the whole kaffe
> suite to compile
> build by editing some Makefile's and the config.h
> file. The changes
> necessary to repair some syntax errors in the m68k
> Makefiles and
> some processor options. But when I run the
> /test/regression tests, a
> run without error, but most trap out with the error:
> "Failed assertion
> 'block->avail > 0'"
> For HelloWorldApp, the trap happens right after a
> request for a
> block of
> size 32776 bytes (the first request > 32768). The
> address of the
> returned seems crazy, being in the middle of the
> range of
> already-allocated memory. Suffice it to say that
> there is no valid gc-
> block in the vicinity.
If the patch above doesn't help, you should
reconfigure kaffe to enable debugging support, read
FAQ/FAQ.debugging and run it on some failing test with
-vmdebug GCDIAG .
If the patch above does help, please report back, so
that I can check it in.
> I have the same build on an x86 Linux machine, and
> it runs fine. I
> can even compare the memory requests and identify
> the same
> request on the Linux side - it returns with a
> reasonable pointer and
> works. I have been trying to compare the behaviour
> of the two
> systems, but
> I don't understand the structure of the heap or the
> blocks that are
This mail explains a bit about kaffe's internal GC
. There is also a description of the GC in the FAQ
> Second question: Just running HelloWorldApp
> generates about
> 26,000 memory allocation requests during execution.
> Is this
> extraordinary overhead normal?
You can tell kaffe to grab a bigger chunk of memory at
the start by using -ms. I can't say if the overhead is
usual. How many memory requests are there on
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
More information about the kaffe