Why does this crash?

This should loop forever. Although we do not have a major GC, so could that be the problem? Not sure why else it would crash?