Skip to content

Commit d0557b2

Browse files
author
Datadog Syncup Service
committed
Merge branch 'upstream-master'
2 parents 713b593 + 1f039fe commit d0557b2

File tree

94 files changed

+6115
-80
lines changed

Some content is hidden

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

94 files changed

+6115
-80
lines changed

src/java.base/share/classes/java/security/Provider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,6 +1288,7 @@ public Service getService(String type, String algorithm) {
12881288
s = legacyMap.get(key);
12891289
if (s != null && !s.isValid()) {
12901290
legacyMap.remove(key, s);
1291+
return null;
12911292
}
12921293
}
12931294

src/java.desktop/share/classes/javax/swing/text/Document.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@
277277
* <p>Removing text from a DefaultStyledDocument is similar to removing text from
278278
* a PlainDocument. The only difference is the extra level of Elements.
279279
* Consider what would happen if you deleted two characters at Offset 1
280-
* from Figure 10, above. Since the the second Element of Paragraph 1 is
280+
* from Figure 10, above. Since the second Element of Paragraph 1 is
281281
* completely contained in the deleted region, it would be removed.
282282
* Assuming the attributes of Paragraph 1's first child matched those of
283283
* Paragraph2's first child, the results would be those shown in <u>Figure 11</u>.

test/hotspot/jtreg/serviceability/dcmd/framework/HelpTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2023, 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
@@ -34,6 +34,7 @@
3434
* @summary Test of diagnostic command help (tests all DCMD executors)
3535
* @library /test/lib
3636
* /vmTestbase
37+
* @requires vm.flagless
3738
* @modules java.base/jdk.internal.misc
3839
* java.compiler
3940
* java.management

test/hotspot/jtreg/serviceability/dcmd/framework/InvalidCommandTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2023, 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
@@ -34,6 +34,7 @@
3434
* @summary Test of invalid diagnostic command (tests all DCMD executors)
3535
* @library /test/lib
3636
* /vmTestbase
37+
* @requires vm.flagless
3738
* @modules java.base/jdk.internal.misc
3839
* java.compiler
3940
* java.management

test/hotspot/jtreg/serviceability/dcmd/framework/VMVersionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import jdk.test.lib.dcmd.MainClassJcmdExecutor;
2828
import jdk.test.lib.dcmd.FileJcmdExecutor;
2929
import jdk.test.lib.dcmd.JMXExecutor;
30-
import nsk.share.jdi.ArgumentHandler;
3130

3231
import org.testng.annotations.Test;
3332

@@ -37,6 +36,7 @@
3736
* @summary Test of diagnostic command VM.version (tests all DCMD executors)
3837
* @library /test/lib
3938
* /vmTestbase
39+
* @requires vm.flagless
4040
* @modules java.base/jdk.internal.misc
4141
* java.base/jdk.internal.module
4242
* java.compiler

test/hotspot/jtreg/vmTestbase/nsk/share/gc/Memory.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 2024, 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
@@ -150,12 +150,9 @@ public static int getReferenceObjectSize() {
150150
* @return length of array
151151
*/
152152
public static int getArrayLength(long memory, long objectSize) {
153-
int referenceSize = getReferenceSize();
154153
int arrayExtraSize = getArrayExtraSize();
155-
return (int) Math.min(
156-
(memory - arrayExtraSize) / (objectSize + referenceSize),
157-
Integer.MAX_VALUE
158-
);
154+
return (int) Math.min((memory - arrayExtraSize) / objectSize,
155+
Integer.MAX_VALUE);
159156
}
160157

161158
/**
@@ -166,7 +163,7 @@ public static int getArrayLength(long memory, long objectSize) {
166163
* @return size of array
167164
*/
168165
public static long getArraySize(int length, long objectSize) {
169-
return getObjectExtraSize() + length * (objectSize + getReferenceSize());
166+
return getArrayExtraSize() + length * objectSize;
170167
}
171168

172169
/**

test/jdk/ProblemList.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ java/awt/event/KeyEvent/ExtendedModifiersTest/ExtendedModifiersTest.java 8129778
203203
java/awt/event/KeyEvent/KeyMaskTest/KeyMaskTest.java 8129778 generic-all
204204
java/awt/event/MouseEvent/MouseButtonsAndKeyMasksTest/MouseButtonsAndKeyMasksTest.java 8129778 generic-all
205205

206+
java/awt/dnd/DnDCursorCrashTest.java 8242805 macosx-all
207+
java/awt/dnd/DnDClipboardDeadlockTest.java 8079553 linux-all
206208
java/awt/dnd/URIListToFileListBetweenJVMsTest/URIListToFileListBetweenJVMsTest.java 8194947 generic-all
207209
java/awt/Frame/FramesGC/FramesGC.java 8079069 macosx-all
208210
java/awt/GridLayout/LayoutExtraGaps/LayoutExtraGaps.java 8000171 windows-all
@@ -838,6 +840,9 @@ java/awt/Focus/FrameMinimizeTest/FrameMinimizeTest.java 8016266 linux-x64
838840
java/awt/Frame/SizeMinimizedTest.java 8305915 linux-x64
839841
java/awt/PopupMenu/PopupHangTest.java 8340022 windows-all
840842
java/awt/Focus/InactiveFocusRace.java 8023263 linux-all
843+
java/awt/Checkbox/CheckboxBoxSizeTest.java 8340870 windows-all
844+
java/awt/Checkbox/CheckboxIndicatorSizeTest.java 8340870 windows-all
845+
java/awt/Checkbox/CheckboxNullLabelTest.java 8340870 windows-all
841846
java/awt/dnd/WinMoveFileToShellTest.java 8341665 windows-all
842847

843848

0 commit comments

Comments
 (0)