Skip to content

Commit 00a142e

Browse files
Merge branch 'master' into 8311530-depr-jsobject
2 parents 24d3ed7 + 3cf3f30 commit 00a142e

File tree

259 files changed

+4456
-5796
lines changed

Some content is hidden

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

259 files changed

+4456
-5796
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -363,26 +363,23 @@ jobs:
363363
- test-windows-x64
364364

365365
steps:
366-
# Hack to get hold of the api environment variables that are only defined for actions
367-
- name: 'Get API configuration'
368-
id: api
369-
uses: actions/github-script@v7
370-
with:
371-
script: 'return { url: process.env["ACTIONS_RUNTIME_URL"], token: process.env["ACTIONS_RUNTIME_TOKEN"] }'
372-
373366
- name: 'Remove bundle artifacts'
374367
run: |
375368
# Find and remove all bundle artifacts
376-
ALL_ARTIFACT_URLS="$(curl -s \
377-
-H 'Accept: application/json;api-version=6.0-preview' \
378-
-H 'Authorization: Bearer ${{ fromJson(steps.api.outputs.result).token }}' \
379-
'${{ fromJson(steps.api.outputs.result).url }}_apis/pipelines/workflows/${{ github.run_id }}/artifacts?api-version=6.0-preview')"
380-
BUNDLE_ARTIFACT_URLS="$(echo "$ALL_ARTIFACT_URLS" | jq -r -c '.value | map(select(.name|startswith("bundles-"))) | .[].url')"
381-
for url in $BUNDLE_ARTIFACT_URLS; do
382-
echo "Removing $url"
383-
curl -s \
384-
-H 'Accept: application/json;api-version=6.0-preview' \
385-
-H 'Authorization: Bearer ${{ fromJson(steps.api.outputs.result).token }}' \
386-
-X DELETE "$url" \
369+
# See: https://docs.github.com/en/rest/actions/artifacts?apiVersion=2022-11-28
370+
ALL_ARTIFACT_IDS="$(curl -sL \
371+
-H 'Accept: application/vnd.github+json' \
372+
-H 'Authorization: Bearer ${{ github.token }}' \
373+
-H 'X-GitHub-Api-Version: 2022-11-28' \
374+
'${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts')"
375+
BUNDLE_ARTIFACT_IDS="$(echo "$ALL_ARTIFACT_IDS" | jq -r -c '.artifacts | map(select(.name|startswith("bundles-"))) | .[].id')"
376+
for id in $BUNDLE_ARTIFACT_IDS; do
377+
echo "Removing $id"
378+
curl -sL \
379+
-X DELETE \
380+
-H 'Accept: application/vnd.github+json' \
381+
-H 'Authorization: Bearer ${{ github.token }}' \
382+
-H 'X-GitHub-Api-Version: 2022-11-28' \
383+
"${{ github.api_url }}/repos/${{ github.repository }}/actions/artifacts/$id" \
387384
|| echo "Failed to remove bundle"
388385
done

make/RunTests.gmk

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2016, 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
@@ -748,8 +748,6 @@ define SetupRunJtregTestBody
748748
# we may end up with a lot of JVM's
749749
$1_JTREG_MAX_RAM_PERCENTAGE := $$(shell $(AWK) 'BEGIN { print 25 / $$($1_JTREG_JOBS); }')
750750

751-
JTREG_TIMEOUT_FACTOR ?= 4
752-
753751
JTREG_VERBOSE ?= fail,error,summary
754752
JTREG_RETAIN ?= fail,error
755753
JTREG_TEST_THREAD_FACTORY ?=
@@ -837,6 +835,24 @@ define SetupRunJtregTestBody
837835
$1_JTREG_BASIC_OPTIONS += $$(addprefix $$(JTREG_PROBLEM_LIST_PREFIX), $$($1_JTREG_PROBLEM_LIST))
838836
endif
839837

