Skip to content

Commit 466446b

Browse files
committed
Merge master jdk-17.0.16+5 into openj9-staging
Signed-off-by: J9 Build <[email protected]>
2 parents d78a065 + 914318d commit 466446b

File tree

57 files changed

+2803
-418
lines changed

Some content is hidden

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

57 files changed

+2803
-418
lines changed

make/data/currency/CurrencyData.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2000, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2000, 2025, 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
@@ -32,7 +32,7 @@ formatVersion=3
3232
# Version of the currency code information in this class.
3333
# It is a serial number that accompanies with each amendment.
3434

35-
dataVersion=177
35+
dataVersion=179
3636

3737
# List of all valid ISO 4217 currency codes.
3838
# To ensure compatibility, do not remove codes.
@@ -54,7 +54,7 @@ all=ADP020-AED784-AFA004-AFN971-ALL008-AMD051-ANG532-AOA973-ARS032-ATS040-AUD036
5454
SBD090-SCR690-SDD736-SDG938-SEK752-SGD702-SHP654-SIT705-SKK703-SLE925-SLL694-SOS706-\
5555
SRD968-SRG740-SSP728-STD678-STN930-SVC222-SYP760-SZL748-THB764-TJS972-TMM795-TMT934-TND788-TOP776-\
5656
TPE626-TRL792-TRY949-TTD780-TWD901-TZS834-UAH980-UGX800-USD840-USN997-USS998-UYI940-\
57-
UYU858-UZS860-VEB862-VED926-VEF937-VES928-VND704-VUV548-WST882-XAF950-XAG961-XAU959-XBA955-\
57+
UYU858-UZS860-VEB862-VED926-VEF937-VES928-VND704-VUV548-WST882-XAD396-XAF950-XAG961-XAU959-XBA955-\
5858
XBB956-XBC957-XBD958-XCD951-XCG532-XDR960-XFO000-XFU000-XOF952-XPD964-XPF953-\
5959
XPT962-XSU994-XTS963-XUA965-XXX999-YER886-YUM891-ZAR710-ZMK894-ZMW967-ZWD716-ZWG924-\
6060
ZWL932-ZWN942-ZWR935

make/modules/jdk.jdwp.agent/Lib.gmk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBJDWP, \
5555
DISABLED_WARNINGS_gcc := unused-function, \
5656
DISABLED_WARNINGS_clang := sometimes-uninitialized format-nonliteral \
5757
self-assign, \
58+
DISABLED_WARNINGS_microsoft_debugInit.c := 5287, \
5859
EXTRA_HEADER_DIRS := \
5960
include \
6061
libjdwp/export, \

src/java.base/share/classes/sun/util/resources/CurrencyNames.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2005, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2005, 2025, 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
@@ -258,6 +258,7 @@ VES=VES
258258
VND=VND
259259
VUV=VUV
260260
WST=WST
261+
XAD=XAD
261262
XAF=XAF
262263
XAG=XAG
263264
XAU=XAU
@@ -485,6 +486,7 @@ ves=Venezuelan Bol\u00edvar Soberano
485486
vnd=Vietnamese Dong
486487
vuv=Vanuatu Vatu
487488
wst=Samoan Tala
489+
xad=Arab Accounting Dinar
488490
xaf=CFA Franc BEAC
489491
xag=Silver
490492
xau=Gold

