mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-19 18:07:49 +00:00
8300693: Lower the compile threshold and reduce the iterations of warmup loop in VarHandles tests
Reviewed-by: jvernee, dholmes, psandoz
This commit is contained in:
parent
4525aa318a
commit
86fed79670
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -23,10 +23,14 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @run testng/othervm -Diters=10 -Xint VarHandleTestAccessBoolean
|
||||
* @run testng/othervm -Diters=20000 -XX:TieredStopAtLevel=1 VarHandleTestAccessBoolean
|
||||
* @run testng/othervm -Diters=20000 VarHandleTestAccessBoolean
|
||||
* @run testng/othervm -Diters=20000 -XX:-TieredCompilation VarHandleTestAccessBoolean
|
||||
* @run testng/othervm -Diters=10 -Xint VarHandleTestAccessBoolean
|
||||
*
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
*
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:TieredStopAtLevel=1 VarHandleTestAccessBoolean
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestAccessBoolean
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:-TieredCompilation VarHandleTestAccessBoolean
|
||||
*/
|
||||
|
||||
import org.testng.annotations.BeforeClass;
|
||||
@ -289,9 +293,6 @@ public class VarHandleTestAccessBoolean extends VarHandleBaseTest {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void testInstanceFinalField(VarHandleTestAccessBoolean recv, VarHandle vh) {
|
||||
// Plain
|
||||
{
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -23,10 +23,14 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @run testng/othervm -Diters=10 -Xint VarHandleTestAccessByte
|
||||
* @run testng/othervm -Diters=20000 -XX:TieredStopAtLevel=1 VarHandleTestAccessByte
|
||||
* @run testng/othervm -Diters=20000 VarHandleTestAccessByte
|
||||
* @run testng/othervm -Diters=20000 -XX:-TieredCompilation VarHandleTestAccessByte
|
||||
* @run testng/othervm -Diters=10 -Xint VarHandleTestAccessByte
|
||||
*
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
*
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:TieredStopAtLevel=1 VarHandleTestAccessByte
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestAccessByte
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:-TieredCompilation VarHandleTestAccessByte
|
||||
*/
|
||||
|
||||
import org.testng.annotations.BeforeClass;
|
||||
@ -289,9 +293,6 @@ public class VarHandleTestAccessByte extends VarHandleBaseTest {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void testInstanceFinalField(VarHandleTestAccessByte recv, VarHandle vh) {
|
||||
// Plain
|
||||
{
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -23,10 +23,14 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @run testng/othervm -Diters=10 -Xint VarHandleTestAccessChar
|
||||
* @run testng/othervm -Diters=20000 -XX:TieredStopAtLevel=1 VarHandleTestAccessChar
|
||||
* @run testng/othervm -Diters=20000 VarHandleTestAccessChar
|
||||
* @run testng/othervm -Diters=20000 -XX:-TieredCompilation VarHandleTestAccessChar
|
||||
* @run testng/othervm -Diters=10 -Xint VarHandleTestAccessChar
|
||||
*
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
*
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:TieredStopAtLevel=1 VarHandleTestAccessChar
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestAccessChar
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:-TieredCompilation VarHandleTestAccessChar
|
||||
*/
|
||||
|
||||
import org.testng.annotations.BeforeClass;
|
||||
@ -289,9 +293,6 @@ public class VarHandleTestAccessChar extends VarHandleBaseTest {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void testInstanceFinalField(VarHandleTestAccessChar recv, VarHandle vh) {
|
||||
// Plain
|
||||
{
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -23,10 +23,14 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @run testng/othervm -Diters=10 -Xint VarHandleTestAccessDouble
|
||||
* @run testng/othervm -Diters=20000 -XX:TieredStopAtLevel=1 VarHandleTestAccessDouble
|
||||
* @run testng/othervm -Diters=20000 VarHandleTestAccessDouble
|
||||
* @run testng/othervm -Diters=20000 -XX:-TieredCompilation VarHandleTestAccessDouble
|
||||
* @run testng/othervm -Diters=10 -Xint VarHandleTestAccessDouble
|
||||
*
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
*
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:TieredStopAtLevel=1 VarHandleTestAccessDouble
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestAccessDouble
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:-TieredCompilation VarHandleTestAccessDouble
|
||||
*/
|
||||
|
||||
import org.testng.annotations.BeforeClass;
|
||||
@ -289,9 +293,6 @@ public class VarHandleTestAccessDouble extends VarHandleBaseTest {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void testInstanceFinalField(VarHandleTestAccessDouble recv, VarHandle vh) {
|
||||
// Plain
|
||||
{
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -23,10 +23,14 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @run testng/othervm -Diters=10 -Xint VarHandleTestAccessFloat
|
||||
* @run testng/othervm -Diters=20000 -XX:TieredStopAtLevel=1 VarHandleTestAccessFloat
|
||||
* @run testng/othervm -Diters=20000 VarHandleTestAccessFloat
|
||||
* @run testng/othervm -Diters=20000 -XX:-TieredCompilation VarHandleTestAccessFloat
|
||||
* @run testng/othervm -Diters=10 -Xint VarHandleTestAccessFloat
|
||||
*
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
*
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:TieredStopAtLevel=1 VarHandleTestAccessFloat
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestAccessFloat
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:-TieredCompilation VarHandleTestAccessFloat
|
||||
*/
|
||||
|
||||
import org.testng.annotations.BeforeClass;
|
||||
@ -289,9 +293,6 @@ public class VarHandleTestAccessFloat extends VarHandleBaseTest {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void testInstanceFinalField(VarHandleTestAccessFloat recv, VarHandle vh) {
|
||||
// Plain
|
||||
{
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -23,10 +23,14 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @run testng/othervm -Diters=10 -Xint VarHandleTestAccessInt
|
||||
* @run testng/othervm -Diters=20000 -XX:TieredStopAtLevel=1 VarHandleTestAccessInt
|
||||
* @run testng/othervm -Diters=20000 VarHandleTestAccessInt
|
||||
* @run testng/othervm -Diters=20000 -XX:-TieredCompilation VarHandleTestAccessInt
|
||||
* @run testng/othervm -Diters=10 -Xint VarHandleTestAccessInt
|
||||
*
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
*
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:TieredStopAtLevel=1 VarHandleTestAccessInt
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestAccessInt
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:-TieredCompilation VarHandleTestAccessInt
|
||||
*/
|
||||
|
||||
import org.testng.annotations.BeforeClass;
|
||||
@ -289,9 +293,6 @@ public class VarHandleTestAccessInt extends VarHandleBaseTest {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void testInstanceFinalField(VarHandleTestAccessInt recv, VarHandle vh) {
|
||||
// Plain
|
||||
{
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -23,10 +23,14 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @run testng/othervm -Diters=10 -Xint VarHandleTestAccessLong
|
||||
* @run testng/othervm -Diters=20000 -XX:TieredStopAtLevel=1 VarHandleTestAccessLong
|
||||
* @run testng/othervm -Diters=20000 VarHandleTestAccessLong
|
||||
* @run testng/othervm -Diters=20000 -XX:-TieredCompilation VarHandleTestAccessLong
|
||||
* @run testng/othervm -Diters=10 -Xint VarHandleTestAccessLong
|
||||
*
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
*
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:TieredStopAtLevel=1 VarHandleTestAccessLong
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestAccessLong
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:-TieredCompilation VarHandleTestAccessLong
|
||||
*/
|
||||
|
||||
import org.testng.annotations.BeforeClass;
|
||||
@ -289,9 +293,6 @@ public class VarHandleTestAccessLong extends VarHandleBaseTest {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void testInstanceFinalField(VarHandleTestAccessLong recv, VarHandle vh) {
|
||||
// Plain
|
||||
{
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -23,10 +23,14 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @run testng/othervm -Diters=10 -Xint VarHandleTestAccessShort
|
||||
* @run testng/othervm -Diters=20000 -XX:TieredStopAtLevel=1 VarHandleTestAccessShort
|
||||
* @run testng/othervm -Diters=20000 VarHandleTestAccessShort
|
||||
* @run testng/othervm -Diters=20000 -XX:-TieredCompilation VarHandleTestAccessShort
|
||||
* @run testng/othervm -Diters=10 -Xint VarHandleTestAccessShort
|
||||
*
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
*
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:TieredStopAtLevel=1 VarHandleTestAccessShort
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestAccessShort
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:-TieredCompilation VarHandleTestAccessShort
|
||||
*/
|
||||
|
||||
import org.testng.annotations.BeforeClass;
|
||||
@ -289,9 +293,6 @@ public class VarHandleTestAccessShort extends VarHandleBaseTest {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void testInstanceFinalField(VarHandleTestAccessShort recv, VarHandle vh) {
|
||||
// Plain
|
||||
{
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -23,10 +23,14 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @run testng/othervm -Diters=10 -Xint VarHandleTestAccessString
|
||||
* @run testng/othervm -Diters=20000 -XX:TieredStopAtLevel=1 VarHandleTestAccessString
|
||||
* @run testng/othervm -Diters=20000 VarHandleTestAccessString
|
||||
* @run testng/othervm -Diters=20000 -XX:-TieredCompilation VarHandleTestAccessString
|
||||
* @run testng/othervm -Diters=10 -Xint VarHandleTestAccessString
|
||||
*
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
*
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:TieredStopAtLevel=1 VarHandleTestAccessString
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestAccessString
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:-TieredCompilation VarHandleTestAccessString
|
||||
*/
|
||||
|
||||
import org.testng.annotations.BeforeClass;
|
||||
@ -296,9 +300,6 @@ public class VarHandleTestAccessString extends VarHandleBaseTest {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void testInstanceFinalField(VarHandleTestAccessString recv, VarHandle vh) {
|
||||
// Plain
|
||||
{
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -24,9 +24,11 @@
|
||||
/*
|
||||
* @test
|
||||
* @bug 8154556
|
||||
* @run testng/othervm/timeout=360 -Diters=20000 -XX:TieredStopAtLevel=1 VarHandleTestByteArrayAsChar
|
||||
* @run testng/othervm/timeout=360 -Diters=20000 VarHandleTestByteArrayAsChar
|
||||
* @run testng/othervm/timeout=360 -Diters=20000 -XX:-TieredCompilation VarHandleTestByteArrayAsChar
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
* @run testng/othervm/timeout=360 -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:TieredStopAtLevel=1 VarHandleTestByteArrayAsChar
|
||||
* @run testng/othervm/timeout=360 -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestByteArrayAsChar
|
||||
* @run testng/othervm/timeout=360 -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:-TieredCompilation VarHandleTestByteArrayAsChar
|
||||
*/
|
||||
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -24,9 +24,11 @@
|
||||
/*
|
||||
* @test
|
||||
* @bug 8154556
|
||||
* @run testng/othervm/timeout=360 -Diters=20000 -XX:TieredStopAtLevel=1 VarHandleTestByteArrayAsDouble
|
||||
* @run testng/othervm/timeout=360 -Diters=20000 VarHandleTestByteArrayAsDouble
|
||||
* @run testng/othervm/timeout=360 -Diters=20000 -XX:-TieredCompilation VarHandleTestByteArrayAsDouble
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
* @run testng/othervm/timeout=360 -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:TieredStopAtLevel=1 VarHandleTestByteArrayAsDouble
|
||||
* @run testng/othervm/timeout=360 -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestByteArrayAsDouble
|
||||
* @run testng/othervm/timeout=360 -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:-TieredCompilation VarHandleTestByteArrayAsDouble
|
||||
*/
|
||||
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -24,9 +24,11 @@
|
||||
/*
|
||||
* @test
|
||||
* @bug 8154556
|
||||
* @run testng/othervm/timeout=360 -Diters=20000 -XX:TieredStopAtLevel=1 VarHandleTestByteArrayAsFloat
|
||||
* @run testng/othervm/timeout=360 -Diters=20000 VarHandleTestByteArrayAsFloat
|
||||
* @run testng/othervm/timeout=360 -Diters=20000 -XX:-TieredCompilation VarHandleTestByteArrayAsFloat
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
* @run testng/othervm/timeout=360 -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:TieredStopAtLevel=1 VarHandleTestByteArrayAsFloat
|
||||
* @run testng/othervm/timeout=360 -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestByteArrayAsFloat
|
||||
* @run testng/othervm/timeout=360 -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:-TieredCompilation VarHandleTestByteArrayAsFloat
|
||||
*/
|
||||
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -24,9 +24,11 @@
|
||||
/*
|
||||
* @test
|
||||
* @bug 8154556
|
||||
* @run testng/othervm/timeout=360 -Diters=20000 -XX:TieredStopAtLevel=1 VarHandleTestByteArrayAsInt
|
||||
* @run testng/othervm/timeout=360 -Diters=20000 VarHandleTestByteArrayAsInt
|
||||
* @run testng/othervm/timeout=360 -Diters=20000 -XX:-TieredCompilation VarHandleTestByteArrayAsInt
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
* @run testng/othervm/timeout=360 -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:TieredStopAtLevel=1 VarHandleTestByteArrayAsInt
|
||||
* @run testng/othervm/timeout=360 -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestByteArrayAsInt
|
||||
* @run testng/othervm/timeout=360 -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:-TieredCompilation VarHandleTestByteArrayAsInt
|
||||
*/
|
||||
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -24,9 +24,11 @@
|
||||
/*
|
||||
* @test
|
||||
* @bug 8154556
|
||||
* @run testng/othervm/timeout=360 -Diters=20000 -XX:TieredStopAtLevel=1 VarHandleTestByteArrayAsLong
|
||||
* @run testng/othervm/timeout=360 -Diters=20000 VarHandleTestByteArrayAsLong
|
||||
* @run testng/othervm/timeout=360 -Diters=20000 -XX:-TieredCompilation VarHandleTestByteArrayAsLong
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
* @run testng/othervm/timeout=360 -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:TieredStopAtLevel=1 VarHandleTestByteArrayAsLong
|
||||
* @run testng/othervm/timeout=360 -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestByteArrayAsLong
|
||||
* @run testng/othervm/timeout=360 -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:-TieredCompilation VarHandleTestByteArrayAsLong
|
||||
*/
|
||||
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -24,9 +24,11 @@
|
||||
/*
|
||||
* @test
|
||||
* @bug 8154556
|
||||
* @run testng/othervm/timeout=360 -Diters=20000 -XX:TieredStopAtLevel=1 VarHandleTestByteArrayAsShort
|
||||
* @run testng/othervm/timeout=360 -Diters=20000 VarHandleTestByteArrayAsShort
|
||||
* @run testng/othervm/timeout=360 -Diters=20000 -XX:-TieredCompilation VarHandleTestByteArrayAsShort
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
* @run testng/othervm/timeout=360 -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:TieredStopAtLevel=1 VarHandleTestByteArrayAsShort
|
||||
* @run testng/othervm/timeout=360 -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestByteArrayAsShort
|
||||
* @run testng/othervm/timeout=360 -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:-TieredCompilation VarHandleTestByteArrayAsShort
|
||||
*/
|
||||
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -23,7 +23,9 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @run testng/othervm -Diters=20000 VarHandleTestMethodHandleAccessBoolean
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestMethodHandleAccessBoolean
|
||||
*/
|
||||
|
||||
import org.testng.annotations.BeforeClass;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -23,7 +23,9 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @run testng/othervm -Diters=20000 VarHandleTestMethodHandleAccessByte
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestMethodHandleAccessByte
|
||||
*/
|
||||
|
||||
import org.testng.annotations.BeforeClass;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -23,7 +23,9 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @run testng/othervm -Diters=20000 VarHandleTestMethodHandleAccessChar
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestMethodHandleAccessChar
|
||||
*/
|
||||
|
||||
import org.testng.annotations.BeforeClass;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -23,7 +23,9 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @run testng/othervm -Diters=20000 VarHandleTestMethodHandleAccessDouble
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestMethodHandleAccessDouble
|
||||
*/
|
||||
|
||||
import org.testng.annotations.BeforeClass;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -23,7 +23,9 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @run testng/othervm -Diters=20000 VarHandleTestMethodHandleAccessFloat
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestMethodHandleAccessFloat
|
||||
*/
|
||||
|
||||
import org.testng.annotations.BeforeClass;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -23,7 +23,9 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @run testng/othervm -Diters=20000 VarHandleTestMethodHandleAccessInt
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestMethodHandleAccessInt
|
||||
*/
|
||||
|
||||
import org.testng.annotations.BeforeClass;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -23,7 +23,9 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @run testng/othervm -Diters=20000 VarHandleTestMethodHandleAccessLong
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestMethodHandleAccessLong
|
||||
*/
|
||||
|
||||
import org.testng.annotations.BeforeClass;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -23,7 +23,9 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @run testng/othervm -Diters=20000 VarHandleTestMethodHandleAccessShort
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestMethodHandleAccessShort
|
||||
*/
|
||||
|
||||
import org.testng.annotations.BeforeClass;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -23,7 +23,9 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @run testng/othervm -Diters=20000 VarHandleTestMethodHandleAccessString
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestMethodHandleAccessString
|
||||
*/
|
||||
|
||||
import org.testng.annotations.BeforeClass;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -23,10 +23,14 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @run testng/othervm -Diters=10 -Xint VarHandleTestAccess$Type$
|
||||
* @run testng/othervm -Diters=20000 -XX:TieredStopAtLevel=1 VarHandleTestAccess$Type$
|
||||
* @run testng/othervm -Diters=20000 VarHandleTestAccess$Type$
|
||||
* @run testng/othervm -Diters=20000 -XX:-TieredCompilation VarHandleTestAccess$Type$
|
||||
* @run testng/othervm -Diters=10 -Xint VarHandleTestAccess$Type$
|
||||
*
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
*
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:TieredStopAtLevel=1 VarHandleTestAccess$Type$
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestAccess$Type$
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:-TieredCompilation VarHandleTestAccess$Type$
|
||||
*/
|
||||
|
||||
import org.testng.annotations.BeforeClass;
|
||||
@ -340,9 +344,6 @@ public class VarHandleTestAccess$Type$ extends VarHandleBaseTest {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void testInstanceFinalField(VarHandleTestAccess$Type$ recv, VarHandle vh) {
|
||||
// Plain
|
||||
{
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -24,9 +24,11 @@
|
||||
/*
|
||||
* @test
|
||||
* @bug 8154556
|
||||
* @run testng/othervm/timeout=360 -Diters=20000 -XX:TieredStopAtLevel=1 VarHandleTestByteArrayAs$Type$
|
||||
* @run testng/othervm/timeout=360 -Diters=20000 VarHandleTestByteArrayAs$Type$
|
||||
* @run testng/othervm/timeout=360 -Diters=20000 -XX:-TieredCompilation VarHandleTestByteArrayAs$Type$
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
* @run testng/othervm/timeout=360 -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:TieredStopAtLevel=1 VarHandleTestByteArrayAs$Type$
|
||||
* @run testng/othervm/timeout=360 -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestByteArrayAs$Type$
|
||||
* @run testng/othervm/timeout=360 -Diters=2000 -XX:CompileThresholdScaling=0.1 -XX:-TieredCompilation VarHandleTestByteArrayAs$Type$
|
||||
*/
|
||||
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2023, 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
|
||||
@ -23,7 +23,9 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @run testng/othervm -Diters=20000 VarHandleTestMethodHandleAccess$Type$
|
||||
* @comment Set CompileThresholdScaling to 0.1 so that the warmup loop sets to 2000 iterations
|
||||
* to hit compilation thresholds
|
||||
* @run testng/othervm -Diters=2000 -XX:CompileThresholdScaling=0.1 VarHandleTestMethodHandleAccess$Type$
|
||||
*/
|
||||
|
||||
import org.testng.annotations.BeforeClass;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user