Skip to content

Commit 4a2c224

Browse files
committed
Merge branch '8254162' into 8254231_linker
2 parents 059d3ab + bd40061 commit 4a2c224

File tree

627 files changed

+12399
-8758
lines changed

Some content is hidden

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

627 files changed

+12399
-8758
lines changed

.github/workflows/submit.yml

Lines changed: 293 additions & 17 deletions
Large diffs are not rendered by default.

make/autoconf/spec.gmk.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,6 @@ TAR_SUPPORTS_TRANSFORM:=@TAR_SUPPORTS_TRANSFORM@
759759

760760
# Build setup
761761
ENABLE_AOT:=@ENABLE_AOT@
762-
ENABLE_INTREE_EC:=@ENABLE_INTREE_EC@
763762
USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
764763
USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
765764
USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@

make/data/tzdata/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
# or visit www.oracle.com if you need additional information or have any
2222
# questions.
2323
#
24-
tzdata2020b
24+
tzdata2020c

make/data/tzdata/australasia

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,19 @@ Zone Indian/Cocos 6:27:40 - LMT 1900
404404
# From Michael Deckers (2019-08-06):
405405
# https://www.laws.gov.fj/LawsAsMade/downloadfile/848
406406

407+
# From Raymond Kumar (2020-10-08):
408+
# [DST in Fiji] is from December 20th 2020, till 17th January 2021.
409+
# From Alan Mintz (2020-10-08):
410+
# https://www.laws.gov.fj/LawsAsMade/GetFile/1071
411+
# From Tim Parenti (2020-10-08):
412+
# https://www.fijivillage.com/news/Daylight-saving-from-Dec-20th-this-year-to-Jan-17th-2021-8rf4x5/
413+
# "Minister for Employment, Parveen Bala says they had never thought of
414+
# stopping daylight saving. He says it was just to decide on when it should
415+
# start and end. Bala says it is a short period..."
416+
# Since the end date is still in line with our ongoing predictions, assume for
417+
# now that the later-than-usual start date is a one-time departure from the
418+
# recent second Sunday in November pattern.
419+
407420
# Rule NAME FROM TO - IN ON AT SAVE LETTER/S
408421
Rule Fiji 1998 1999 - Nov Sun>=1 2:00 1:00 -
409422
Rule Fiji 1999 2000 - Feb lastSun 3:00 0 -
@@ -415,7 +428,9 @@ Rule Fiji 2012 2013 - Jan Sun>=18 3:00 0 -
415428
Rule Fiji 2014 only - Jan Sun>=18 2:00 0 -
416429
Rule Fiji 2014 2018 - Nov Sun>=1 2:00 1:00 -
417430
Rule Fiji 2015 max - Jan Sun>=12 3:00 0 -
418-
Rule Fiji 2019 max - Nov Sun>=8 2:00 1:00 -
431+
Rule Fiji 2019 only - Nov Sun>=8 2:00 1:00 -
432+
Rule Fiji 2020 only - Dec 20 2:00 1:00 -
433+
Rule Fiji 2021 max - Nov Sun>=8 2:00 1:00 -
419434
# Zone NAME STDOFF RULES FORMAT [UNTIL]
420435
Zone Pacific/Fiji 11:55:44 - LMT 1915 Oct 26 # Suva
421436
12:00 Fiji +12/+13

