RFR(S) 8058564: Tiered compilation performance drop in PIT

Vladimir Kozlov vladimir.kozlov at oracle.com
Wed Sep 17 07:52:29 UTC 2014


Why not create MethodCounters in Method::build_interpreter_method_data()? It is called at the beginning of compilation 
(C1 and C2) from ciMethod::ensure_method_data(). And not necessary that way. My point is - why not crate them at the 
beginning of a compilation as we do with MDO? Compiled code may need to access it. May be not now but in a future.

Thanks,
Vladimir

On 9/17/14 12:39 AM, Igor Veresov wrote:
> The problem here is that with -Xcomp we immediately compile a method at level 3, and we’re not creating MethodCounters since we never execute in the interpreter and hence not setting the “highest” level values. The solution is to allocate MethodCounters for every method compiled (unless it has been allocated naturally by the interpreter). I made it in a form of a callback to the policy, since only tiered policies cares about these values.
>
> JBS: https://bugs.openjdk.java.net/browse/JDK-8058564
> Webrev: http://cr.openjdk.java.net/~iveresov/8058564/webrev.00
>
> Thanks,
> igor
>


More information about the hotspot-compiler-dev mailing list