Mercurial > hg > graal-jvmci-8
comparison test/compiler/stringopts/TestStringObjectInitialization.java @ 24026:e901fb8a6f95
Merge
author | robm |
---|---|
date | Fri, 08 Jul 2016 13:59:32 +0100 |
parents | 173a1f83c930 |
children |
comparison
equal
deleted
inserted
replaced
24022:0ce7a44c80a8 | 24026:e901fb8a6f95 |
---|---|
25 import java.util.Arrays; | 25 import java.util.Arrays; |
26 | 26 |
27 /* | 27 /* |
28 * @test | 28 * @test |
29 * @bug 8159244 | 29 * @bug 8159244 |
30 * @requires vm.gc == "Parallel" | vm.gc == "null" | |
30 * @summary Verifies that no partially initialized String object escapes from | 31 * @summary Verifies that no partially initialized String object escapes from |
31 * C2's String concat optimization in a highly concurrent setting. | 32 * C2's String concat optimization in a highly concurrent setting. |
32 * This test triggers the bug in about 1 out of 10 runs. | 33 * This test triggers the bug in about 1 out of 10 runs. |
33 * @compile -XDstringConcat=inline TestStringObjectInitialization.java | 34 * @compile -XDstringConcat=inline TestStringObjectInitialization.java |
34 * @run main/othervm/timeout=300 -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops -XX:-CompactStrings | 35 * @run main/othervm/timeout=300 -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops -XX:-CompactStrings |