Hi Thomas, hi all
> On a normal, modern operating system, (reasonably sized) mallocs should
> never fail, as the system will start thrashing and killing off processes
> long before malloc() fails.
Well, try:
for (int idx = 0; idx < 255; idx++)
{
void *p = malloc(0xFFFFFFFF);
}
and your done.
This is IMO not an argument and only an expectation.
I agree with you, that this problems are not a big issue,
since the allocated space is not large enough to create
really problems.
Nonetheless: Malloc can fail and we have to take care of that.
Regards,
Carsten
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development