make/data/tzdata/europe

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1612,6 +1612,8 @@ Rule Hungary 1946 only - Oct 7 2:00 0 -
16121612
# https://library.hungaricana.hu/hu/view/Zala_1948_09/?pg=64
16131613
# https://library.hungaricana.hu/hu/view/SatoraljaujhelyiLeveltar_ZempleniNepujsag_1948/?pg=53
16141614
# https://library.hungaricana.hu/hu/view/SatoraljaujhelyiLeveltar_ZempleniNepujsag_1948/?pg=160
1615+
# https://library.hungaricana.hu/hu/view/UjSzo_1949_01-04/?pg=102
1616+
# https://library.hungaricana.hu/hu/view/KeletMagyarorszag_1949_03/?pg=96
16151617
# https://library.hungaricana.hu/hu/view/Delmagyarorszag_1949_09/?pg=94
16161618
Rule Hungary 1947 1949 - Apr Sun>=4 2:00s 1:00 S
16171619
Rule Hungary 1947 1949 - Oct Sun>=1 2:00s 0 -
@@ -1627,9 +1629,10 @@ Rule Hungary 1955 only - Oct 2 3:00 0 -
16271629
# https://library.hungaricana.hu/hu/view/PestMegyeiHirlap_1957_09/?pg=143
16281630
Rule Hungary 1956 1957 - Jun Sun>=1 2:00 1:00 S
16291631
Rule Hungary 1956 1957 - Sep lastSun 3:00 0 -
1630-
# https://library.hungaricana.hu/hu/view/DTT_KOZL_TanacsokKozlonye_1980/?pg=1227
1632+
# https://library.hungaricana.hu/hu/view/DTT_KOZL_TanacsokKozlonye_1980/?pg=189
16311633
Rule Hungary 1980 only - Apr 6 0:00 1:00 S
16321634
Rule Hungary 1980 only - Sep 28 1:00 0 -
1635+
# https://library.hungaricana.hu/hu/view/DTT_KOZL_TanacsokKozlonye_1980/?pg=1227
16331636
# https://library.hungaricana.hu/hu/view/Delmagyarorszag_1981_01/?pg=79
16341637
# https://library.hungaricana.hu/hu/view/DTT_KOZL_TanacsokKozlonye_1982/?pg=115
16351638
# https://library.hungaricana.hu/hu/view/DTT_KOZL_TanacsokKozlonye_1983/?pg=85
@@ -1640,6 +1643,7 @@ Rule Hungary 1981 1983 - Sep lastSun 1:00 0 -
16401643
Zone Europe/Budapest 1:16:20 - LMT 1890 Nov 1
16411644
1:00 C-Eur CE%sT 1918
16421645
# https://library.hungaricana.hu/hu/view/OGYK_RT_1941/?pg=1204
1646+
# https://library.hungaricana.hu/hu/view/OGYK_RT_1942/?pg=3955
16431647
1:00 Hungary CE%sT 1941 Apr 7 23:00
16441648
1:00 C-Eur CE%sT 1945
16451649
1:00 Hungary CE%sT 1984

make/modules/java.base/Copy.gmk

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,16 @@ endif
182182

183183
################################################################################
184184

