Skip to content

Commit c5f7b0d

Browse files
authored
Merge pull request SAP#2052 from SAP/pr-jdk-17.0.17+5
Merge to tag jdk-17.0.17+5
2 parents 6d88e0e + 880c9e0 commit c5f7b0d

File tree

55 files changed

+3466
-95
lines changed

Some content is hidden

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

55 files changed

+3466
-95
lines changed

make/data/lsrdata/language-subtag-registry.txt

Lines changed: 120 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
File-Date: 2024-11-19
1+
File-Date: 2025-05-15
22
%%
33
Type: language
44
Subtag: aa
@@ -5950,6 +5950,7 @@ Added: 2009-07-29
59505950
%%
59515951
Type: language
59525952
Subtag: bql
5953+
Description: Karian
59535954
Description: Bilakura
59545955
Added: 2009-07-29
59555956
%%
@@ -9083,6 +9084,7 @@ Scope: collection
90839084
%%
90849085
Type: language
90859086
Subtag: daz
9087+
Description: Moi-Wadea
90869088
Description: Dao
90879089
Added: 2009-07-29
90889090
%%
@@ -9290,6 +9292,8 @@ Type: language
92909292
Subtag: dek
92919293
Description: Dek
92929294
Added: 2009-07-29
9295+
Deprecated: 2024-12-12
9296+
Preferred-Value: sqm
92939297
%%
92949298
Type: language
92959299
Subtag: del
@@ -14082,6 +14086,12 @@ Added: 2009-07-29
1408214086
Macrolanguage: hmn
1408314087
%%
1408414088
Type: language
14089+
Subtag: hnm
14090+
Description: Hainanese
14091+
Added: 2024-12-12
14092+
Macrolanguage: zh
14093+
%%
14094+
Type: language
1408514095
Subtag: hnn
1408614096
Description: Hanunoo
1408714097
Added: 2009-07-29
@@ -16421,6 +16431,7 @@ Added: 2009-07-29
1642116431
%%
1642216432
Type: language
1642316433
Subtag: kci
16434+
Description: Ngyian
1642416435
Description: Kamantan
1642516436
Added: 2009-07-29
1642616437
%%
@@ -21081,6 +21092,12 @@ Description: Laua
2108121092
Added: 2009-07-29
2108221093
%%
2108321094
Type: language
21095+
Subtag: luh
21096+
Description: Leizhou Chinese
21097+
Added: 2024-12-12
21098+
Macrolanguage: zh
21099+
%%
21100+
Type: language
2108421101
Subtag: lui
2108521102
Description: Luiseno
2108621103
Added: 2005-10-16
@@ -22850,6 +22867,8 @@ Added: 2009-07-29
2285022867
%%
2285122868
Type: language
2285222869
Subtag: mmi
22870+
Description: Hember Avu
22871+
Description: Amben
2285322872
Description: Musar
2285422873
Added: 2009-07-29
2285522874
%%
@@ -25197,8 +25216,9 @@ Added: 2009-07-29
2519725216
%%
2519825217
Type: language
2519925218
Subtag: new
25200-
Description: Newari
2520125219
Description: Nepal Bhasa
25220+
Description: Newar
25221+
Description: Newari
2520225222
Added: 2005-10-16
2520325223
%%
2520425224
Type: language
@@ -26641,6 +26661,8 @@ Type: language
2664126661
Subtag: nte
2664226662
Description: Nathembo
2664326663
Added: 2009-07-29
26664+
Deprecated: 2024-12-12
26665+
Preferred-Value: eko
2664426666
%%
2664526667
Type: language
2664626668
Subtag: ntg
@@ -27185,6 +27207,12 @@ Description: Oroch
2718527207
Added: 2009-07-29
2718627208
%%
2718727209
Type: language
27210+
Subtag: oak
27211+
Description: Noakhali
27212+
Description: Noakhailla
27213+
Added: 2025-05-14
27214+
%%
27215+
Type: language
2718827216
Subtag: oar
2718927217
Description: Old Aramaic (up to 700 BCE)
2719027218
Description: Ancient Aramaic (up to 700 BCE)
@@ -32147,6 +32175,12 @@ Description: Sajau Basap
3214732175
Added: 2009-07-29
3214832176
%%
3214932177
Type: language
32178+
Subtag: sjc
32179+
Description: Shaojiang Chinese
32180+
Added: 2024-12-12
32181+
Macrolanguage: zh
32182+
%%
32183+
Type: language
3215032184
Subtag: sjd
3215132185
Description: Kildin Sami
3215232186
Added: 2009-07-29
@@ -41302,6 +41336,11 @@ Description: Aluo
4130241336
Added: 2009-07-29
4130341337
%%
4130441338
Type: language
41339+
Subtag: ynb
41340+
Description: Yamben
41341+
Added: 2025-02-06
41342+
%%
41343+
Type: language
4130541344
Subtag: ynd
4130641345
Description: Yandruwandha
4130741346
Added: 2009-07-29
@@ -43616,6 +43655,14 @@ Preferred-Value: hks
4361643655
Prefix: sgn
4361743656
%%
4361843657
Type: extlang
43658+
Subtag: hnm
43659+
Description: Hainanese
43660+
Added: 2024-12-12
43661+
Preferred-Value: hnm
43662+
Prefix: zh
43663+
Macrolanguage: zh
43664+
%%
43665+
Type: extlang
4361943666
Subtag: hos
4362043667
Description: Ho Chi Minh City Sign Language
4362143668
Added: 2009-07-29
@@ -43958,6 +44005,14 @@ Prefix: lv
4395844005
Macrolanguage: lv
4395944006
%%
4396044007
Type: extlang
44008+
Subtag: luh
44009+
Description: Leizhou Chinese
44010+
Added: 2024-12-12
44011+
Preferred-Value: luh
44012+
Prefix: zh
44013+
Macrolanguage: zh
44014+
%%
44015+
Type: extlang
4396144016
Subtag: lvs
4396244017
Description: Standard Latvian
4396344018
Added: 2010-03-11
@@ -44393,6 +44448,14 @@ Prefix: ar
4439344448
Macrolanguage: ar
4439444449
%%
4439544450
Type: extlang
44451+
Subtag: sjc
44452+
Description: Shaojiang Chinese
44453+
Added: 2024-12-12
44454+
Preferred-Value: sjc
44455+
Prefix: zh
44456+
Macrolanguage: zh
44457+
%%
44458+
Type: extlang
4439644459
Subtag: slf
4439744460
Description: Swiss-Italian Sign Language
4439844461
Added: 2009-07-29
@@ -44844,6 +44907,11 @@ Description: Bangla
4484444907
Added: 2005-10-16
4484544908
%%
4484644909
Type: script
44910+
Subtag: Berf
44911+
Description: Beria Erfe
44912+
Added: 2025-02-06
44913+
%%
44914+
Type: script
4484744915
Subtag: Bhks
4484844916
Description: Bhaiksuki
4484944917
Added: 2015-07-24
@@ -45132,6 +45200,12 @@ Description: Nyiakeng Puachue Hmong
4513245200
Added: 2017-08-13
4513345201
%%
4513445202
Type: script
45203+
Subtag: Hntl
45204+
Description: Han (Traditional variant) with Latin (alias for Hant +
45205+
Latn)
45206+
Added: 2025-05-14
45207+
%%
45208+
Type: script
4513545209
Subtag: Hrkt
4513645210
Description: Japanese syllabaries (alias for Hiragana + Katakana)
4513745211
Added: 2005-10-16
@@ -45636,6 +45710,12 @@ Description: Saurashtra
4563645710
Added: 2006-07-21
4563745711
%%
4563845712
Type: script
45713+
Subtag: Seal
45714+
Description: Seal
45715+
Description: Small Seal
45716+
Added: 2025-05-14
45717+
%%
45718+
Type: script
4563945719
Subtag: Sgnw
4564045720
Description: SignWriting
4564145721
Added: 2006-10-17
@@ -47919,6 +47999,12 @@ Comments: Written standard developed by Romanilha in 1853 and used by
4791947999
dóu Po, Escolo Gaston Febus, and others
4792048000
%%
4792148001
Type: variant
48002+
Subtag: hanoi
48003+
Description: The Hà Nội variant of Vietnamese
48004+
Added: 2025-03-10
48005+
Prefix: vi
48006+
%%
48007+
Type: variant
4792248008
Subtag: hepburn
4792348009
Description: Hepburn romanization
4792448010
Added: 2009-10-01
@@ -47949,6 +48035,12 @@ Added: 2017-03-14
4794948035
Prefix: eo
4795048036
%%
4795148037
Type: variant
48038+
Subtag: huett
48039+
Description: The Huế (province Thừa Thiên) variant of Vietnamese
48040+
Added: 2025-03-10
48041+
Prefix: vi
48042+
%%
48043+
Type: variant
4795248044
Subtag: ijekavsk
4795348045
Description: Serbian with Ijekavian pronunciation
4795448046
Prefix: sr
@@ -48024,6 +48116,13 @@ Prefix: sa
4802448116
Comments: Preferred tag is cls
4802548117
%%
4802648118
Type: variant
48119+
Subtag: leidentr
48120+
Description: Ancient Egyptian in Leiden Unified Transliteration
48121+
Added: 2025-02-06
48122+
Prefix: egy
48123+
Comments: Recommended by the International Association of Egyptologists
48124+
%%
48125+
Type: variant
4802748126
Subtag: lemosin
4802848127
Description: Limousin
4802948128
Added: 2018-04-22
@@ -48068,6 +48167,19 @@ Comments: Russian orthography as established by the 1917/1918
4806848167
orthographic reforms
4806948168
%%
4807048169
Type: variant
48170+
Subtag: mdcegyp
48171+
Description: Ancient Egyptian hieroglyphs encoded in Manuel de Codage
48172+
Added: 2025-02-06
48173+
Prefix: egy
48174+
%%
48175+
Type: variant
48176+
Subtag: mdctrans
48177+
Description: Ancient Egyptian transliteration encoded in Manuel de
48178+
Codage
48179+
Added: 2025-02-06
48180+
Prefix: egy
48181+
%%
48182+
Type: variant
4807148183
Subtag: metelko
4807248184
Description: Slovene in Metelko alphabet
4807348185
Added: 2012-06-27
@@ -48255,6 +48367,12 @@ Prefix: rm
4825548367
Comments: Supraregional Romansh written standard
4825648368
%%
4825748369
Type: variant
48370+
Subtag: saigon
48371+
Description: The Sài Gòn variant of Vietnamese
48372+
Added: 2025-03-10
48373+
Prefix: vi
48374+
%%
48375+
Type: variant
4825848376
Subtag: scotland
4825948377
Description: Scottish Standard English
4826048378
Added: 2007-08-31

