Skip to content

Commit 44eb4c1

Browse files
committed
Backport d5a1521fde3f6ff7e810e8257a4722a09c9ef60b
1 parent af0de21 commit 44eb4c1

File tree

40 files changed

+129
-83
lines changed

40 files changed

+129
-83
lines changed

test/hotspot/jtreg/applications/jcstress/README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
1+
Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
22
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
33

44
This code is free software; you can redistribute it and/or modify it
@@ -37,5 +37,5 @@ The */Test.java files should never be modified directly, because they are
3737
generated by TestGenerator and therefore all required changes must be made in
3838
that class.
3939

40-
[1] https://wiki.openjdk.java.net/display/CodeTools/jcstress
40+
[1] https://wiki.openjdk.org/display/CodeTools/jcstress
4141

test/hotspot/jtreg/applications/jcstress/TestGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
* added to classpath. One can replace @notest by @test in jtreg test
5757
* description above to run this class with jtreg.
5858
*
59-
* @see <a href=https://wiki.openjdk.java.net/display/CodeTools/jcstress>jcstress</a>
59+
* @see <a href=https://wiki.openjdk.org/display/CodeTools/jcstress>jcstress</a>
6060
*/
6161
public class TestGenerator {
6262
private static final String COPYRIGHT;

test/hotspot/jtreg/compiler/c2/Test6880034.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
// an incorrect result on 32-bit server VMs on SPARC due to a regression
5353
// introduced by the change: "6420645: Create a vm that uses compressed oops
5454
// for up to 32gb heapsizes"
55-
// (http://hg.openjdk.java.net/jdk7/jdk7/hotspot/rev/ba764ed4b6f2). Further
55+
// (https://git.openjdk.org/jdk/commit/4a831d4). Further
5656
// investigation showed that change 6420645 is not really the root cause of
5757
// this error but only reveals a problem with the float register encodings in
5858
// sparc.ad which was hidden until now.

test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.hotspot.test/src/jdk/vm/ci/hotspot/test/TestDynamicConstant.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -63,8 +63,8 @@
6363
/**
6464
* Tests support for Dynamic constants.
6565
*
66-
* @see "https://openjdk.java.net/jeps/309"
67-
* @see "https://bugs.openjdk.java.net/browse/JDK-8177279"
66+
* @see "https://openjdk.org/jeps/309"
67+
* @see "https://bugs.openjdk.org/browse/JDK-8177279"
6868
*/
6969
public class TestDynamicConstant implements Opcodes {
7070

test/hotspot/jtreg/compiler/lib/ir_framework/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ More information about the internals and the workflow of the framework can be fo
123123
## 4. Internal Framework Tests
124124
There are various tests to verify the correctness of the test framework. These tests can be found in [ir_framework](../../../testlibrary_tests/ir_framework) and can directly be run with JTreg. The tests are part of the normal JTreg tests of HotSpot and should be run upon changing the framework code as a minimal form of testing.
125125

126-
Additional testing was performed by converting all compiler Inline Types tests that used the currently present IR test framework in Valhalla (see [JDK-8263024](https://bugs.openjdk.java.net/browse/JDK-8263024)). It is strongly advised to make sure a change to the framework still lets these converted tests in Valhalla pass as part of an additional testing step.
126+
Additional testing was performed by converting all compiler Inline Types tests that used the currently present IR test framework in Valhalla (see [JDK-8263024](https://bugs.openjdk.org/browse/JDK-8263024)). It is strongly advised to make sure a change to the framework still lets these converted tests in Valhalla pass as part of an additional testing step.
127127

128128
## 5. Framework Package Structure
129129
A user only needs to import classes from the package `compiler.lib.ir_framework` (e.g. `import compiler.lib.ir_framework.*;`) which represents the interface classes to the framework. The remaining framework internal classes are kept in separate subpackages and should not directly be imported:
@@ -134,4 +134,4 @@ A user only needs to import classes from the package `compiler.lib.ir_framework`
134134
- `compiler.lib.ir_framework.shared`: These classes can be called from either the driver, flag, or test VM.
135135

136136
## 6. Summary
137-
The initial design and feature set was kept simple and straight forward and serves well for small to medium sized tests. There are a lot of possibilities to further enhance the framework and make it more powerful. This can be tackled in additional RFEs. A few ideas can be found as subtasks of the [initial RFE](https://bugs.openjdk.java.net/browse/JDK-8254129) for this framework.
137+
The initial design and feature set was kept simple and straight forward and serves well for small to medium sized tests. There are a lot of possibilities to further enhance the framework and make it more powerful. This can be tackled in additional RFEs. A few ideas can be found as subtasks of the [initial RFE](https://bugs.openjdk.org/browse/JDK-8254129) for this framework.

test/hotspot/jtreg/compiler/membars/DekkerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class DekkerTest {
4747
/*
4848
Read After Write Test (basically a simple Dekker test with volatile variables)
4949
Derived from the original jcstress test, available at:
50-
http://hg.openjdk.java.net/code-tools/jcstress/file/6c339a5aa00d/
50+
hhttps://git.openjdk.org/jcstress/commit/15acd86
5151
tests-custom/src/main/java/org/openjdk/jcstress/tests/volatiles/DekkerTest.java
5252
*/
5353

test/hotspot/jtreg/gc/g1/logging/TestG1LoggingFailure.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -55,7 +55,7 @@ public static void main(String[] args) throws Throwable {
5555

5656
options.add(Alloc.class.getName());
5757

58-
// According to https://bugs.openjdk.java.net/browse/JDK-8146009 failure happens not every time.
58+
// According to https://bugs.openjdk.org/browse/JDK-8146009 failure happens not every time.
5959
// Will try to reproduce this failure.
6060
for (int iteration = 0; iteration < 40; ++iteration) {
6161
startVM(options);

test/hotspot/jtreg/gc/testlibrary/PerfCounter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -28,7 +28,7 @@
2828
/**
2929
* Represents a performance counter in the JVM.
3030
*
31-
* See http://openjdk.java.net/groups/hotspot/docs/Serviceability.html#bjvmstat
31+
* See https://openjdk.org/groups/hotspot/docs/Serviceability.html#bjvmstat
3232
* for more details about performance counters.
3333
*/
3434
public class PerfCounter {

test/jaxp/javax/xml/jaxp/libs/jaxp/library/JAXPTestPolicy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -53,7 +53,7 @@ public void onStart(ITestContext arg0) {
5353
policyManager.addPermission(new RuntimePermission("accessClassInPackage.com.sun.org.apache.xalan.internal.xsltc.trax"));
5454
policyManager.addPermission(new RuntimePermission("accessClassInPackage.com.sun.xml.internal.stream"));
5555

56-
policyManager.addPermission(new SocketPermission("openjdk.java.net:80", "connect,resolve"));
56+
policyManager.addPermission(new SocketPermission("openjdk.org:80", "connect,resolve"));
5757
policyManager.addPermission(new SocketPermission("www.w3.org:80", "connect,resolve"));
5858
}
5959
}

test/jaxp/javax/xml/jaxp/libs/jaxp/library/NetAccessPolicy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -36,7 +36,7 @@ public void onStart(ITestContext arg0) {
3636
// suppose to only run othervm mode
3737
if (isRunWithSecurityManager()) {
3838
JAXPPolicyManager policyManager = JAXPPolicyManager.getJAXPPolicyManager(true);
39-
policyManager.addPermission(new SocketPermission("openjdk.java.net:80", "connect,resolve"));
39+
policyManager.addPermission(new SocketPermission("openjdk.org:80", "connect,resolve"));
4040
policyManager.addPermission(new SocketPermission("www.w3.org:80", "connect,resolve"));
4141
}
4242
}

0 commit comments

Comments
 (0)