185-
$(eval $(call SetupCopyFiles, COPY_NET_PROPERTIES, \
186-
FILES := $(TOPDIR)/src/java.base/share/conf/net.properties, \
187-
DEST := $(CONF_DST_DIR), \
188-
))
185+
NET_PROPERTIES_SRCS := $(TOPDIR)/src/java.base/share/conf/net.properties \
186+
$(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/conf/net.properties
187+
188+
NET_PROPERTIES_DST := $(CONF_DST_DIR)/net.properties
189+
190+
$(NET_PROPERTIES_DST): $(NET_PROPERTIES_SRCS)
191+
$(call MakeTargetDir)
192+
$(CAT) $(NET_PROPERTIES_SRCS) > $@
189193

190-
TARGETS += $(COPY_NET_PROPERTIES)
194+
TARGETS += $(NET_PROPERTIES_DST)
191195

192196
ifeq ($(call isTargetOs, linux), true)
193197
$(eval $(call SetupCopyFiles, COPY_SDP_CONF, \

make/modules/java.base/gensrc/GensrcScopedMemoryAccess.gmk

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,11 @@
2323
# questions.
2424
#
2525

26-
GENSRC_SCOPED_MEMORY_ACCESS :=
27-
28-
2926
SCOPED_MEMORY_ACCESS_GENSRC_DIR := $(SUPPORT_OUTPUTDIR)/gensrc/java.base/jdk/internal/misc
3027
SCOPED_MEMORY_ACCESS_SRC_DIR := $(TOPDIR)/src/java.base/share/classes/jdk/internal/misc
31-
3228
SCOPED_MEMORY_ACCESS_TEMPLATE := $(SCOPED_MEMORY_ACCESS_SRC_DIR)/X-ScopedMemoryAccess.java.template
3329
SCOPED_MEMORY_ACCESS_BIN_TEMPLATE := $(SCOPED_MEMORY_ACCESS_SRC_DIR)/X-ScopedMemoryAccess-bin.java.template
34-
DEST := $(SCOPED_MEMORY_ACCESS_GENSRC_DIR)/ScopedMemoryAccess.java
30+
SCOPED_MEMORY_ACCESS_DEST := $(SCOPED_MEMORY_ACCESS_GENSRC_DIR)/ScopedMemoryAccess.java
3531

3632
################################################################################
3733
# Setup a rule for generating the ScopedMemoryAccess java class
@@ -144,12 +140,12 @@ SCOPE_MEMORY_ACCESS_TYPES := Byte Short Char Int Long Float Double
144140
$(foreach t, $(SCOPE_MEMORY_ACCESS_TYPES), \
145141
$(eval $(call GenerateScopedOp,BIN_$t,$t)))
146142

147-
$(DEST): $(BUILD_TOOLS_JDK) $(SCOPED_MEMORY_ACCESS_TEMPLATE) $(SCOPED_MEMORY_ACCESS_BIN_TEMPLATE)
148-
$(MKDIR) -p $(SCOPED_MEMORY_ACCESS_GENSRC_DIR)
149-
$(CP) $(SCOPED_MEMORY_ACCESS_TEMPLATE) $(DEST)
143+
$(SCOPED_MEMORY_ACCESS_DEST): $(BUILD_TOOLS_JDK) $(SCOPED_MEMORY_ACCESS_TEMPLATE) $(SCOPED_MEMORY_ACCESS_BIN_TEMPLATE)
144+
$(call MakeDir, $(SCOPED_MEMORY_ACCESS_GENSRC_DIR))
145+
$(CP) $(SCOPED_MEMORY_ACCESS_TEMPLATE) $(SCOPED_MEMORY_ACCESS_DEST)
150146
$(foreach t, $(SCOPE_MEMORY_ACCESS_TYPES), \
151147
$(TOOL_SPP) -nel -K$(BIN_$t_type) -Dtype=$(BIN_$t_type) -DType=$(BIN_$t_Type) $(BIN_$t_ARGS) \
152-
-i$(SCOPED_MEMORY_ACCESS_BIN_TEMPLATE) -o$(DEST) ;)
153-
$(PRINTF) "}\n" >> $(DEST)
148+
-i$(SCOPED_MEMORY_ACCESS_BIN_TEMPLATE) -o$(SCOPED_MEMORY_ACCESS_DEST) ;)
149+
$(PRINTF) "}\n" >> $(SCOPED_MEMORY_ACCESS_DEST)
154150

155-
TARGETS += $(DEST)
151+
TARGETS += $(SCOPED_MEMORY_ACCESS_DEST)

make/modules/jdk.crypto.ec/Lib.gmk

Lines changed: 0 additions & 49 deletions
This file was deleted.

make/test/BuildMicrobenchmark.gmk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,10 @@ $(eval $(call SetupJavaCompilation, BUILD_JDK_MICROBENCHMARK, \
9090
TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \
9191
SMALL_JAVA := false, \
9292
CLASSPATH := $(MICROBENCHMARK_CLASSPATH), \
93-
DISABLED_WARNINGS := processing rawtypes cast serial preview, \
93+
DISABLED_WARNINGS := processing rawtypes cast serial, \
9494
SRC := $(MICROBENCHMARK_SRC), \
9595
BIN := $(MICROBENCHMARK_CLASSES), \
9696
JAVA_FLAGS := --add-modules jdk.unsupported --limit-modules java.management, \
97-
JAVAC_FLAGS := --enable-preview, \
9897
))
9998

10099
$(BUILD_JDK_MICROBENCHMARK): $(JMH_COMPILE_JARS)

src/hotspot/cpu/aarch64/aarch64.ad

Lines changed: 46 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3770,23 +3770,28 @@ encode %{
37703770
if (!_method) {
37713771
// A call to a runtime wrapper, e.g. new, new_typeArray_Java, uncommon_trap.
37723772
call = __ trampoline_call(Address(addr, relocInfo::runtime_call_type), &cbuf);
3773+
if (call == NULL) {
3774+
ciEnv::current()->record_failure("CodeCache is full");
3775+
return;
3776+
}
37733777
} else {
37743778
int method_index = resolved_method_index(cbuf);
37753779
RelocationHolder rspec = _optimized_virtual ? opt_virtual_call_Relocation::spec(method_index)
37763780
: static_call_Relocation::spec(method_index);
37773781
call = __ trampoline_call(Address(addr, rspec), &cbuf);
3778-
3782+
if (call == NULL) {
3783+
ciEnv::current()->record_failure("CodeCache is full");
3784+
return;
3785+
}
37793786
// Emit stub for static call
37803787
address stub = CompiledStaticCall::emit_to_interp_stub(cbuf);
37813788
if (stub == NULL) {
37823789
ciEnv::current()->record_failure("CodeCache is full");
37833790
return;
37843791
}
37853792
}
3786-
if (call == NULL) {
3787-
ciEnv::current()->record_failure("CodeCache is full");
3788-
return;
3789-
} else if (UseSVE > 0 && Compile::current()->max_vector_size() >= 16) {
3793+
3794+
if (UseSVE > 0 && Compile::current()->max_vector_size() >= 16) {
37903795
// Only non uncommon_trap calls need to reinitialize ptrue.
37913796
if (uncommon_trap_request() == 0) {
37923797
__ reinitialize_ptrue();
@@ -14730,7 +14735,11 @@ instruct clearArray_reg_reg(iRegL_R11 cnt, iRegP_R10 base, Universe dummy, rFlag
1473014735
format %{ "ClearArray $cnt, $base" %}
1473114736

1473214737
ins_encode %{
14733-
__ zero_words($base$$Register, $cnt$$Register);
14738+
address tpc = __ zero_words($base$$Register, $cnt$$Register);
14739+
if (tpc == NULL) {
14740+
ciEnv::current()->record_failure("CodeCache is full");
14741+
return;
14742+
}
1473414743
%}
1473514744

1473614745
ins_pipe(pipe_class_memory);
@@ -16008,8 +16017,8 @@ instruct CallStaticJavaDirect(method meth)
1600816017

1600916018
format %{ "call,static $meth \t// ==> " %}
1601016019

16011-
ins_encode( aarch64_enc_java_static_call(meth),
16012-
aarch64_enc_call_epilog );
16020+
ins_encode(aarch64_enc_java_static_call(meth),
16021+
aarch64_enc_call_epilog);
1601316022

1601416023
ins_pipe(pipe_class_call);
1601516024
%}
@@ -16027,8 +16036,8 @@ instruct CallDynamicJavaDirect(method meth)
1602716036

1602816037
format %{ "CALL,dynamic $meth \t// ==> " %}
1602916038

16030-
ins_encode( aarch64_enc_java_dynamic_call(meth),
16031-
aarch64_enc_call_epilog );
16039+
ins_encode(aarch64_enc_java_dynamic_call(meth),
16040+
aarch64_enc_call_epilog);
1603216041

1603316042
ins_pipe(pipe_class_call);
1603416043
%}
@@ -16494,10 +16503,14 @@ instruct array_equalsB(iRegP_R1 ary1, iRegP_R2 ary2, iRegI_R0 result,
1649416503

1649516504
format %{ "Array Equals $ary1,ary2 -> $result // KILL $tmp" %}
1649616505
ins_encode %{
16497-
__ arrays_equals($ary1$$Register, $ary2$$Register,
16498-
$tmp1$$Register, $tmp2$$Register, $tmp3$$Register,
16499-
$result$$Register, $tmp$$Register, 1);
16500-
%}
16506+
address tpc = __ arrays_equals($ary1$$Register, $ary2$$Register,
16507+
$tmp1$$Register, $tmp2$$Register, $tmp3$$Register,
16508+
$result$$Register, $tmp$$Register, 1);
16509+
if (tpc == NULL) {
16510+
ciEnv::current()->record_failure("CodeCache is full");
16511+
return;
16512+
}
16513+
%}
1650116514
ins_pipe(pipe_class_memory);
1650216515
%}
1650316516

@@ -16511,9 +16524,13 @@ instruct array_equalsC(iRegP_R1 ary1, iRegP_R2 ary2, iRegI_R0 result,
1651116524

1651216525
format %{ "Array Equals $ary1,ary2 -> $result // KILL $tmp" %}
1651316526
ins_encode %{
16514-
__ arrays_equals($ary1$$Register, $ary2$$Register,
16515-
$tmp1$$Register, $tmp2$$Register, $tmp3$$Register,
16516-
$result$$Register, $tmp$$Register, 2);
16527+
address tpc = __ arrays_equals($ary1$$Register, $ary2$$Register,
16528+
$tmp1$$Register, $tmp2$$Register, $tmp3$$Register,
16529+
$result$$Register, $tmp$$Register, 2);
16530+
if (tpc == NULL) {
16531+
ciEnv::current()->record_failure("CodeCache is full");
16532+
return;
16533+
}
1651716534
%}
1651816535
ins_pipe(pipe_class_memory);
1651916536
%}
@@ -16524,7 +16541,11 @@ instruct has_negatives(iRegP_R1 ary1, iRegI_R2 len, iRegI_R0 result, rFlagsReg c
1652416541
effect(USE_KILL ary1, USE_KILL len, KILL cr);
1652516542
format %{ "has negatives byte[] $ary1,$len -> $result" %}
1652616543
ins_encode %{
16527-
__ has_negatives($ary1$$Register, $len$$Register, $result$$Register);
16544+
address tpc = __ has_negatives($ary1$$Register, $len$$Register, $result$$Register);
16545+
if (tpc == NULL) {
16546+
ciEnv::current()->record_failure("CodeCache is full");
16547+
return;
16548+
}
1652816549
%}
1652916550
ins_pipe( pipe_slow );
1653016551
%}
@@ -16557,8 +16578,13 @@ instruct string_inflate(Universe dummy, iRegP_R0 src, iRegP_R1 dst, iRegI_R2 len
1655716578

1655816579
format %{ "String Inflate $src,$dst // KILL $tmp1, $tmp2" %}
1655916580
ins_encode %{
16560-
__ byte_array_inflate($src$$Register, $dst$$Register, $len$$Register,
16561-
$tmp1$$FloatRegister, $tmp2$$FloatRegister, $tmp3$$FloatRegister, $tmp4$$Register);
16581+
address tpc = __ byte_array_inflate($src$$Register, $dst$$Register, $len$$Register,
16582+
$tmp1$$FloatRegister, $tmp2$$FloatRegister,
16583+
$tmp3$$FloatRegister, $tmp4$$Register);
16584+
if (tpc == NULL) {
16585+
ciEnv::current()->record_failure("CodeCache is full");
16586+
return;
16587+
}
1656216588
%}
1656316589
ins_pipe(pipe_class_memory);
1656416590
%}

0 commit comments

Comments
 (0)