Dolphin release and Escape Analysis

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Dolphin release and Escape Analysis

Avinash Lakshman-2
Hi All

I recently downloaded the latest Dolphin release. I was curious to check out the much talked about stack allocation feature. Is this available in the Dolphin release and if so how do I turn it on. Please advice

Thanks
A
Reply | Threaded
Open this post in threaded view
|

Re: Dolphin release and Escape Analysis

Tom Rodriguez
Currently there is no support for stack allocation in hotspot.  EA currently is
only used for lock elision and there's work in progress to support scalar
replacement of objects.

Because hotspot GC is precise, true stack allocation trickles out into the rest
of the system since code which was expecting to see a pointer into the heap
might instead see pointers into the stack.  It's tractable but somewhat tricky.
  An alternative would be to have a thread local area in the heap which can be
managed directly by compiled code for the purposes of stack allocation.

We have an ongoing research project with the University of Linz in Austria
around the hotspot compilers and as part that they developed an escape analysis
algorithm for the client compiler along with the needed runtime support for
rematerialization of objects which was needed to support deoptimization.  The
runtime support has been integrated into hotspot already but C2 uses a different
algorithm than was used in the C1 work.  Anyway, you might find the papers at
http://www.ssw.uni-linz.ac.at/General/Staff/TK/Research/Publications interesting
as they discuss supporting true stack allocation.

tom

Avinash Lakshman wrote:
> Hi All
>
> I recently downloaded the latest Dolphin release. I was curious to check
> out the much talked about stack allocation feature. Is this available in
> the Dolphin release and if so how do I turn it on. Please advice
>
> Thanks
> A