src/java.desktop/share/classes/javax/swing/JColorChooser.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ public static Color showDialog(Component component,
175175
* @return the selected color or <code>null</code> if the user opted out
176176
* @exception HeadlessException if GraphicsEnvironment.isHeadless()
177177
* returns true.
178+
*
178179
* @see java.awt.GraphicsEnvironment#isHeadless
180+
* @since 9
179181
*/
180182
@SuppressWarnings("deprecation")
181183
public static Color showDialog(Component component, String title,

src/java.desktop/share/classes/javax/swing/colorchooser/AbstractColorChooserPanel.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ void setSelectedColor(Color color) {
229229
*
230230
* @param b true if the transparency of a color can be selected
231231
* @see #isColorTransparencySelectionEnabled()
232+
* @since 9
232233
*/
233234
@BeanProperty(description
234235
= "Sets the transparency of a color selection on or off.")
@@ -241,6 +242,7 @@ public void setColorTransparencySelectionEnabled(boolean b){
241242
*
242243
* @return true if the transparency of a color can be selected
243244
* @see #setColorTransparencySelectionEnabled(boolean)
245+
* @since 9
244246
*/
245247
public boolean isColorTransparencySelectionEnabled(){
246248
return true;

src/jdk.internal.jvmstat/share/classes/sun/jvmstat/monitor/MonitoredHost.java

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2004, 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
@@ -50,7 +50,7 @@
5050
* @see HostListener
5151
*/
5252
public abstract class MonitoredHost {
53-
private static Map<HostIdentifier, MonitoredHost> monitoredHosts =
53+
private static final Map<HostIdentifier, MonitoredHost> monitoredHosts =
5454
new HashMap<HostIdentifier, MonitoredHost>();
5555

5656
/*
@@ -133,13 +133,6 @@ public static MonitoredHost getMonitoredHost(VmIdentifier vmid)
133133
return getMonitoredHost(hostId);
134134
}
135135

136-
137-
/*
138-
* Load the MonitoredHostServices
139-
*/
140-
private static ServiceLoader<MonitoredHostService> monitoredHostServiceLoader =
141-
ServiceLoader.load(MonitoredHostService.class, MonitoredHostService.class.getClassLoader());
142-
143136
/**
144137
* Factory method to construct a MonitoredHost instance to manage the
145138
* connection to the host indicated by {@code hostId}.
@@ -167,9 +160,12 @@ public static MonitoredHost getMonitoredHost(HostIdentifier hostId)
167160

168161
hostId = resolveHostId(hostId);
169162

170-
for (MonitoredHostService mhs : monitoredHostServiceLoader) {
163+
ServiceLoader<MonitoredHostService> services = ServiceLoader.load(
164+
MonitoredHostService.class, MonitoredHostService.class.getClassLoader());
165+
for (MonitoredHostService mhs : services) {
171166
if (mhs.getScheme().equals(hostId.getScheme())) {
172167
mh = mhs.getMonitoredHost(hostId);
168+
break;
173169
}
174170
}
175171

test/failure_handler/src/share/conf/linux.properties

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,11 @@ native.stack.args.delimiter=\0
5454
native.stack.params.repeat=6
5555

5656
# has to be the last command
57-
native.core.app=kill
58-
native.core.args=-ABRT %p
57+
native.core.app=bash
58+
# The below trick was found on https://stackoverflow.com/a/41613532
59+
native.core.args=-c\0kill -ABRT %p && tail --pid=%p -f /dev/null
60+
native.core.args.delimiter=\0
61+
native.core.timeout=600000
5962

6063
cores=native.gdb
6164
native.gdb.app=gdb

test/failure_handler/src/share/conf/mac.properties

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2015, 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
@@ -62,12 +62,18 @@ native.stack.params.repeat=6
6262
native.stack.args=-c\0DevToolsSecurity --status | grep -q enabled && lldb -o 'attach %p' -o 'thread backtrace all' -o 'detach' -o 'quit'
6363

6464
# has to be the last command
65-
native.core.app=kill
66-
native.core.args=-ABRT %p
65+
native.core.app=bash
66+
# The below trick was found on https://stackoverflow.com/a/41613532
67+
native.core.args=-c\0kill -ABRT %p && lsof -p %p +r 1 &>/dev/null
68+
native.core.delimiter=\0
69+
native.core.timeout=600000
6770

6871
cores=native.lldb
6972
native.lldb.app=lldb
7073
native.lldb.delimiter=\0
74+
# Core files can be very big and take a long time to load on macosx-aarch64.
75+
# The 20 seconds default timeout is not nearly enough.
76+
native.lldb.timeout=120000
7177
# Assume that java standard laucher has been used
7278
native.lldb.args=--core\0%p\0%java\0-o\0thread backtrace all\0-o\0quit
7379

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* Copyright (c) 2023, Red Hat, Inc. All rights reserved.
3+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4+
*
5+
* This code is free software; you can redistribute it and/or modify it
6+
* under the terms of the GNU General Public License version 2 only, as
7+
* published by the Free Software Foundation.
8+
*
9+
* This code is distributed in the hope that it will be useful, but WITHOUT
10+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11+
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12+
* version 2 for more details (a copy is included in the LICENSE file that
13+
* accompanied this code).
14+
*
15+
* You should have received a copy of the GNU General Public License version
16+
* 2 along with this work; if not, write to the Free Software Foundation,
17+
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18+
*
19+
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20+
* or visit www.oracle.com if you need additional information or have any
21+
* questions.
22+
*/
23+
24+
super public class MissingSafepointOnSwitch
25+
version 52:0
26+
{
27+
public Method "<init>":"()V"
28+
stack 1 locals 1
29+
{
30+
aload_0;
31+
invokespecial Method java/lang/Object."<init>":"()V";
32+
return;
33+
}
34+
/* Same as:
35+
public static void test(boolean flag, int v) {
36+
if (flag) {
37+
loop:
38+
for (; ; ) {
39+
switch(v) {
40+
case 0:
41+
case 1:
42+
case 2:
43+
break loop;
44+
default:
45+
}
46+
}
47+
}
48+
}
49+
but with the default: set to the loop entry
50+
*/
51+
public static Method test:"(ZI)V"
52+
stack 1 locals 2
53+
{
54+
iload_0;
55+
ifeq L32;
56+
L4: stack_frame_type same;
57+
iload_1;
58+
tableswitch{ //0 to 2
59+
0: L32;
60+
1: L32;
61+
2: L32;
62+
default: L4 };
63+
L32: stack_frame_type same;
64+
return;
65+
}
66+
67+
} // end Class TestMissingSafepointOnSwitch
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Copyright (c) 2023, Red Hat, Inc. All rights reserved.
3+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4+
*
5+
* This code is free software; you can redistribute it and/or modify it
6+
* under the terms of the GNU General Public License version 2 only, as
7+
* published by the Free Software Foundation.
8+
*
9+
* This code is distributed in the hope that it will be useful, but WITHOUT
10+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11+
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12+
* version 2 for more details (a copy is included in the LICENSE file that
13+
* accompanied this code).
14+
*
15+
* You should have received a copy of the GNU General Public License version
16+
* 2 along with this work; if not, write to the Free Software Foundation,
17+
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18+
*
19+
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20+
* or visit www.oracle.com if you need additional information or have any
21+
* questions.
22+
*/
23+
24+
/*
25+
* @test
26+
* @bug 8306997
27+
* @summary C2: "malformed control flow" assert due to missing safepoint on backedge with a switch
28+
* @compile MissingSafepointOnSwitch.jasm
29+
* @run main/othervm -Xcomp -XX:CompileOnly=MissingSafepointOnSwitch::test TestMissingSafepointOnSwitch
30+
*/
31+
32+
public class TestMissingSafepointOnSwitch {
33+
public static void main(String[] args) {
34+
MissingSafepointOnSwitch.test(false, 0);
35+
}
36+
37+
}

0 commit comments

Comments
 (0)