Sure, they will get restarted, but not great.
going through extra effort to accommodate/enable buggy, poorly behaving programs, and meanwhile—
punishing those (and the programmers of those) that are well-behaved and functioning exactly as intended but that now have to contend with evading some heuristic of badness.
... but reading say libraries directly and only putting in RAM the parts often used, now we're talking