Intermediate Compilers & Programming Language Theory
Q53 / 100

What is escape analysis?

Correct! Well done.

Incorrect.

The correct answer is B) Determining whether an object's lifetime is bounded by the current function, enabling stack allocation and lock elision for non-escaping objects

B

Correct Answer

Determining whether an object's lifetime is bounded by the current function, enabling stack allocation and lock elision for non-escaping objects

Explanation

If the compiler proves obj never escapes a method (no external references), it can: allocate on stack (no GC), eliminate synchronization (no sharing). JVM HotSpot, GraalVM perform escape analysis for lock and allocation elision.

Progress
53/100