RFR 8038418 New tests development for type profiling and speculation
Roland Westrelin
roland.westrelin at oracle.com
Wed Apr 9 11:33:41 UTC 2014
> But what if the collectReturnType(obj) will change the obj inside the method?
> E.g. before it was a TypeHierarchy.B, but became a TypeHierarchy. I thought
> that it should use return type profiling for this case:
The first profiling data that it finds for an object is the one that it keeps. Later profiling data is ignored.
> but why does compiler not eliminate if() when isReturnType == true and is a
> final field?
Maybe it does indeed. Have you verified whether it is eliminated?
Roland.
More information about the hotspot-compiler-dev
mailing list