Stefano Corsi
2003-05-02 15:13:44 UTC
I'm still experimenting with odd, iterative tests:
void test3(int count) {
for (int a = 0; a < 100; a++) {
for (int i = 0; i < seed; i++) {
String arr[][][][][][][] = <String[][][][][][][]>{{{{{{{ "dog"
}}}}}}};
print arr[0][0][0][0][0][0][0] + "\n";
}
}
}
test3(1000);
This one fails with both moto_0_19_1 and my moto_opo branch:
### Allocation failure!
Uncaught AllocationFailureException
message:
AllocationFailureException thrown in test3(excpfn.c:47)
called from function <main>(prova.moto:12)
The strange thing is that it fails also in compiled mode:
### Allocation failure!
### Allocation failure!
Segmentation fault
It succeds, on the other side, with count = 100 and prints "dog" 10.000
times...
test3(100);
Stefano
void test3(int count) {
for (int a = 0; a < 100; a++) {
for (int i = 0; i < seed; i++) {
String arr[][][][][][][] = <String[][][][][][][]>{{{{{{{ "dog"
}}}}}}};
print arr[0][0][0][0][0][0][0] + "\n";
}
}
}
test3(1000);
This one fails with both moto_0_19_1 and my moto_opo branch:
### Allocation failure!
Uncaught AllocationFailureException
message:
AllocationFailureException thrown in test3(excpfn.c:47)
called from function <main>(prova.moto:12)
The strange thing is that it fails also in compiled mode:
### Allocation failure!
### Allocation failure!
Segmentation fault
It succeds, on the other side, with count = 100 and prints "dog" 10.000
times...
test3(100);
Stefano