src/java.base/share/classes/java/util/concurrent/SubmissionPublisher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ static final class BufferedSubscription<T>
10591059
final Subscriber<? super T> subscriber;
10601060
final BiConsumer<? super Subscriber<? super T>, ? super Throwable> onNextHandler;
10611061
Executor executor; // null on error
1062-
Thread waiter; // blocked producer thread
1062+
volatile Thread waiter; // blocked producer thread
10631063
Throwable pendingError; // holds until onError issued
10641064
BufferedSubscription<T> next; // used only by publisher
10651065
BufferedSubscription<T> nextRetry; // used only by publisher

src/java.net.http/share/classes/jdk/internal/net/http/WindowUpdateSender.java

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 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
@@ -115,18 +115,24 @@ abstract class WindowUpdateSender {
115115
* the caller wants to buffer.
116116
*/
117117
boolean canBufferUnprocessedBytes(int len) {
118-
return !checkWindowSizeExceeded(unprocessed.addAndGet(len));
118+
long buffered, processed;
119+
// get received before unprocessed in order to avoid counting
120+
// unprocessed bytes that might get unbuffered asynchronously
121+
// twice.
122+
processed = received.get();
123+
buffered = unprocessed.addAndGet(len);
124+
return !checkWindowSizeExceeded(processed, buffered);
119125
}
120126

121127
// adds the provided amount to the amount of already
122-
// received and processed bytes and checks whether the
128+
// processed and processed bytes and checks whether the
123129
// flow control window is exceeded. If so, take
124130
// corrective actions and return true.
125-
private boolean checkWindowSizeExceeded(long len) {
131+
private boolean checkWindowSizeExceeded(long processed, long len) {
126132
// because windowSize is bound by Integer.MAX_VALUE
127133
// we will never reach the point where received.get() + len
128134
// could overflow
129-
long rcv = received.get() + len;
135+
long rcv = processed + len;
130136
return rcv > windowSize && windowSizeExceeded(rcv);
131137
}
132138

@@ -141,6 +147,7 @@ private boolean checkWindowSizeExceeded(long len) {
141147
* @param delta the amount of processed bytes to release
142148
*/
143149
void processed(int delta) {
150+
assert delta >= 0 : delta;
144151
long rest = unprocessed.addAndGet(-delta);
145152
assert rest >= 0;
146153
update(delta);
@@ -164,6 +171,7 @@ void processed(int delta) {
164171
* @return the amount of remaining unprocessed bytes
165172
*/
166173
long released(int delta) {
174+
assert delta >= 0 : delta;
167175
long rest = unprocessed.addAndGet(-delta);
168176
assert rest >= 0;
169177
return rest;
@@ -192,7 +200,7 @@ void update(int delta) {
192200
synchronized (this) {
193201
int tosend = (int)Math.min(received.get(), Integer.MAX_VALUE);
194202
if (tosend > limit) {
195-
received.getAndAdd(-tosend);
203+
received.addAndGet(-tosend);
196204
sendWindowUpdate(tosend);
197205
}
198206
}

test/jdk/ProblemList.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,8 @@ jdk/jfr/api/consumer/recordingstream/TestOnEvent.java 8255404 linux-x6
817817

818818
# Client manual tests
819819

820+
javax/swing/JTabbedPane/bug4499556.java 8267500 macosx-all
821+
820822
java/awt/event/MouseEvent/SpuriousExitEnter/SpuriousExitEnter_1.java 7131438,8022539 generic-all
821823
java/awt/event/MouseEvent/SpuriousExitEnter/SpuriousExitEnter_2.java 7131438,8022539 generic-all
822824
java/awt/Modal/WsDisabledStyle/CloseBlocker/CloseBlocker.java 7187741 linux-all,macosx-all

0 commit comments

Comments
 (0)