Call Stack Rewriting: TCO's Core Threat to Java Security

Tail Call Optimization's mechanism of replacing stack frames directly undermines Java's Security Manager, which relies on inspecting the full call stack to enforce granular permissions for code execution, preventing less privileged code from elevating its access.

Sources

Open the full topic