kaffe hungs (code attached)

Ben Laurie ben at algroup.co.uk
Mon Mar 1 09:44:54 PST 1999

Godmar Back wrote:
>  Dimitri,
> Kaffe 1.0b3 doesn't really hang on this test, it just takes a very long time.
> The reason was that the long array for the BitSet was grown bit by bit, so
> the test ended up being a gc stress test as lots and lots of long arrays had
> to be created and discarded.  I changed BitSet to at least double the size
> of the array each time it needs to grow it.

FWIW, STL takes some considerable pains to avoid this kind of problem,
and makes execution time guarantees, too. It might be worth looking at
for hints.




"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
     - Indira Gandhi

More information about the kaffe mailing list