# Charlie Gracie: Current state of JVM Escape Analysis and downstream optimizations

DevFeed: [Charlie Gracie: Current state of JVM Escape Analysis and downstream optimizations](<https://devfeed.tech/articles/charlie-gracie-current-state-of-jvm-escape-analysis-and-downstream-optimizations-24774.md>)

Original publisher: [Read original article](<https://dev.cheremin.info/2020/02/charlie-gracie-current-state-of-jvm.html>)

Author: Ruslan Cheremin (noreply@blogger.com)

Published: 2020-02-08T16:44:00Z

Content type: opinion

Language: ru

Sources: [\>рабочие заметки](<https://devfeed.tech/sources/source-2.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [Scala](<https://devfeed.tech/topics/scala.md>)

Tags: [analysis](<https://devfeed.tech/tags/analysis.md>), [c2](<https://devfeed.tech/tags/c2.md>), [escape-analysis](<https://devfeed.tech/tags/escape-analysis.md>), [java](<https://devfeed.tech/tags/java.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [jvm-internals](<https://devfeed.tech/tags/jvm-internals.md>), [scala](<https://devfeed.tech/tags/scala.md>)

## AI overview

The article discusses a JFokus presentation by Charlie Gracie of Microsoft about a prototype stack-allocation implementation for Java 11 in the JVM's C2 compiler. It covers escape analysis and scalar replacement, and reports 5-15% performance improvements on Scala benchmarks, while noting that the proposed changes might be submitted for upstream adoption.

## Source excerpt

Я уже какое-то время отошел от темы скаляризации и escape-анализа, но тут случайно наткнулся на любопытное видео с JFokus: Чарли Грасье из Микрософта рассказывает, как они для своих целей сделали прототип stack allocation для java 11. И даже не для Graal (где нынче чаще всего делают что-то новое), а для старого-доброго C2. Чарли начинает с краткого обзора escape-анализа и скаляризации в целом,