Escape Analysis - Practical Considerations

Practical Considerations

In object-oriented programming languages, dynamic compilers are particularly good candidates for performing escape analysis. In traditional static compilation, method overriding can make escape analysis impossible, as any called method might be overridden by a version that allows a pointer to escape. Dynamic compilers can perform escape analysis using the available information on overloading, and re-do the analysis when relevant methods are overridden by dynamic code loading.

The popularity of the Java programming language has made escape analysis a target of interest. Java's combination of heap-only object allocation, built-in threading, and the Sun HotSpot dynamic compiler creates a candidate platform for escape analysis related optimizations (see Escape analysis in Java). Escape analysis is implemented in Java Standard Edition 6.

Read more about this topic:  Escape Analysis

Famous quotes containing the word practical:

    I do not remember anything which Confucius has said directly respecting man’s “origin, purpose, and destiny.” He was more practical than that. He is full of wisdom applied to human relations,—to the private life,—the family,—government, etc. It is remarkable that, according to his own account, the sum and substance of his teaching is, as you know, to do as you would be done by.
    Henry David Thoreau (1817–1862)