Stefano Corsi
2003-05-01 16:47:27 UTC
Dave,
I was producing some test for hunting memory leaks and I think I've found
some.
Do you have any clue?
void test0(int seed) {
for (int a = 0; a < 100; a++) {
for (int i = 0; i < seed; i++) {
}
}
}
test0(1000);
... it succeds
test0(10000);
... 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
allocations, array with huge number of dimensions and such, to test hidden
memory leaks?
Stefano
I was producing some test for hunting memory leaks and I think I've found
some.
Do you have any clue?
void test0(int seed) {
for (int a = 0; a < 100; a++) {
for (int i = 0; i < seed; i++) {
}
}
}
test0(1000);
... it succeds
test0(10000);
... 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
allocations, array with huge number of dimensions and such, to test hidden
memory leaks?
Stefano