< prev index next >

test/hotspot/jtreg/compiler/valhalla/valuetypes/TestCallingConvention.java

Print this page




 399    // Test no result from inlined method for incremental inlining
 400    final MyValue3 test21_vt = MyValue3.create();
 401    public MyValue3 test21_inlined() {
 402        throw new RuntimeException();
 403    }
 404 
 405    @Test
 406    public MyValue3 test21() {
 407        try {
 408            return test21_inlined();
 409        } catch (RuntimeException ex) {
 410            return test21_vt;
 411        }
 412    }
 413 
 414    @DontCompile
 415    public void test21_verifier(boolean warmup) {
 416        MyValue3 vt = test21();
 417        test21_vt.verify(vt);
 418    }














 419 }


 399    // Test no result from inlined method for incremental inlining
 400    final MyValue3 test21_vt = MyValue3.create();
 401    public MyValue3 test21_inlined() {
 402        throw new RuntimeException();
 403    }
 404 
 405    @Test
 406    public MyValue3 test21() {
 407        try {
 408            return test21_inlined();
 409        } catch (RuntimeException ex) {
 410            return test21_vt;
 411        }
 412    }
 413 
 414    @DontCompile
 415    public void test21_verifier(boolean warmup) {
 416        MyValue3 vt = test21();
 417        test21_vt.verify(vt);
 418    }
 419 
 420    // Test returning a non-flattened value type as fields
 421    __NotFlattened MyValue3 test22_vt = MyValue3.create();
 422 
 423    @Test
 424    public MyValue3 test22() {
 425        return test22_vt;
 426    }
 427 
 428    @DontCompile
 429    public void test22_verifier(boolean warmup) {
 430        MyValue3 vt = test22();
 431        test22_vt.verify(vt);
 432    }
 433 }
< prev index next >