RFC - Improving C2 Escape Analysis

Ron Pressler ron.pressler at oracle.com
Tue Oct 19 13:39:03 UTC 2021


> On 19 Oct 2021, at 14:17, Tobias Hartmann <tobias.hartmann at oracle.com> wrote:
> 
> 
> That said, support for stack/thread local allocation would be something that we could potentially
> use in Valhalla to avoid buffering on the heap. It's difficult though because in most cases we use
> buffering when storing to a non-flattened field that escapes to other threads.
> 


Just a reminder, stacks can move in memory (virtual threads), so great care must be
taken with pointers pointing into the stack. As a general rule, that’s a no-no.

— Ron


More information about the hotspot-dev mailing list