Escape analysis

Vladimir Kozlov vladimir.kozlov at oracle.com
Mon Nov 29 14:25:05 PST 2010


Paul,

It is known problem and it is on our list of EA improvements.
Object key (pointer to it) is used in Cmp instruction in HashMap.get():

if (e.hash == hash && ((k = e.key) == key || key.equals(k)))

Thanks,
Vladimir

Paul Thio wrote:
> Hello,
> 
> I am wondering why in the following test program, the allocation at line 15 is not eliminated/replaced.
> 
> Thanks,
> 
> Paul
> 


More information about the hotspot-compiler-dev mailing list