Skip to content

Commit dbfbb50

Browse files
authored
Merge branch 'master' into goetz_backport_8330534
2 parents 53acce7 + ce82877 commit dbfbb50

File tree

116 files changed

+2047
-28358
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+2047
-28358
lines changed

src/java.base/share/classes/java/text/DateFormatSymbols.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,8 @@ public void setZoneStrings(String[][] newZoneStrings) {
605605
for (int i = 0; i < newZoneStrings.length; ++i) {
606606
int len = newZoneStrings[i].length;
607607
if (len < 5) {
608-
throw new IllegalArgumentException();
608+
throw new IllegalArgumentException(String.format(
609+
"Row %s of the input array does not have a length of at least 5", i));
609610
}
610611
aCopy[i] = Arrays.copyOf(newZoneStrings[i], len);
611612
}

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/hotspot/jtreg/runtime/jni/getCreatedJavaVMs/exeGetCreatedJavaVMs.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,19 @@ void *thread_runner(void *threadid) {
8989

9090
int main (int argc, char* argv[]) {
9191
pthread_t threads[NUM_THREADS];
92+
pthread_attr_t attr;
93+
pthread_attr_init(&attr);
94+
size_t stack_size = 0x100000;
95+
pthread_attr_setstacksize(&attr, stack_size);
9296
for (int i = 0; i < NUM_THREADS; i++ ) {
9397
printf("[*] Creating thread %d\n", i);
94-
int status = pthread_create(&threads[i], NULL, thread_runner, (void *)(intptr_t)i);
98+
int status = pthread_create(&threads[i], &attr, thread_runner, (void *)(intptr_t)i);
9599
if (status != 0) {
96100
printf("[*] Error creating thread %d - %d\n", i, status);
97101
exit(-1);
98102
}
99103
}
104+
pthread_attr_destroy(&attr);
100105
for (int i = 0; i < NUM_THREADS; i++ ) {
101106
pthread_join(threads[i], NULL);
102107
}

0 commit comments

Comments
 (0)