Maybe a memory leak...?

Stefano Corsi <[email protected]> Thu, 1 May 2003 16:47:27 +0000
Newsgroups gmane.comp.lang.moto.devel
Organization Moto Project
Message-ID <[email protected]>
Dave,

I was producing some test for hunting memory leaks and I think I've found=
=20
some.=20

Do you have any clue?=20

void test0(int seed) {
    for (int a =3D 0; a < 100; a++) {
        for (int i =3D 0; i < seed; i++) {
        }
    }
}

test0(1000); =09=09

=2E.. it succeds

test0(10000);=09=09

=2E.. it fails with:

### Allocation failure!
Uncaught AllocationFailureException
   message:

AllocationFailureException thrown in test0(excpfn.c:47)
   called from function <main>(tests/arr_lotsofmem.moto:28)

I have tried the test both with inline declaration and without it.

The same test, in compiled mode, succeds.

Are there already any moto tests with mass of biiiig loops, lots of=20
allocations, array with huge number of dimensions and such, to test hidde=
n=20
memory leaks?

Stefano