838+
JTREG_ALL_OPTIONS := $$(JTREG_JAVA_OPTIONS) $$(JTREG_VM_OPTIONS)
839+
840+
JTREG_AUTO_PROBLEM_LISTS :=
841+
JTREG_AUTO_TIMEOUT_FACTOR := 4
842+
843+
ifneq ($$(findstring -Xcomp, $$(JTREG_ALL_OPTIONS)), )
844+
JTREG_AUTO_PROBLEM_LISTS += ProblemList-Xcomp.txt
845+
JTREG_AUTO_TIMEOUT_FACTOR := 10
846+
endif
847+
848+
ifneq ($$(findstring -XX:+UseZGC, $$(JTREG_ALL_OPTIONS)), )
849+
ifneq ($$(findstring -XX:-ZGenerational, $$(JTREG_ALL_OPTIONS)), )
850+
JTREG_AUTO_PROBLEM_LISTS += ProblemList-zgc.txt
851+
else
852+
JTREG_AUTO_PROBLEM_LISTS += ProblemList-generational-zgc.txt
853+
endif
854+
endif
855+
840856
ifneq ($$(JTREG_EXTRA_PROBLEM_LISTS), )
841857
# Accept both absolute paths as well as relative to the current test root.
842858
$1_JTREG_BASIC_OPTIONS += $$(addprefix $$(JTREG_PROBLEM_LIST_PREFIX), $$(wildcard \
@@ -868,6 +884,18 @@ define SetupRunJtregTestBody
868884

869885
$$(eval $$(call SetupRunJtregTestCustom, $1))
870886

887+
# SetupRunJtregTestCustom might also adjust JTREG_AUTO_ variables
888+
# so set the final results after setting values from custom setup
889+
ifneq ($$(JTREG_AUTO_PROBLEM_LISTS), )
890+
# Accept both absolute paths as well as relative to the current test root.
891+
$1_JTREG_BASIC_OPTIONS += $$(addprefix $$(JTREG_PROBLEM_LIST_PREFIX), $$(wildcard \
892+
$$(JTREG_AUTO_PROBLEM_LISTS) \
893+
$$(addprefix $$($1_TEST_ROOT)/, $$(JTREG_AUTO_PROBLEM_LISTS)) \
894+
))
895+
endif
896+
897+
JTREG_TIMEOUT_FACTOR ?= $$(JTREG_AUTO_TIMEOUT_FACTOR)
898+
871899
clean-outputdirs-$1:
872900
$$(RM) -r $$($1_TEST_SUPPORT_DIR)
873901
$$(RM) -r $$($1_TEST_RESULTS_DIR)

make/autoconf/configure.ac

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,11 @@ AC_OUTPUT
313313

314314
# After AC_OUTPUT, we need to do final work
315315
CUSTOM_CONFIG_OUTPUT_GENERATED_HOOK
316-
BASIC_POST_CONFIG_OUTPUT
317316

318317
# Finally output some useful information to the user
319318
HELP_PRINT_SUMMARY_AND_WARNINGS
320319
CUSTOM_SUMMARY_AND_WARNINGS_HOOK
321320
HELP_REPEAT_WARNINGS
321+
322+
# All output is done. Do the post-config output management.
323+
BASIC_POST_CONFIG_OUTPUT

make/common/native/Link.gmk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ define CreateStaticLibrary
109109
$(if $$($1_LINK_OBJS_RELATIVE), $$(CD) $$(OUTPUTDIR) ; ) \
110110
$$($1_LD) $(LDFLAGS_CXX_PARTIAL_LINKING) $$($1_SYSROOT_LDFLAGS) \
111111
-o $$($1_TARGET_RELOCATABLE) $$($1_LD_OBJ_ARG))
112+
# 'ld -r' might invalidate the .llvm_addrsig section, and this will cause subsequent
113+
# calls to lld (with '-Wl,--icf=safe') to fail when linking with this library, so
114+
# remove that section.
115+
$$(call ExecuteWithLog, $$($1_OBJECT_DIR)/$$($1_SAFE_NAME)_objcopy_remove_llvm_addrsig_section, \
116+
$$($1_OBJCOPY) --remove-section=.llvm_addrsig $$($1_TARGET_RELOCATABLE))
112117
endif
113118
$$(call ExecuteWithLog, $$($1_OBJECT_DIR)/$$($1_SAFE_NAME)_run_ar, \
114119
$(if $$($1_LINK_OBJS_RELATIVE), $$(CD) $$(OUTPUTDIR) ; ) \

make/conf/github-actions.conf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ GTEST_VERSION=1.14.0
2929
JTREG_VERSION=7.4+1
3030

3131
LINUX_X64_BOOT_JDK_EXT=tar.gz
32-
LINUX_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk22/830ec9fcccef480bb3e73fb7ecafe059/36/GPL/openjdk-22_linux-x64_bin.tar.gz
33-
LINUX_X64_BOOT_JDK_SHA256=4d65cc6ed28711768fd72c2043a7925f7c83f5f51bb64970bd9d52f7791fc6ac
34-
35-
MACOS_X64_BOOT_JDK_EXT=tar.gz
36-
MACOS_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk22/830ec9fcccef480bb3e73fb7ecafe059/36/GPL/openjdk-22_macos-x64_bin.tar.gz
37-
MACOS_X64_BOOT_JDK_SHA256=ae31fe10916429e3fe284266095067a5ce9fecbdc03ff1a079d20459f731ca36
32+
LINUX_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk22.0.2/c9ecb94cd31b495da20a27d4581645e8/9/GPL/openjdk-22.0.2_linux-x64_bin.tar.gz
33+
LINUX_X64_BOOT_JDK_SHA256=41536f115668308ecf4eba92aaf6acaeb0936225828b741efd83b6173ba82963
3834

3935
MACOS_AARCH64_BOOT_JDK_EXT=tar.gz
40-
MACOS_AARCH64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk22/830ec9fcccef480bb3e73fb7ecafe059/36/GPL/openjdk-22_macos-aarch64_bin.tar.gz
41-
MACOS_AARCH64_BOOT_JDK_SHA256=d10f82429d01047968c52c7975c326388cb5d212791e14c1de21c987463a4b53
36+
MACOS_AARCH64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk22.0.2/c9ecb94cd31b495da20a27d4581645e8/9/GPL/openjdk-22.0.2_macos-aarch64_bin.tar.gz
37+
MACOS_AARCH64_BOOT_JDK_SHA256=3dab98730234e1a87aec14bcb8171d2cae101e96ff4eed1dab96abbb08e843fd
38+
39+
MACOS_X64_BOOT_JDK_EXT=tar.gz
40+
MACOS_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk22.0.2/c9ecb94cd31b495da20a27d4581645e8/9/GPL/openjdk-22.0.2_macos-x64_bin.tar.gz
41+
MACOS_X64_BOOT_JDK_SHA256=e8b3ec7a7077711223d31156e771f11723cd7af31c2017f1bd2eda20855940fb
4242

4343
WINDOWS_X64_BOOT_JDK_EXT=zip
44-
WINDOWS_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk22/830ec9fcccef480bb3e73fb7ecafe059/36/GPL/openjdk-22_windows-x64_bin.zip
45-
WINDOWS_X64_BOOT_JDK_SHA256=8f5138fecb53c08c20abd4fa6812f9400051f3852582a2142ffda0dff73a5824
44+
WINDOWS_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk22.0.2/c9ecb94cd31b495da20a27d4581645e8/9/GPL/openjdk-22.0.2_windows-x64_bin.zip
45+
WINDOWS_X64_BOOT_JDK_SHA256=f2a9b9ab944e71a64637fcdc6b13a1188cf02d4eb9ecf71dc927e98b3e45f5dc

make/modules/java.desktop/lib/AwtLibraries.gmk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ ifeq ($(call isTargetOs, windows macosx)+$(ENABLE_HEADLESS_ONLY), false+false)
237237
DISABLED_WARNINGS_gcc := int-to-pointer-cast, \
238238
DISABLED_WARNINGS_gcc_awt_Taskbar.c := parentheses, \
239239
DISABLED_WARNINGS_gcc_GLXSurfaceData.c := unused-function, \
240-
DISABLED_WARNINGS_gcc_gtk2_interface.c := parentheses type-limits, \
241240
DISABLED_WARNINGS_gcc_gtk3_interface.c := parentheses type-limits \
242241
unused-function, \
243242
DISABLED_WARNINGS_gcc_OGLBufImgOps.c := format-nonliteral, \
@@ -252,7 +251,6 @@ ifeq ($(call isTargetOs, windows macosx)+$(ENABLE_HEADLESS_ONLY), false+false)
252251
DISABLED_WARNINGS_gcc_XToolkit.c := unused-result, \
253252
DISABLED_WARNINGS_gcc_XWindow.c := unused-function, \
254253
DISABLED_WARNINGS_clang_awt_Taskbar.c := parentheses, \
255-
DISABLED_WARNINGS_clang_gtk2_interface.c := parentheses, \
256254
DISABLED_WARNINGS_clang_gtk3_interface.c := parentheses, \
257255
DISABLED_WARNINGS_clang_OGLBufImgOps.c := format-nonliteral, \
258256
DISABLED_WARNINGS_clang_OGLPaints.c := format-nonliteral, \
@@ -262,8 +260,6 @@ ifeq ($(call isTargetOs, windows macosx)+$(ENABLE_HEADLESS_ONLY), false+false)
262260
DISABLED_WARNINGS_clang_aix_awt_Taskbar.c := parentheses, \
263261
DISABLED_WARNINGS_clang_aix_OGLPaints.c := format-nonliteral, \
264262
DISABLED_WARNINGS_clang_aix_OGLBufImgOps.c := format-nonliteral, \
265-
DISABLED_WARNINGS_clang_aix_gtk2_interface.c := parentheses \
266-
logical-op-parentheses, \
267263
DISABLED_WARNINGS_clang_aix_gtk3_interface.c := parentheses \
268264
logical-op-parentheses, \
269265
DISABLED_WARNINGS_clang_aix_sun_awt_X11_GtkFileDialogPeer.c := \

src/hotspot/cpu/aarch64/c1_LIRAssembler_aarch64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ void LIR_Assembler::const2mem(LIR_Opr src, LIR_Opr dest, BasicType type, CodeEmi
647647
break;
648648
case T_OBJECT:
649649
case T_ARRAY:
650-
assert(c->as_jobject() == 0, "should be");
650+
assert(c->as_jobject() == nullptr, "should be");
651651
if (UseCompressedOops && !wide) {
652652
insn = &Assembler::strw;
653653
} else {

src/hotspot/cpu/aarch64/c1_Runtime1_aarch64.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1999, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1999, 2024, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2014, 2021, Red Hat Inc. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -1029,4 +1029,4 @@ OopMapSet* Runtime1::generate_code_for(StubID id, StubAssembler* sasm) {
10291029

10301030
#undef __
10311031

1032-
const char *Runtime1::pd_name_for_address(address entry) { Unimplemented(); return 0; }
1032+
const char *Runtime1::pd_name_for_address(address entry) { Unimplemented(); }

src/hotspot/cpu/aarch64/frame_aarch64.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ void frame::patch_pc(Thread* thread, address pc) {
293293

294294
// Either the return address is the original one or we are going to
295295
// patch in the same address that's already there.
296-
assert(_pc == pc_old || pc == pc_old || pc_old == 0, "");
296+
assert(_pc == pc_old || pc == pc_old || pc_old == nullptr, "");
297297
DEBUG_ONLY(address old_pc = _pc;)
298298
*pc_addr = signed_pc;
299299
_pc = pc; // must be set before call to get_deopt_original_pc
@@ -497,10 +497,10 @@ frame frame::sender_for_interpreter_frame(RegisterMap* map) const {
497497
bool frame::is_interpreted_frame_valid(JavaThread* thread) const {
498498
assert(is_interpreted_frame(), "Not an interpreted frame");
499499
// These are reasonable sanity checks
500-
if (fp() == 0 || (intptr_t(fp()) & (wordSize-1)) != 0) {
500+
if (fp() == nullptr || (intptr_t(fp()) & (wordSize-1)) != 0) {
501501
return false;
502502
}
503-
if (sp() == 0 || (intptr_t(sp()) & (wordSize-1)) != 0) {
503+
if (sp() == nullptr || (intptr_t(sp()) & (wordSize-1)) != 0) {
504504
return false;
505505
}
506506
if (fp() + interpreter_frame_initial_sp_offset < sp()) {

src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class RelocActions {
215215
break;
216216
} else {
217217
// nothing to do
218-
assert(target == 0, "did not expect to relocate target for polling page load");
218+
assert(target == nullptr, "did not expect to relocate target for polling page load");
219219
}
220220
break;
221221
}
@@ -736,7 +736,7 @@ void MacroAssembler::reserved_stack_check() {
736736
br(Assembler::LO, no_reserved_zone_enabling);
737737

738738
enter(); // LR and FP are live.
739-
lea(rscratch1, CAST_FROM_FN_PTR(address, SharedRuntime::enable_stack_reserved_zone));
739+
lea(rscratch1, RuntimeAddress(CAST_FROM_FN_PTR(address, SharedRuntime::enable_stack_reserved_zone)));
740740
mov(c_rarg0, rthread);
741741
blr(rscratch1);
742742
leave();
@@ -1879,7 +1879,7 @@ void MacroAssembler::_verify_oop(Register reg, const char* s, const char* file,
18791879
movptr(rscratch1, (uintptr_t)(address)b);
18801880

18811881
// call indirectly to solve generation ordering problem
1882-
lea(rscratch2, ExternalAddress(StubRoutines::verify_oop_subroutine_entry_address()));
1882+
lea(rscratch2, RuntimeAddress(StubRoutines::verify_oop_subroutine_entry_address()));
18831883
ldr(rscratch2, Address(rscratch2));
18841884
blr(rscratch2);
18851885

@@ -1918,7 +1918,7 @@ void MacroAssembler::_verify_oop_addr(Address addr, const char* s, const char* f
19181918
movptr(rscratch1, (uintptr_t)(address)b);
19191919

19201920
// call indirectly to solve generation ordering problem
1921-
lea(rscratch2, ExternalAddress(StubRoutines::verify_oop_subroutine_entry_address()));
1921+
lea(rscratch2, RuntimeAddress(StubRoutines::verify_oop_subroutine_entry_address()));
19221922
ldr(rscratch2, Address(rscratch2));
19231923
blr(rscratch2);
19241924

@@ -6454,7 +6454,7 @@ void MacroAssembler::verify_cross_modify_fence_not_required() {
64546454
Label fence_not_required;
64556455
cbz(rscratch1, fence_not_required);
64566456
// If it does then fail.
6457-
lea(rscratch1, CAST_FROM_FN_PTR(address, JavaThread::verify_cross_modify_fence_failure));
6457+
lea(rscratch1, RuntimeAddress(CAST_FROM_FN_PTR(address, JavaThread::verify_cross_modify_fence_failure)));
64586458
mov(c_rarg0, rthread);
64596459
blr(rscratch1);
64606460
bind(fence_not_required);

src/hotspot/cpu/aarch64/nativeInst_aarch64.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ address NativeJump::jump_destination() const {
228228
// load
229229

230230
// return -1 if jump to self or to 0
231-
if ((dest == (address)this) || dest == 0) {
231+
if ((dest == (address)this) || dest == nullptr) {
232232
dest = (address) -1;
233233
}
234234
return dest;
@@ -256,7 +256,7 @@ address NativeGeneralJump::jump_destination() const {
256256
// a general jump
257257

258258
// return -1 if jump to self or to 0
259-
if ((dest == (address)this) || dest == 0) {
259+
if ((dest == (address)this) || dest == nullptr) {
260260
dest = (address) -1;
261261
}
262262
return dest;

0 commit comments

Comments
 (0)