8357822: C2: Multiple string optimization tests are no longer testing string concatenation optimizations
Reviewed-by: rcastanedalo, epeter
This commit is contained in:
parent
e94ad551c6
commit
6c616c71ec
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -30,6 +30,18 @@
|
||||
* compiler.c2.Test7046096
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* @test id=stringConcatInline
|
||||
* @bug 7046096 8357822
|
||||
* @summary The same test with an updated compile directive that produces
|
||||
* StringBuilder-backed string concatenations.
|
||||
*
|
||||
* @compile -XDstringConcat=inline Test7046096.java
|
||||
* @run main/othervm -Xbatch compiler.c2.Test7046096
|
||||
*/
|
||||
|
||||
|
||||
package compiler.c2;
|
||||
|
||||
public class Test7046096 {
|
||||
|
@ -1,4 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright 2012 Skip Balk. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
@ -32,6 +33,18 @@
|
||||
* @author Skip Balk
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* @test id=stringConcatInline
|
||||
* @bug 7179138
|
||||
* @summary The same test with an updated compile directive that produces
|
||||
* StringBuilder-backed string concatenations.
|
||||
*
|
||||
* @compile -XDstringConcat=inline Test7179138_2.java
|
||||
* @run main/othervm -Xbatch -XX:-TieredCompilation compiler.c2.Test7179138_2
|
||||
*/
|
||||
|
||||
|
||||
package compiler.c2;
|
||||
|
||||
public class Test7179138_2 {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -33,3 +33,17 @@
|
||||
* @run main/othervm -XX:-CompactStrings vm.compiler.optimizations.stringconcat.implicit.Implicit01
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* @test id=stringConcatInline
|
||||
*
|
||||
* @summary The same test with an updated compile directive that produces
|
||||
* StringBuilder-backed string concatenations.
|
||||
* VM Testbase keywords: [jit, quick]
|
||||
*
|
||||
* @library /vmTestbase
|
||||
* /test/lib
|
||||
* @compile -XDstringConcat=inline ../../Implicit01.java
|
||||
* @run main/othervm -XX:-CompactStrings vm.compiler.optimizations.stringconcat.implicit.Implicit01
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -33,3 +33,17 @@
|
||||
* @run main/othervm -XX:+CompactStrings vm.compiler.optimizations.stringconcat.implicit.Implicit01
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* @test id=stringConcatInline
|
||||
*
|
||||
* @summary The same test with an updated compile directive that produces
|
||||
* StringBuilder-backed string concatenations.
|
||||
* VM Testbase keywords: [jit, quick]
|
||||
*
|
||||
* @library /vmTestbase
|
||||
* /test/lib
|
||||
* @compile -XDstringConcat=inline ../../Implicit01.java
|
||||
* @run main/othervm -XX:+CompactStrings vm.compiler.optimizations.stringconcat.implicit.Implicit01
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -33,3 +33,17 @@
|
||||
* @run main/othervm -XX:-CompactStrings vm.compiler.optimizations.stringconcat.implicit.Merge01
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* @test id=stringConcatInline
|
||||
*
|
||||
* @summary The same test with an updated compile directive that produces
|
||||
* StringBuilder-backed string concatenations.
|
||||
* VM Testbase keywords: [jit, quick]
|
||||
*
|
||||
* @library /vmTestbase
|
||||
* /test/lib
|
||||
* @compile -XDstringConcat=inline ../../Merge01.java
|
||||
* @run main/othervm -XX:-CompactStrings vm.compiler.optimizations.stringconcat.implicit.Merge01
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -33,3 +33,17 @@
|
||||
* @run main/othervm -XX:+CompactStrings vm.compiler.optimizations.stringconcat.implicit.Merge01
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* @test id=stringConcatInline
|
||||
*
|
||||
* @summary The same test with an updated compile directive that produces
|
||||
* StringBuilder-backed string concatenations.
|
||||
* VM Testbase keywords: [jit, quick]
|
||||
*
|
||||
* @library /vmTestbase
|
||||
* /test/lib
|
||||
* @compile -XDstringConcat=inline ../../Merge01.java
|
||||
* @run main/othervm -XX:+CompactStrings vm.compiler.optimizations.stringconcat.implicit.Merge01
|
||||
*/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user