Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge jdk-25+6 into rivos/main #210

Open
wants to merge 138 commits into
base: rivos/main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
ea49537
8310340: assert(_thread->is_interp_only_mode() || stub_caller) failed…
pchilano Jan 8, 2025
0a5ef82
8347162: Update problemlist CR for vmTestbase/nsk/jdi/VMOutOfMemoryEx…
plummercj Jan 8, 2025
db7fa6a
8347289: HKDF delayed provider selection failed with non-extractable PRK
wangweij Jan 9, 2025
1ade96b
8347042: Remove an extra parenthesis in macro definition in `jfrTrace…
MaxXSoft Jan 9, 2025
b3e8736
8347296: WinInstallerUiTest fails in local test runs if the path to t…
Jan 9, 2025
0a35ebf
8347297: Skip the RuntimeImageSymbolicLinksTest test on Windows when …
Jan 9, 2025
97dd06c
8347299: Add annotations to test cases in LicenseTest
Jan 9, 2025
a46ae70
8339728: [Accessibility,Windows,JAWS] Bug in the getKeyChar method of…
Jan 9, 2025
8eddf67
8346887: DrawFocusRect() may cause an assertion failure
dmarkov20 Jan 9, 2025
33f9be8
8347083: Incomplete logging in nsk/jvmti/ResourceExhausted/resexhaust…
Jan 9, 2025
82e16ba
8347268: [ubsan] logOutput.cpp:357:21: runtime error: applying non-ze…
MBaesken Jan 9, 2025
dff5719
8347126: gc/stress/TestStressG1Uncommit.java gets OOM-killed
shipilev Jan 9, 2025
d66737e
8341097: GHA: Demote Mac x86 jobs to build only
shipilev Jan 9, 2025
765b9e6
8346706: RISC-V: Add available registers to hs_err
robehn Jan 9, 2025
8c87ea2
8346478: RISC-V: Refactor add/sub assembler routines
RealFYang Jan 9, 2025
ceae2b9
8347121: Add missing @serial tags to module java.base
hns Jan 9, 2025
2801bc6
8346460: NotifyFramePop should return JVMTI_ERROR_DUPLICATE
Jan 9, 2025
3024a73
8345782: Refining the cases that libjsig deprecation warning is issued
jaokim Jan 9, 2025
9c72ded
8346036: Unnecessary Hashtable usage in javax.swing.text.html.parser.…
Jan 9, 2025
f9b1133
8346880: [aix] java/lang/ProcessHandle/InfoTest.java still fails: "re…
Jan 9, 2025
cb9a98b
8347141: Several javac tests compile with an unnecessary -Xlint:-path…
archiecobbs Jan 9, 2025
72f1114
8346705: SNI not sent with Java 22+ using java.net.http.HttpClient.Bu…
jaikiran Jan 9, 2025
1ef77cd
8347171: (dc) java/nio/channels/DatagramChannel/InterruptibleOrNot.ja…
Jan 9, 2025
3bfa952
8283795: Add TLSv1.3 and CNSA 1.0 algorithms to implementation requir…
seanjmullan Jan 9, 2025
22f70a7
8321413: IllegalArgumentException: Code length outside the allowed ra…
slowhog Jan 9, 2025
9f3c5f9
8344907: NullPointerException in Win32ShellFolder2.getSystemIcon when…
Jan 9, 2025
df28cec
8345144: Robot does not specify all causes of IllegalThreadStateExce…
Jan 9, 2025
b335ea9
8347122: Add missing @serial tags to module java.desktop
hns Jan 9, 2025
665c39c
8347375: Extra <p> tag in robot specification
Jan 9, 2025
931914a
8340631: assert(reserved_rgn->contain_region(base_addr, size)) failed…
Jan 9, 2025
89ee1a5
8343978: Update the default value of CodeEntryAlignment for Ampere-1A…
limingliv Jan 9, 2025
a9351df
8346787: Fix two C2 IR matching tests for RISC-V
RealFYang Jan 10, 2025
0210a63
8347379: Problem list failed tests after JDK-8321413
slowhog Jan 10, 2025
f6492aa
8347279: Problemlist TestEvilSyncBug.java#generational
Jan 10, 2025
8b07617
8347345: Remove redundant test policy file from ModelMBeanInfoSupport…
kevinjwalls Jan 10, 2025
1a0fe49
8347256: Epsilon: Demote heap size and AlwaysPreTouch warnings to inf…
shipilev Jan 10, 2025
55c6904
8331717: C2: Crash with SIGFPE Because Loop Predication Wrongly Hoist…
Jan 10, 2025
5e92a4c
8347267: [macOS]: UnixOperatingSystem.c:67:40: runtime error: divisio…
MBaesken Jan 10, 2025
1f45797
8347124: Clean tests with --enable-linkable-runtime
jerboaa Jan 10, 2025
57af52c
8346581: JRadioButton/ButtonGroupFocusTest.java fails in CI on Linux
aivanov-jdk Jan 10, 2025
12752b0
8347346: Remove redundant ClassForName.java and test.policy from runt…
kevinjwalls Jan 10, 2025
ec7393e
8347287: JFR: Remove use of Security Manager
egahlin Jan 10, 2025
c5c4efd
8347120: Launchers should not have java headers on include path
erikj79 Jan 10, 2025
beb0e60
8347397: Cleanup of JDK-8169880
Jan 10, 2025
1bf2f5c
8343510: JFR: Remove AccessControlContext from FlightRecorder::addLis…
egahlin Jan 10, 2025
9cf7d42
8346184: C2: assert(has_node(i)) failed during split thru phi
rwestrel Jan 10, 2025
e7e8f60
8347302: Mark test tools/jimage/JImageToolTest.java as flagless
lmesnik Jan 10, 2025
46ba515
8346669: Increase abstraction in SetupBuildLauncher and remove extra …
magicus Jan 10, 2025
4b554b5
8346722: (fs) Files.probeContentType throws ClassCastException with c…
Jan 10, 2025
d69463e
8347300: Don't exclude the "PATH" var from the environment when runni…
Jan 10, 2025
01c8ba2
8347298: Bug in JPackageCommand.ignoreFakeRuntime()
Jan 10, 2025
10f7142
8347295: Fix WinResourceTest to make it work with WiX v4.0+
Jan 10, 2025
6f1f2f2
8347063: Add comments in ClassFileFormatVersion for class file format…
liach Jan 10, 2025
761774a
8346143: add ClearAllFramePops function to speedup debugger single st…
Jan 10, 2025
3145278
8346727: JvmtiVTMSTransitionDisabler deadlock
Jan 11, 2025
f04a642
8346717: serviceability/dcmd/vm/SystemDumpMapTest.java failing on Win…
Jan 12, 2025
9fafd63
8346828: javax/swing/JScrollBar/4865918/bug4865918.java still fails i…
prsadhuk Jan 13, 2025
1f7925c
8347270: Remove unix_getParentPidAndTimings, unix_getChildren and uni…
MBaesken Jan 13, 2025
b37f123
8347407: [BACKOUT] C1/C2 don't handle allocation failure properly dur…
Jan 13, 2025
ed0b555
8344035: Replace predicate walking code in Loop Unswitching with a pr…
chhagedorn Jan 13, 2025
3b9732e
8345471: Clean up compiler/intrinsics/sha/cli tests
djelinski Jan 13, 2025
85ed78c
8345185: Update jpackage to not include service bindings by default
jerboaa Jan 13, 2025
82e2a79
8347006: LoadRangeNode floats above array guard in arraycopy intrinsic
TobiHartmann Jan 13, 2025
450636a
8347274: Gatherers.mapConcurrent exhibits undesired behavior under va…
Jan 13, 2025
0612636
8347373: HTTP/2 flow control checks may count unprocessed data twice
dfuch Jan 13, 2025
c885e59
8346377: Properly support static builds for Windows
magicus Jan 13, 2025
6e43f48
8346929: runtime/ClassUnload/DictionaryDependsTest.java fails with "T…
coleenp Jan 13, 2025
cc19897
8293123: Fix various include file ordering
coleenp Jan 13, 2025
fa5ff82
8342062: Reformat keytool and jarsigner output for keys with a named …
wangweij Jan 13, 2025
cede304
8347482: Remove unused field in ParkEvent
zhengyu123 Jan 13, 2025
a289bcf
8306579: Consider building with /Zc:throwingNew
TheShermanTanker Jan 13, 2025
062f2dc
8347554: [BACKOUT] C2: implement optimization for series of Add of un…
chhagedorn Jan 13, 2025
f67b703
8347427: JTabbedPane/8134116/Bug8134116.java has no license header
aivanov-jdk Jan 13, 2025
a7915bb
8346468: SM cleanup of common test library
Jan 13, 2025
b0c131e
8345368: java/io/File/createTempFile/SpecialTempFile.java fails on Wi…
Jan 13, 2025
e0f2f4b
8313396: Portable implementation of FORBID_C_FUNCTION and ALLOW_C_FUN…
Jan 13, 2025
4e0ffda
8346972: Test java/nio/channels/FileChannel/LoopingTruncate.java fail…
vy Jan 13, 2025
7c883c2
8347605: Use spec tag to refer to IEEE 754 standard
jddarcy Jan 13, 2025
13e1ea5
8346038: [REDO] - [C1] LIR Operations with one input should be implem…
TheRealMDoerr Jan 13, 2025
61dc07c
8346869: [AIX] Add regression test for handling 4 Byte aligned double…
TheRealMDoerr Jan 13, 2025
13a1775
8344146: Remove temporary font file tracking code.
prrace Jan 13, 2025
d3a7ac2
8346383: Cannot use DllMain in libdt_socket for static builds
magicus Jan 13, 2025
379d05b
8346990: Remove INTX_FORMAT and UINTX_FORMAT macros
coleenp Jan 13, 2025
91b63ca
8345016: [ASAN] java.c reported ‘%s’ directive argument is null [-Wer…
Jan 14, 2025
0ae5c6b
8342996: Enhance Attach API to support arbitrary length arguments - OSX
Jan 14, 2025
c1d322f
8347627: Compiler replay tests are failing after JDK-8346990
Jan 14, 2025
6eb83ef
8347500: hsdis cannot be built with Capstone.next
YaSuenag Jan 14, 2025
3967696
8347496: Test jdk/jfr/jvm/TestModularImage.java fails after JDK-83471…
jerboaa Jan 14, 2025
3e989fd
8346986: Remove ASM from java.base
asotona Jan 14, 2025
bb93f67
8347646: module-info classfile missing the preview flag
lahodaj Jan 14, 2025
cbb2b84
8344130: C2: Avoid excessive hoisting in scheduler due to minuscule d…
Jan 14, 2025
fec769b
8346778: Enable native access should work with the source launcher
sormuras Jan 14, 2025
f0af830
8335747: C2: fix overflow case for LoopLimit with constant inputs
eme64 Jan 14, 2025
b4cd3b1
8347566: Replace SSIZE_FORMAT with 'z' length modifier
coleenp Jan 14, 2025
1c64a45
8347501: Make static-launcher fails after JDK-8346669
magicus Jan 14, 2025
56c7800
8347381: Upgrade jQuery UI to version 1.14.1
hns Jan 14, 2025
a49f833
8346045: Cleanup of security library tests calling Security Manager APIs
seanjmullan Jan 14, 2025
dfd215b
8347376: tools/jlink/runtimeImage/JavaSEReproducibleTest.java and Pac…
slowhog Jan 14, 2025
d532019
8347143: [aix] Fix strdup use in os::dll_load
Jan 14, 2025
d002933
8347286: (fs) Remove some extensions from java/nio/file/Files/probeCo…
Jan 14, 2025
a01e92c
8347724: Replace SIZE_FORMAT in jfr directory
coleenp Jan 14, 2025
e6902cf
8323740: java.lang.ExceptionInInitializerError when trying to load XM…
cushon Jan 14, 2025
db76f47
8347720: [BACKOUT] Portable implementation of FORBID_C_FUNCTION and A…
Jan 14, 2025
06ff4c1
8347146: Convert IncludeLocalesPluginTest to use JUnit
naotoj Jan 14, 2025
4c30933
8346971: [ubsan] psCardTable.cpp:131:24: runtime error: large index i…
Jan 14, 2025
2de71d0
8347129: cpuset cgroups controller is required for no good reason
jerboaa Jan 14, 2025
9b1bed0
8290043: serviceability/attach/ConcAttachTest.java failed "guarantee(…
Jan 14, 2025
10d08db
8346142: [perf] scalability issue for the specjvm2008::xml.validation…
Jan 14, 2025
02d2493
8347613: Remove leftover doPrivileged call in Currency test: CheckDat…
Jan 14, 2025
ec2aaaa
8326236: assert(ce != nullptr) failed in Continuation::continuation_b…
pchilano Jan 14, 2025
0ee6ba9
8347596: Update HSS/LMS public key encoding
wangweij Jan 14, 2025
d6d45c6
8303884: jlink --add-options plugin does not allow GNU style options …
slowhog Jan 14, 2025
36b7abd
8225763: Inflater and Deflater should implement AutoCloseable
jaikiran Jan 15, 2025
35be4a4
8347173: java/net/DatagramSocket/InterruptibleDatagramSocket.java fai…
jaikiran Jan 15, 2025
9782bfd
8347620: Shenandoah: Use 'free' tag for free set related logging
Jan 15, 2025
973c630
8342466: Improve API documentation for java.lang.classfile.attribute
liach Jan 15, 2025
be1cdd9
8344140: Refactor the discovery of AOT cache artifacts
iklam Jan 15, 2025
28e01e6
8347762: ClassFile attribute specification refers to non-SE modules
liach Jan 15, 2025
a3be97e
8347761: Test tools/jimage/JImageExtractTest.java fails after JDK-830…
slowhog Jan 15, 2025
afc4529
8346834: Tests failing with -XX:+UseNUMA due to "NUMA support disable…
swati-sha Jan 15, 2025
4f3dc9d
8347352: RISC-V: Cleanup bitwise AND assembler routines
RealFYang Jan 15, 2025
91197b3
8347531: The signal tests are failing after JDK-8345782 due to an unr…
jaokim Jan 15, 2025
af3f5d8
8347039: ThreadPerTaskExecutor terminates if cancelled tasks still ru…
Jan 15, 2025
c36200b
8347721: Replace SIZE_FORMAT in compiler directories
coleenp Jan 15, 2025
d4e5ec2
8346610: Make all imports consistent in the FFM API
minborg Jan 15, 2025
b0e2be6
8347729: Replace SIZE_FORMAT in parallel and serial gc
coleenp Jan 15, 2025
7df21a8
8347597: HttpClient: improve exception reporting when closing connection
dfuch Jan 15, 2025
8193ba3
8347562: javac crash due to type vars in permits clause
SirYwell Jan 15, 2025
254e840
8340416: Remove ArchiveBuilder::estimate_archive_size()
Jan 15, 2025
63cedaf
8347334: JimageDiffGenerator code clean-ups
jerboaa Jan 15, 2025
a0f7982
8345134: Test sun/security/tools/jarsigner/ConciseJarsigner.java fail…
myankelev Jan 15, 2025
4257215
8345493: JFR: JVM.flush hangs intermittently
Jan 15, 2025
a6be907
8347424: Fix and rewrite sun/security/x509/DNSName/LeadingPeriod.java…
shipilev Jan 15, 2025
983e24f
8347727: Replace SIZE_FORMAT in shared gc
coleenp Jan 15, 2025
cfe70eb
8342550: Log warning for using JDK1.1 compatible time zone IDs for fu…
naotoj Jan 15, 2025
764d70b
8344049: Shenandoah: Eliminate init-update-refs safepoint
Jan 15, 2025
bdf6e63
8347431: Update ObjectMonitor comments
coleenp Jan 15, 2025
9c430c9
8336920: ArithmeticException in javax.sound.sampled.AudioInputStream
Jan 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 0 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -325,17 +325,6 @@ jobs:
bootjdk-platform: linux-x64
runs-on: ubuntu-22.04

test-macos-x64:
name: macos-x64
needs:
- build-macos-x64
uses: ./.github/workflows/test.yml
with:
platform: macos-x64
bootjdk-platform: macos-x64
runs-on: macos-13
xcode-toolset-version: '14.3.1'

test-macos-aarch64:
name: macos-aarch64
needs:
Expand Down
3 changes: 1 addition & 2 deletions make/Coverage.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -47,7 +47,6 @@ $(JCOV_IMAGE_DIR)/release: $(JCOV_INPUT_IMAGE_DIR)/release
-t $(JCOV_TEMP)/$(JCOV_IMAGE_SUBDIR)/template.xml \
-rt $(JCOV_HOME)/lib/jcov_network_saver.jar \
-exclude 'java.lang.Object' \
-exclude 'jdk.internal.org.objectweb.**' \
-exclude jdk.test.Main -exclude '**\$Proxy*' \
$(JCOV_FILTERS) \
$(JCOV_TEMP)/$(JCOV_IMAGE_SUBDIR)
Expand Down
9 changes: 4 additions & 5 deletions make/StaticLibs.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,8 @@ else ifeq ($(call isTargetOs, windows), true)
BROKEN_STATIC_LIBS += splashscreen
# libsspi_bridge has name conflicts with sunmscapi
BROKEN_STATIC_LIBS += sspi_bridge
# These libs define DllMain which conflict with Hotspot
BROKEN_STATIC_LIBS += awt dt_shmem dt_socket
# These libs are dependent on any of the above disabled libs
BROKEN_STATIC_LIBS += fontmanager jawt lcms net nio
# dt_shmem define jdwpTransport_OnLoad which conflict with dt_socket
BROKEN_STATIC_LIBS += dt_shmem
endif

$(foreach module, $(STATIC_LIB_MODULES), \
Expand Down Expand Up @@ -107,7 +105,8 @@ else
endif

$(eval $(call SetupBuildLauncher, java, \
CFLAGS := -DEXPAND_CLASSPATH_WILDCARDS -DENABLE_ARG_FILES, \
ENABLE_ARG_FILES := true, \
EXPAND_CLASSPATH_WILDCARDS := true, \
EXTRA_RCFLAGS := $(JAVA_RCFLAGS), \
VERSION_INFO_RESOURCE := $(JAVA_VERSION_INFO_RESOURCE), \
OPTIMIZATION := HIGH, \
Expand Down
20 changes: 18 additions & 2 deletions make/autoconf/flags-cflags.m4
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,8 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
# The -utf-8 option sets source and execution character sets to UTF-8 to enable correct
# compilation of all source files regardless of the active code page on Windows.
TOOLCHAIN_CFLAGS_JVM="-nologo -MD -Zc:preprocessor -Zc:inline -permissive- -utf-8 -MP"
TOOLCHAIN_CFLAGS_JDK="-nologo -MD -Zc:preprocessor -Zc:inline -permissive- -utf-8 -Zc:wchar_t-"
TOOLCHAIN_CFLAGS_JVM="-nologo -MD -Zc:preprocessor -Zc:inline -Zc:throwingNew -permissive- -utf-8 -MP"
TOOLCHAIN_CFLAGS_JDK="-nologo -MD -Zc:preprocessor -Zc:inline -Zc:throwingNew -permissive- -utf-8 -Zc:wchar_t-"
fi
# CFLAGS C language level for JDK sources (hotspot only uses C++)
Expand Down Expand Up @@ -830,6 +830,22 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
FLAGS_SETUP_BRANCH_PROTECTION
if test "x$FLAGS_CPU" = xriscv64; then
AC_MSG_CHECKING([if RVV/vector sigcontext supported])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <linux/ptrace.h>],
[
return (int)sizeof(struct __riscv_v_ext_state);
])],
[
AC_MSG_RESULT([yes])
],
[
$1_DEFINES_CPU_JVM="${$1_DEFINES_CPU_JVM} -DNO_RVV_SIGCONTEXT"
AC_MSG_RESULT([no])
]
)
fi
# EXPORT to API
CFLAGS_JVM_COMMON="$ALWAYS_CFLAGS_JVM $ALWAYS_DEFINES_JVM \
$TOOLCHAIN_CFLAGS_JVM ${$1_TOOLCHAIN_CFLAGS_JVM} \
Expand Down
4 changes: 2 additions & 2 deletions make/autoconf/flags-ldflags.m4
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_CPU_DEP],
$2LDFLAGS_JDKEXE="$LDFLAGS_JDK_COMMON $EXECUTABLE_LDFLAGS \
${$1_CPU_EXECUTABLE_LDFLAGS} $REPRODUCIBLE_LDFLAGS $FILE_MACRO_LDFLAGS"
$2LDFLAGS_STATIC_JDK="$BASIC_LDFLAGS $BASIC_LDFLAGS_JVM_ONLY \
$OS_LDFLAGS ${$2EXTRA_LDFLAGS} $REPRODUCIBLE_LDFLAGS $FILE_MACRO_LDFLAGS"
$2LDFLAGS_STATIC_JDK="$BASIC_LDFLAGS $OS_LDFLAGS ${$2EXTRA_LDFLAGS} \
$REPRODUCIBLE_LDFLAGS $FILE_MACRO_LDFLAGS"
$2JVM_LDFLAGS="$BASIC_LDFLAGS $BASIC_LDFLAGS_JVM_ONLY $OS_LDFLAGS $OS_LDFLAGS_JVM_ONLY \
$DEBUGLEVEL_LDFLAGS $DEBUGLEVEL_LDFLAGS_JVM_ONLY \
Expand Down
5 changes: 4 additions & 1 deletion make/autoconf/lib-hsdis.m4
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2021, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2021, 2025, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -40,6 +40,9 @@ AC_DEFUN([LIB_SETUP_HSDIS_CAPSTONE],
HSDIS_CFLAGS="-I${CAPSTONE}/include/capstone"
if test "x$OPENJDK_TARGET_OS" != xwindows; then
HSDIS_LDFLAGS="-L${CAPSTONE}/lib"
if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" ; then
HSDIS_LDFLAGS="-L${CAPSTONE}/lib64 $HSDIS_LDFLAGS"
fi
HSDIS_LIBS="-lcapstone"
else
HSDIS_LDFLAGS="-nodefaultlib:libcmt.lib"
Expand Down
9 changes: 7 additions & 2 deletions make/common/JdkNativeCompilation.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -266,6 +266,9 @@ JDK_RCFLAGS=$(RCFLAGS) \
# will be replaced with proper values for hotspot.
# HEADERS_FROM_SRC -- if false, does not add source dirs automatically as
# header include dirs. (Defaults to true.)
# JAVA_HEADERS -- if false, does not add the directory with the generated
# headers from the Java compilation of the current module to the search
# path for include files. (Defaults to true.)
# JDK_LIBS -- libraries generated by the JDK build system to link against.
# These take the form <module>:<basename>. For the current module, the
# module name and colon can be omitted. The basename should be specified
Expand Down Expand Up @@ -385,7 +388,9 @@ define SetupJdkNativeCompilationBody

# Add the module specific java header dir
ifneq ($$(MODULE), )
$1_SRC_HEADER_FLAGS += $$(addprefix -I, $$(call GetJavaHeaderDir, $$(MODULE)))
ifneq ($$($1_JAVA_HEADERS), false)
$1_SRC_HEADER_FLAGS += $$(addprefix -I, $$(call GetJavaHeaderDir, $$(MODULE)))
endif
endif

$1_JDK_LIBS += $$($1_JDK_LIBS_$$(OPENJDK_TARGET_OS))
Expand Down
43 changes: 20 additions & 23 deletions make/common/modules/LauncherCommon.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -48,41 +48,44 @@ JAVA_MANIFEST := $(TOPDIR)/src/java.base/windows/native/launcher/java.manifest
# used as the name of the executable.
#
# Remaining parameters are named arguments. These include:
# MAIN_MODULE The module of the main class to launch if different from the
# current module
# MAIN_CLASS The Java main class to launch
# JAVA_ARGS Processed into a -DJAVA_ARGS and added to CFLAGS
# EXTRA_JAVA_ARGS Processed into a -DEXTRA_JAVA_ARGS and is prepended
# before JAVA_ARGS to CFLAGS, primarily to allow long string literal
# compile time defines exceeding Visual Studio 2013 limitations.
# CFLAGS Additional CFLAGS
# CFLAGS_windows Additional CFLAGS_windows
# JAVA_ARGS Additional arguments to pass to Java when launching the main class
# EXPAND_CLASSPATH_WILDCARDS Set to true to pass EXPAND_CLASSPATH_WILDCARDS
# ENABLE_ARG_FILES Set to true to pass ENABLE_ARG_FILES
# WINDOWS_JAVAW Set to true to pass JAVAW on Windows
# EXTRA_RCFLAGS Additional EXTRA_RCFLAGS
# MACOSX_PRIVILEGED On macosx, allow to access other processes
# OPTIMIZATION Override default optimization level (LOW)
# OUTPUT_DIR Override default output directory
# VERSION_INFO_RESOURCE Override default Windows resource file
# STATIC_LAUNCHER If true, will use settings for building a static launcher
# LIBS Additional libraries to pass as LIBS argument to SetupJdkExecutable
SetupBuildLauncher = $(NamedParamsMacroTemplate)
define SetupBuildLauncherBody
# Setup default values (unless overridden)
ifeq ($$($1_OPTIMIZATION), )
$1_OPTIMIZATION := LOW
endif

ifeq ($$($1_MAIN_MODULE), )
$1_MAIN_MODULE := $(MODULE)
endif
$1_MAIN_MODULE := $(MODULE)

ifneq ($$($1_MAIN_CLASS), )
$1_JAVA_ARGS += -Xms8m
$1_LAUNCHER_CLASS := -m $$($1_MAIN_MODULE)/$$($1_MAIN_CLASS)
endif

ifneq ($$($1_EXTRA_JAVA_ARGS), )
$1_EXTRA_JAVA_ARGS_STR := '{ $$(strip $$(foreach a, \
$$(addprefix -J, $$($1_EXTRA_JAVA_ARGS)), "$$a"$(COMMA) )) }'
$1_CFLAGS += -DEXTRA_JAVA_ARGS=$$($1_EXTRA_JAVA_ARGS_STR)
ifeq ($$($1_EXPAND_CLASSPATH_WILDCARDS), true)
$1_CFLAGS += -DEXPAND_CLASSPATH_WILDCARDS
endif

ifeq ($$($1_ENABLE_ARG_FILES), true)
$1_CFLAGS += -DENABLE_ARG_FILES
endif

ifeq ($(call isTargetOs, windows), true)
ifeq ($$($1_WINDOWS_JAVAW), true)
$1_CFLAGS += -DJAVAW
endif
endif

ifneq ($$($1_JAVA_ARGS), )
Expand Down Expand Up @@ -143,8 +146,8 @@ define SetupBuildLauncherBody
-DLAUNCHER_NAME='"$$(LAUNCHER_NAME)"' \
-DPROGNAME='"$1"' \
$$($1_CFLAGS), \
CFLAGS_windows := $$($1_CFLAGS_windows), \
EXTRA_HEADER_DIRS := java.base:libjvm, \
JAVA_HEADERS := false, \
DISABLED_WARNINGS_gcc := unused-function unused-variable, \
DISABLED_WARNINGS_clang := unused-function, \
LDFLAGS := $$($1_LDFLAGS), \
Expand All @@ -154,12 +157,6 @@ define SetupBuildLauncherBody
JDK_LIBS := $$($1_JDK_LIBS), \
JDK_LIBS_windows := $$($1_JDK_LIBS_windows), \
LIBS := $$($1_LIBS), \
LIBS_unix := $(LIBZ_LIBS), \
LIBS_linux := $(LIBDL) -lpthread, \
LIBS_macosx := \
-framework ApplicationServices \
-framework Cocoa \
-framework Security, \
LINK_TYPE := $$($1_LINK_TYPE), \
OUTPUT_DIR := $$($1_OUTPUT_DIR), \
OBJECT_DIR := $$($1_OBJECT_DIR), \
Expand Down
3 changes: 2 additions & 1 deletion make/conf/module-loader-map.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2025, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -103,6 +103,7 @@ NATIVE_ACCESS_MODULES= \
java.smartcardio \
jdk.accessibility \
jdk.attach \
jdk.compiler \
jdk.crypto.cryptoki \
jdk.crypto.mscapi \
jdk.hotspot.agent \
Expand Down
7 changes: 5 additions & 2 deletions make/modules/java.base/Launcher.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ JAVA_RCFLAGS ?= -I$(TOPDIR)/src/java.base/windows/native/launcher/icons
################################################################################

$(eval $(call SetupBuildLauncher, java, \
CFLAGS := -DEXPAND_CLASSPATH_WILDCARDS -DENABLE_ARG_FILES, \
ENABLE_ARG_FILES := true, \
EXPAND_CLASSPATH_WILDCARDS := true, \
EXTRA_RCFLAGS := $(JAVA_RCFLAGS), \
VERSION_INFO_RESOURCE := $(JAVA_VERSION_INFO_RESOURCE), \
OPTIMIZATION := HIGH, \
Expand All @@ -50,7 +51,9 @@ $(eval $(call SetupBuildLauncher, java, \

ifeq ($(call isTargetOs, windows), true)
$(eval $(call SetupBuildLauncher, javaw, \
CFLAGS := -DJAVAW -DEXPAND_CLASSPATH_WILDCARDS -DENABLE_ARG_FILES, \
ENABLE_ARG_FILES := true, \
EXPAND_CLASSPATH_WILDCARDS := true, \
WINDOWS_JAVAW := true, \
EXTRA_RCFLAGS := $(JAVA_RCFLAGS), \
VERSION_INFO_RESOURCE := $(JAVA_VERSION_INFO_RESOURCE), \
))
Expand Down
4 changes: 2 additions & 2 deletions make/modules/jdk.compiler/Launcher.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ include LauncherCommon.gmk
$(eval $(call SetupBuildLauncher, javac, \
MAIN_CLASS := com.sun.tools.javac.Main, \
JAVA_ARGS := --add-modules ALL-DEFAULT, \
CFLAGS := -DEXPAND_CLASSPATH_WILDCARDS, \
EXPAND_CLASSPATH_WILDCARDS := true, \
))

################################################################################
Expand All @@ -41,5 +41,5 @@ $(eval $(call SetupBuildLauncher, javac, \

$(eval $(call SetupBuildLauncher, serialver, \
MAIN_CLASS := sun.tools.serialver.SerialVer, \
CFLAGS := -DEXPAND_CLASSPATH_WILDCARDS, \
EXPAND_CLASSPATH_WILDCARDS := true, \
))
2 changes: 1 addition & 1 deletion make/modules/jdk.javadoc/Launcher.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ include LauncherCommon.gmk
$(eval $(call SetupBuildLauncher, javadoc, \
MAIN_CLASS := jdk.javadoc.internal.tool.Main, \
JAVA_ARGS := --add-modules ALL-DEFAULT, \
CFLAGS := -DEXPAND_CLASSPATH_WILDCARDS, \
EXPAND_CLASSPATH_WILDCARDS := true, \
))
2 changes: 1 addition & 1 deletion make/modules/jdk.jconsole/Launcher.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ $(eval $(call SetupBuildLauncher, jconsole, \
--add-modules ALL-DEFAULT \
-Djconsole.showOutputViewer \
-Djdk.attach.allowAttachSelf=true, \
CFLAGS_windows := -DJAVAW, \
WINDOWS_JAVAW := true, \
))
8 changes: 4 additions & 4 deletions make/modules/jdk.jdeps/Launcher.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ include LauncherCommon.gmk

$(eval $(call SetupBuildLauncher, javap, \
MAIN_CLASS := com.sun.tools.javap.Main, \
CFLAGS := -DEXPAND_CLASSPATH_WILDCARDS, \
EXPAND_CLASSPATH_WILDCARDS := true, \
))

################################################################################
Expand All @@ -40,7 +40,7 @@ $(eval $(call SetupBuildLauncher, javap, \

$(eval $(call SetupBuildLauncher, jdeps, \
MAIN_CLASS := com.sun.tools.jdeps.Main, \
CFLAGS := -DEXPAND_CLASSPATH_WILDCARDS, \
EXPAND_CLASSPATH_WILDCARDS := true, \
))

################################################################################
Expand All @@ -49,7 +49,7 @@ $(eval $(call SetupBuildLauncher, jdeps, \

$(eval $(call SetupBuildLauncher, jdeprscan, \
MAIN_CLASS := com.sun.tools.jdeprscan.Main, \
CFLAGS := -DEXPAND_CLASSPATH_WILDCARDS, \
EXPAND_CLASSPATH_WILDCARDS := true, \
))

################################################################################
Expand All @@ -58,5 +58,5 @@ $(eval $(call SetupBuildLauncher, jdeprscan, \

$(eval $(call SetupBuildLauncher, jnativescan, \
MAIN_CLASS := com.sun.tools.jnativescan.Main, \
CFLAGS := -DEXPAND_CLASSPATH_WILDCARDS, \
EXPAND_CLASSPATH_WILDCARDS := true, \
))
2 changes: 1 addition & 1 deletion make/modules/jdk.jfr/Launcher.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ include LauncherCommon.gmk

$(eval $(call SetupBuildLauncher, jfr, \
MAIN_CLASS := jdk.jfr.internal.tool.Main, \
CFLAGS := -DEXPAND_CLASSPATH_WILDCARDS, \
EXPAND_CLASSPATH_WILDCARDS := true, \
))
8 changes: 5 additions & 3 deletions make/modules/jdk.jlink/Launcher.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ include LauncherCommon.gmk

$(eval $(call SetupBuildLauncher, jimage, \
MAIN_CLASS := jdk.tools.jimage.Main, \
CFLAGS := -DENABLE_ARG_FILES, \
ENABLE_ARG_FILES := true, \
))

################################################################################
Expand All @@ -41,7 +41,8 @@ $(eval $(call SetupBuildLauncher, jimage, \
$(eval $(call SetupBuildLauncher, jlink, \
MAIN_CLASS := jdk.tools.jlink.internal.Main, \
JAVA_ARGS := --add-modules ALL-DEFAULT, \
CFLAGS := -DENABLE_ARG_FILES -DEXPAND_CLASSPATH_WILDCARDS, \
ENABLE_ARG_FILES := true, \
EXPAND_CLASSPATH_WILDCARDS := true, \
))

################################################################################
Expand All @@ -50,5 +51,6 @@ $(eval $(call SetupBuildLauncher, jlink, \

$(eval $(call SetupBuildLauncher, jmod, \
MAIN_CLASS := jdk.tools.jmod.Main, \
CFLAGS := -DENABLE_ARG_FILES -DEXPAND_CLASSPATH_WILDCARDS, \
ENABLE_ARG_FILES := true, \
EXPAND_CLASSPATH_WILDCARDS := true, \
))
2 changes: 1 addition & 1 deletion make/modules/jdk.jshell/Launcher.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ include LauncherCommon.gmk

$(eval $(call SetupBuildLauncher, jshell, \
MAIN_CLASS := jdk.internal.jshell.tool.JShellToolProvider, \
CFLAGS := -DEXPAND_CLASSPATH_WILDCARDS, \
EXPAND_CLASSPATH_WILDCARDS := true, \
))
2 changes: 0 additions & 2 deletions src/hotspot/cpu/aarch64/c1_LIRGenerator_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -779,13 +779,11 @@ void LIRGenerator::do_MathIntrinsic(Intrinsic* x) {
}
case vmIntrinsics::_floatToFloat16: {
LIR_Opr tmp = new_register(T_FLOAT);
__ move(LIR_OprFact::floatConst(-0.0), tmp);
__ f2hf(src, dst, tmp);
break;
}
case vmIntrinsics::_float16ToFloat: {
LIR_Opr tmp = new_register(T_FLOAT);
__ move(LIR_OprFact::floatConst(-0.0), tmp);
__ hf2f(src, dst, tmp);
break;
}
Expand Down
Loading
Loading