Suppose I have implemented a language with garbage collection in C. I
have wrapped malloc in my own C function. If malloc returns NULL then
I can run the garbage collector and then try malloc again. What do I
do if malloc returns NULL again? Can a C program ask the operating
system for more space and then I could try malloc a third time?
Thanks,
Peter
have wrapped malloc in my own C function. If malloc returns NULL then
I can run the garbage collector and then try malloc again. What do I
do if malloc returns NULL again? Can a C program ask the operating
system for more space and then I could try malloc a third time?
Thanks,
Peter
Comment