ScopeDescs incorrect in Java 8

Andrew Haley aph at redhat.com
Thu Oct 8 14:25:53 UTC 2020


On 08/10/2020 15:11, David Griffiths wrote:
> I'm running with the options "-XX:-Inline -XX:TieredStopAtLevel=1" (there
> is a reason for this). The method (called enough times to JIT compile) is:
> 
>   16     static void topMethod(int a, int b) {
>   17         int c = a + 1;
>   18         int d = iMethodA(a) + iMethodB(a);
>   19         int e = iMethodA(a) * (iMethodA(b) - iMethodB(b));
>   20         vMethod(a);
>   21         testArgs(7.0);
>   22     }
> 
> Simply changing the last line to testArgs(a) results in the ScopeDescs
> being ok! The called methods are trivial one liners. This is the bad
> compile info (nops and blank lines removed):

Please send us a full test case.

-- 
Andrew Haley  (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671



More information about the hotspot-runtime-dev mailing list