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 to tag jdk-23+27 #1696

Merged
merged 149 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
2ea365c
8333099: Missing check for is_LoadVector in StoreNode::Identity
dafedafe May 30, 2024
66d9bfc
8332725: Binding patterns with inferred type have erroneous node in t…
lahodaj May 30, 2024
9a72068
8332230: jshell throws AssertionError when processing annotations
lahodaj May 30, 2024
57bfd0e
8332065: Calling readLine(null...) or readPassword(null...) on System…
lahodaj May 30, 2024
579cf70
8332597: Remove redundant methods from j.l.classfile.ClassReader API
asotona May 30, 2024
286cc16
8327401: Some jtreg tests fail on Wayland without any tracking bug
May 30, 2024
2b4a4b7
8326121: vmTestbase/gc/g1/unloading/tests/unloading_keepRef_rootClass…
May 30, 2024
3cff588
8332826: Make hashCode methods in ArraysSupport friendlier
May 30, 2024
1b04f64
8216984: Deprecate for removal Socket constructors to create UDP sockets
jaikiran May 30, 2024
f608918
8332614: Type-checked ConstantPool.entryByIndex and ClassReader.readE…
liach May 30, 2024
4a20691
8331876: JFR: Move file read and write events to java.base
egahlin May 30, 2024
921860d
8333264: Remove unused resolve_sub_helper declaration after JDK-8322630
TobiHartmann May 30, 2024
4acafb8
8333107: javac fails with an exception when processing broken lambda
lahodaj May 30, 2024
7071542
8331189: Implementation of Scoped Values (Third Preview)
May 30, 2024
32636dc
8333105: Shenandoah: Results of concurrent mark may be lost for degen…
May 30, 2024
1d889e5
8332487: Regression in Crypto-AESGCMBench.encrypt (and others) after …
May 30, 2024
922e312
8328611: Thread safety issue in com.sun.tools.jdi.ReferenceTypeImpl::…
plummercj May 30, 2024
44c1845
8330852: All callers of JvmtiEnvBase::get_threadOop_and_JavaThread sh…
May 30, 2024
11e926c
8332777: Update JCStress test suite
May 30, 2024
b3e29db
8333108: Update vmTestbase/nsk/share/DebugeeProcess.java to don't use…
lmesnik May 30, 2024
ec88c6a
8332917: failure_handler should execute gdb "info threads" command on…
plummercj May 30, 2024
79f4998
8321314: Reinstate disabling the compiler's default active annotation…
jddarcy May 30, 2024
ffb0867
8331485: Odd Results when Parsing Scientific Notation with Large Expo…
May 30, 2024
3634a91
8332751: Broken link in VirtualMachine.html
plummercj May 30, 2024
e304a8a
8333307: Don't suppress jpackage logging in tests when it is detectin…
May 31, 2024
1b7d59f
8333303: Issues with DottedVersion class
May 31, 2024
2ab8ab5
8332858: References with escapes have broken positions after they are…
lahodaj May 31, 2024
22ef827
8320396: Class-File API ClassModel::verify should include checks from…
asotona May 31, 2024
ba323b5
8333047: Remove arena-size-workaround in jvmtiUtils.cpp
tstuefe May 31, 2024
95c8a69
8332032: C2: Remove ExpandSubTypeCheckAtParseTime flag
chhagedorn May 31, 2024
bb4aed9
8332961: Parallel: Limit PSParallelCompact::verify_complete range
albertnetymk May 31, 2024
778ad00
8308642: Unhelpful pattern switch error: illegal fall-through to a pa…
biboudis May 31, 2024
a7864af
8182774: Verify code in javap
asotona May 31, 2024
7ab74c5
8333200: Test containers/docker/TestPids.java fails Limit value -1 is…
May 31, 2024
d481215
8333005: Deadlock when setting or updating the inline cache
fisk May 31, 2024
2f2dc22
8330981: ZGC: Should not dedup strings in the finalizer graph
fisk May 31, 2024
79a78f0
8333129: Move ShrinkHeapInSteps flag to Serial GC
zhengyu123 May 31, 2024
e930bc1
8329537: Nested and enclosing classes should be linked separately in …
hns May 31, 2024
32ee252
8333169: javac NullPointerException record.type
lahodaj May 31, 2024
1e04ee6
8331579: Reference to primitive type fails without error or warning
hns May 31, 2024
d9e7b7e
8210471: GZIPInputStream constructor could leak an un-end()ed Inflater
jaikiran May 31, 2024
5abc029
8331877: JFR: Remove JIInliner framework
egahlin May 31, 2024
914423e
8332899: RISC-V: add comment and make the code more readable (if poss…
May 31, 2024
681137c
8333131: Source launcher should work with service loader SPI
sormuras May 31, 2024
e4fbb15
8320215: HeapDumper can use DumpWriter buffer during merge
May 31, 2024
e650bdf
8332507: compilation result depends on compilation order
May 31, 2024
e99f6a6
8333236: Test java/foreign/TestAccessModes.java is timing out after p…
mcimadamore May 31, 2024
8aeada1
8331159: VM build without C2 fails after JDK-8180450
lewurm May 31, 2024
9fd0e73
8332110: [macos] jpackage tries to sign added files without the --mac…
May 31, 2024
2cae9a0
8314480: Memory ordering spec updates in java.lang.ref
May 31, 2024
10eb1cb
8331879: Clean up non-standard use of /// comments in `java.base`
jonathan-gibbons May 31, 2024
c0ce7d8
8333046: Clean codes in sun.security.util.math
Jun 1, 2024
d29d5bf
8333290: NMT report should not print Metaspace info if Metaspace is n…
tstuefe Jun 1, 2024
51b2f80
8332923: ObjectMonitorUsage.java failed with unexpected waiter_count
Jun 1, 2024
2453002
8331977: Crash: SIGSEGV in dlerror()
Jun 1, 2024
4785461
7022325: TEST_BUG: test/java/util/zip/ZipFile/ReadLongZipFileName.jav…
jaikiran Jun 2, 2024
8338946
8332935: Crash: assert(*lastPtr != 0) failed: Mismatched JNINativeIn…
Jun 2, 2024
769b3e4
8333182: Add truncated tracing mode for TraceBytecodes
cl4es Jun 2, 2024
cfe91ed
8333276: RISC-V: client VM build failure after JDK-8241503
zifeihan Jun 3, 2024
a4c7be8
8333006: RISC-V: C2: Support vector-scalar and vector-immediate arith…
zifeihan Jun 3, 2024
75220da
8333154: RISC-V: Add support for primitive array C1 clone intrinsic
zifeihan Jun 3, 2024
7c83d7a
8333366: C2: CmpU3Nodes are not pushed back to worklist in PhaseCCP l…
chhagedorn Jun 3, 2024
d2d78ad
8280990: [XWayland] XTest emulated mouse click does not bring window …
Jun 3, 2024
e0ac824
8332959: C2: ZGC fails with 'Incorrect load shift' when invoking Obje…
robcasloz Jun 3, 2024
91101f0
8333353: Delete extra empty line in CodeBlob.java
Jun 3, 2024
5ed0d52
8332936: Test vmTestbase/metaspace/gc/watermark_70_80/TestDescription…
Jun 3, 2024
b101586
8332514: Allow class space size to be larger than 3GB
tstuefe Jun 3, 2024
f0bffbc
8333301: Remove static builds using --enable-static-build
magicus Jun 3, 2024
d07e530
8333128: Linux x86_32 configure fail with --with-hsdis=binutils --wit…
Jun 3, 2024
1c514b3
8325435: [macos] Menu or JPopupMenu not closed when main window is re…
prsadhuk Jun 3, 2024
27af19d
8332586: Avoid cloning empty arrays in java.lang.reflect.{Method,Cons…
jengebr Jun 3, 2024
1f9e629
8333434: IGV: Print loop node for PHASE_BEFORE/AFTER_CLOOPS
chhagedorn Jun 3, 2024
4de6207
8333229: Parallel: Rename ParMarkBitMap::_region_start to _heap_start
albertnetymk Jun 3, 2024
9686e80
8333103: Re-examine the console provider loading
naotoj Jun 3, 2024
6dac8d6
8332424: Update IANA Language Subtag Registry to Version 2024-05-16
Jun 3, 2024
1512011
8332123: [nmt] Move mallocLimit code to the nmt subdir
Jun 4, 2024
d230b30
8333398: Uncomment the commented test in test/jdk/java/util/jar/JarFi…
jaikiran Jun 4, 2024
c7d2a5c
8314070: javax.print: Support IPP output-bin attribute extension
Jun 4, 2024
29e10e4
8332547: Unloaded signature classes in DirectMethodHandles
Jun 4, 2024
ca30726
8332866: Crash in ImageIO JPEG decoding when MEM_STATS in enabled
jayathirthrao Jun 4, 2024
67d6f3c
8332905: C2 SuperWord: bad AD file, with RotateRightV and first opera…
eme64 Jun 4, 2024
454660d
8332900: RISC-V: refactor nativeInst_riscv.cpp and macroAssembler_ris…
Jun 4, 2024
c7495fb
8333444: Parallel: Inline PSParallelCompact::mark_obj
albertnetymk Jun 4, 2024
64bbae7
8333394: C2: assert(bol->is_Opaque4() || bol->is_OpaqueInitializedAss…
chhagedorn Jun 4, 2024
0f4154a
8331193: Return references when possible in GrowableArray
jdksjolen Jun 4, 2024
9ee741d
8332015: since-checker - Add @ since tags to jdk.httpserver
nizarbenalla Jun 4, 2024
8d3de45
8325168: JShell should support Markdown comments
lahodaj Jun 4, 2024
664c993
8331731: ubsan: relocInfo.cpp:155:30: runtime error: applying non-zer…
Jun 4, 2024
4a1cdd5
8333486: Parallel: Remove unused methods in psParallelCompact
albertnetymk Jun 4, 2024
31f7039
8316131: runtime/cds/appcds/TestParallelGCWithCDS.java fails with JNI…
calvinccheung Jun 4, 2024
e0bab78
8326951: since-checker - missing @ since tags
nizarbenalla Jun 4, 2024
b101dcb
8333312: Incorrect since tags on new ClassReader and ConstantPool met…
dmlloyd Jun 4, 2024
dce9703
8333226: Regressions 2-3% in Compress ZGC after 8331253
Jun 4, 2024
612b689
8043226: Better diagnostics for non-applicable type annotations
cushon Jun 4, 2024
a706e35
8332039: Cannot invoke "com.sun.source.util.DocTreePath.getTreePath()…
hns Jun 4, 2024
244f6ac
8307824: Clean up Finalizable.java and finalize terminology in vmTest…
lmesnik Jun 4, 2024
67b9a08
8333586: Improve syntax of @see tags in javax.lang.model
jddarcy Jun 5, 2024
d826127
8333462: Performance regression of new DecimalFormat() when compare t…
lingjun-cg Jun 5, 2024
9db7c95
8332750: Broken link in CatalogFeatures.html
JoeWang-Java Jun 5, 2024
7dbd033
8332499: Gtest codestrings.validate_vm fail on linux x64 when hsdis i…
Jun 5, 2024
1f09467
8327368: javac crash when computing exhaustiveness checks
lahodaj Jun 5, 2024
4369856
8333130: MakeJAR2.sh uses hard-coded JDK version
jaikiran Jun 5, 2024
d0052c0
8333326: Linux Alpine build fails after 8302744
MBaesken Jun 5, 2024
3944e67
8312132: Add tracking of multiple address spaces in NMT
jdksjolen Jun 5, 2024
3cbdf8d
8333554: Parallel: Remove unused PSParallelCompact::is_in
albertnetymk Jun 5, 2024
8e903ee
8331896: JFR: Improve check for JDK classes
egahlin Jun 5, 2024
765ad0e
8331947: Preview creates checkbox for JEP-less preview feature
hns Jun 5, 2024
2c1b311
8331854: ubsan: copy.hpp:218:10: runtime error: addition of unsigned …
MBaesken Jun 5, 2024
789f704
8322732: ForkJoinPool may underutilize cores in async mode
Jun 5, 2024
cbb6747
8329581: Java launcher no longer prints a stack trace
Jun 5, 2024
6882b38
8333590: UnmodifiableHeaders.toString() returns a value that represen…
jaikiran Jun 5, 2024
9a8096f
8330047: ASAN build error with gcc 13
Jun 5, 2024
326dbb1
8312436: CompletableFuture never completes when 'Throwable.toString()…
Jun 5, 2024
d85b0ca
8332457: Examine startup overheads from JDK-8294961
asotona Jun 5, 2024
c5c0867
8333252: C2: assert(assertion_predicate_has_loop_opaque_node(iff)) fa…
chhagedorn Jun 5, 2024
7acfba2
8327650: Test java/nio/channels/DatagramChannel/StressNativeSignal.ja…
Jun 5, 2024
d7d1afb
8206447: InflaterInputStream.skip receives long but it's limited to I…
jaikiran Jun 5, 2024
438121b
8332785: Replace naked uses of UseSharedSpaces with CDSConfig::is_usi…
Jun 5, 2024
5dcb7a6
8160755: bug6492108.java test fails with exception Image comparison f…
Jun 5, 2024
f73922b
8333235: vmTestbase/nsk/jdb/kill/kill001/kill001.java fails with C1
lmesnik Jun 5, 2024
9b3694c
8319822: Use a linear-time algorithm for assert_different_registers()
Jun 5, 2024
f7dbb98
8333086: Using Console.println is unnecessarily slow due to JLine ini…
lahodaj Jun 5, 2024
4c09d9f
8332119: Incorrect IllegalArgumentException for C2 compiled permute k…
Jun 5, 2024
7564949
8291643: Consider omitting type annotations from type error diagnostics
cushon Jun 5, 2024
60ea17e
8311177: Switching to interpreter only mode in carrier thread can lea…
Jun 5, 2024
ca93907
8256828: ostream::print_cr() truncates buffer in copy-through case
Jun 6, 2024
3089412
8326716: JVMTI spec: clarify what nullptr means for C/C++ developers
Jun 6, 2024
b3f540d
8332921: Ctrl+C does not call shutdown hooks after JLine upgrade
lahodaj Jun 6, 2024
b351b5f
8331736: C2: Live Node limit exceeded limit after JDK-8316991
Jun 6, 2024
6f690a5
8333177: Invalid value used for enum Cell in ciTypeFlow::get_start_state
TobiHartmann Jun 6, 2024
8f07853
8333410: [AArch64] Clean unused classes in nativeInst_aarch64.hpp
kuaiwei Jun 6, 2024
7ef2831
8333644: C2: assert(is_Bool()) failed: invalid node class: Phi
chhagedorn Jun 6, 2024
c7d2841
8332070: Convert package.html files in `java.management` to package-i…
nizarbenalla Jun 6, 2024
880c6b4
8333178: ubsan: jvmti_tools.cpp:149:16: runtime error: null pointer p…
MBaesken Jun 6, 2024
1a50bd0
8322568: JFR: Improve metadata for IEEE rounding mode fields
egahlin Jun 6, 2024
f15d423
6942632: Hotspot should be able to use more than 64 logical processor…
swesonga Jun 6, 2024
8de5d20
8332865: ubsan: os::attempt_reserve_memory_between reports overflow
MBaesken Jun 6, 2024
33fd6ae
8333622: ubsan: relocInfo_x86.cpp:101:56: runtime error: pointer inde…
Jun 6, 2024
606df44
8332670: C1 clone intrinsic needs memory barriers
galderz Jun 6, 2024
02f2404
8333560: -Xlint:restricted does not work with --release
JornVernee Jun 6, 2024
d02cb74
8333270: HandlersOnComplexResetUpdate and HandlersOnComplexUpdate tes…
dfuch Jun 6, 2024
487c477
8333647: C2 SuperWord: some additional PopulateIndex tests
eme64 Jun 6, 2024
9b436d0
8333674: Disable CollectorPolicy.young_min_ergo_vm for PPC64
TheRealMDoerr Jun 6, 2024
054362a
8332550: [macos] Voice Over: java.awt.IllegalComponentStateException:…
Jun 6, 2024
31696a4
8333743: Change .jcheck/conf branches property to match valid branches
kevinrushforth Jun 6, 2024
fdbc2b2
8333722: Fix CompilerDirectives for non-compiler JVM variants
simonis Jun 10, 2024
9e22b6d
8333829: ProblemList sun/security/pkcs11/sslecc/ClientJSSEServerJSSE.…
Jun 11, 2024
b17a1c0
8333931: Problemlist serviceability/jvmti/vthread/CarrierThreadEventN…
Jun 11, 2024
d96476d
8332920: C2: Partial Peeling is wrongly applied for CmpU with negativ…
chhagedorn Jun 12, 2024
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
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .jcheck/conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ warning=issuestitle

[repository]
tags=(?:jdk-(?:[1-9]([0-9]*)(?:\.(?:0|[1-9][0-9]*)){0,4})(?:\+(?:(?:[0-9]+))|(?:-ga)))|(?:jdk[4-9](?:u\d{1,3})?-(?:(?:b\d{2,3})|(?:ga)))|(?:hs\d\d(?:\.\d{1,2})?-b\d\d)
branches=
branches=.*

[census]
version=0
Expand Down
54 changes: 0 additions & 54 deletions make/BuildStatic.gmk

This file was deleted.

12 changes: 0 additions & 12 deletions make/Main.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,6 @@ $(eval $(call SetupTarget, buildtools-hotspot, \
MAKEFILE := CompileToolsHotspot, \
))

################################################################################
# Special targets for certain modules

$(eval $(call SetupTarget, generate-exported-symbols, \
MAKEFILE := BuildStatic, \
DEPS := java.base-libs jdk.jdwp.agent-libs, \
))

################################################################################
# Gensrc targets, generating source before java compilation can be done
#
Expand Down Expand Up @@ -905,10 +897,6 @@ else

$(LAUNCHER_TARGETS): java.base-libs

ifeq ($(STATIC_BUILD), true)
$(LAUNCHER_TARGETS): generate-exported-symbols
endif

# Declare dependency from <module>-java to <module>-gensrc
$(foreach m, $(GENSRC_MODULES), $(eval $m-java: $m-gensrc))

Expand Down
7 changes: 2 additions & 5 deletions make/autoconf/flags-cflags.m4
Original file line number Diff line number Diff line change
Expand Up @@ -641,11 +641,8 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
JDK_PICFLAG="$PICFLAG"

if test "x$OPENJDK_TARGET_OS" = xmacosx; then
# Linking is different on MacOSX
JDK_PICFLAG=''
if test "x$STATIC_BUILD" = xtrue; then
JVM_PICFLAG=""
fi
# Linking is different on macOS
JVM_PICFLAG=""
fi

# Extra flags needed when building optional static versions of certain
Expand Down
25 changes: 2 additions & 23 deletions make/autoconf/jdk-options.m4
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,7 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_DEBUG_SYMBOLS],
fi
],
[
if test "x$STATIC_BUILD" = xtrue; then
with_native_debug_symbols="none"
else
with_native_debug_symbols="external"
fi
with_native_debug_symbols="external"
])
AC_MSG_RESULT([$with_native_debug_symbols])

Expand Down Expand Up @@ -543,24 +539,7 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_UNDEFINED_BEHAVIOR_SANITIZER],
#
AC_DEFUN_ONCE([JDKOPT_SETUP_STATIC_BUILD],
[
UTIL_ARG_ENABLE(NAME: static-build, DEFAULT: false, RESULT: STATIC_BUILD,
DESC: [enable static library build],
CHECKING_MSG: [if static build is enabled],
CHECK_AVAILABLE: [
AC_MSG_CHECKING([if static build is available])
if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
AVAILABLE=false
fi
],
IF_ENABLED: [
STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1"
CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS"
CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS"
])
AC_SUBST(STATIC_BUILD)
UTIL_DEPRECATED_ARG_ENABLE(static-build)
])

################################################################################
Expand Down
21 changes: 2 additions & 19 deletions make/autoconf/jvm-features.m4
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2024, 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 @@ -46,7 +46,7 @@ m4_define(jvm_features_valid, m4_normalize( \
\
cds compiler1 compiler2 dtrace epsilongc g1gc jfr jni-check \
jvmci jvmti link-time-opt management minimal opt-size parallelgc \
serialgc services shenandoahgc static-build vm-structs zero zgc \
serialgc services shenandoahgc vm-structs zero zgc \
))

# Deprecated JVM features (these are ignored, but with a warning)
Expand Down Expand Up @@ -309,22 +309,6 @@ AC_DEFUN_ONCE([JVM_FEATURES_CHECK_SHENANDOAHGC],
])
])

###############################################################################
# Check if the feature 'static-build' is available on this platform.
#
AC_DEFUN_ONCE([JVM_FEATURES_CHECK_STATIC_BUILD],
[
JVM_FEATURES_CHECK_AVAILABILITY(static-build, [
AC_MSG_CHECKING([if static-build is enabled in configure])
if test "x$STATIC_BUILD" = "xtrue"; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no, use --enable-static-build to enable static build.])
AVAILABLE=false
fi
])
])

###############################################################################
# Check if the feature 'zgc' is available on this platform.
#
Expand Down Expand Up @@ -395,7 +379,6 @@ AC_DEFUN_ONCE([JVM_FEATURES_PREPARE_PLATFORM],
JVM_FEATURES_CHECK_DTRACE
JVM_FEATURES_CHECK_JVMCI
JVM_FEATURES_CHECK_SHENANDOAHGC
JVM_FEATURES_CHECK_STATIC_BUILD
JVM_FEATURES_CHECK_ZGC

])
Expand Down
10 changes: 6 additions & 4 deletions make/autoconf/lib-hsdis.m4
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2021, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2021, 2024, 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 @@ -268,14 +268,16 @@ AC_DEFUN([LIB_SETUP_HSDIS_BINUTILS],
disasm_header="\"$BINUTILS_INSTALL_DIR/include/dis-asm.h\""
if test -e $BINUTILS_INSTALL_DIR/lib/libbfd.a && \
test -e $BINUTILS_INSTALL_DIR/lib/libopcodes.a && \
(test -e $BINUTILS_INSTALL_DIR/lib/libiberty.a || test -e $BINUTILS_INSTALL_DIR/lib64/libiberty.a); then
(test -e $BINUTILS_INSTALL_DIR/lib/libiberty.a || test -e $BINUTILS_INSTALL_DIR/lib64/libiberty.a || test -e $BINUTILS_INSTALL_DIR/lib32/libiberty.a); then
HSDIS_CFLAGS="-DLIBARCH_$OPENJDK_TARGET_CPU_LEGACY_LIB -I$BINUTILS_INSTALL_DIR/include"

# libiberty ignores --libdir and may be installed in $BINUTILS_INSTALL_DIR/lib or $BINUTILS_INSTALL_DIR/lib64
# depending on system setup
# libiberty ignores --libdir and may be installed in $BINUTILS_INSTALL_DIR/lib, $BINUTILS_INSTALL_DIR/lib32
# or $BINUTILS_INSTALL_DIR/lib64, depending on system setup
LIBIBERTY_LIB=""
if test -e $BINUTILS_INSTALL_DIR/lib/libiberty.a; then
LIBIBERTY_LIB="$BINUTILS_INSTALL_DIR/lib/libiberty.a"
elif test -e $BINUTILS_INSTALL_DIR/lib32/libiberty.a; then
LIBIBERTY_LIB="$BINUTILS_INSTALL_DIR/lib32/libiberty.a"
else
LIBIBERTY_LIB="$BINUTILS_INSTALL_DIR/lib64/libiberty.a"
fi
Expand Down
1 change: 0 additions & 1 deletion make/autoconf/spec.gmk.template
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,6 @@ SHARED_LIBRARY_SUFFIX := @SHARED_LIBRARY_SUFFIX@
STATIC_LIBRARY_SUFFIX := @STATIC_LIBRARY_SUFFIX@
EXECUTABLE_SUFFIX := @EXECUTABLE_SUFFIX@
OBJ_SUFFIX := @OBJ_SUFFIX@
STATIC_BUILD := @STATIC_BUILD@

STRIPFLAGS := @STRIPFLAGS@

Expand Down
19 changes: 5 additions & 14 deletions make/autoconf/toolchain.m4
Original file line number Diff line number Diff line change
Expand Up @@ -178,23 +178,14 @@ AC_DEFUN([TOOLCHAIN_SETUP_FILENAME_PATTERNS],
EXECUTABLE_SUFFIX='.exe'
else
LIBRARY_PREFIX=lib
SHARED_LIBRARY_SUFFIX='.so'
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
SHARED_LIBRARY_SUFFIX='.dylib'
else
SHARED_LIBRARY_SUFFIX='.so'
fi
STATIC_LIBRARY_SUFFIX='.a'
OBJ_SUFFIX='.o'
EXECUTABLE_SUFFIX=''
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
# For full static builds, we're overloading the shared library suffix
# in order to limit the amount of changes required.
# It would be better to remove SHARED and just use LIBRARY and
# LIBRARY_SUFFIX for libraries that can be built either
# shared or static and use STATIC_* for libraries that are
# always built statically.
if test "x$STATIC_BUILD" = xtrue; then
SHARED_LIBRARY_SUFFIX='.a'
else
SHARED_LIBRARY_SUFFIX='.dylib'
fi
fi
fi

AC_SUBST(LIBRARY_PREFIX)
Expand Down
3 changes: 0 additions & 3 deletions make/common/JdkNativeCompilation.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,6 @@ define AddJdkLibrary
endif

# Determine if the library in question is static.
ifeq ($(STATIC_BUILD), true)
$1_$2_STATIC_LIBRARY := true
endif
# Ideally, we should not hardcode these
ifeq ($(call isTargetOs, aix)+$$($1_$2_MODULE):$$($1_$2_NAME), true+java.base:jli)
$1_$2_STATIC_LIBRARY := true
Expand Down
8 changes: 0 additions & 8 deletions make/common/NativeCompilation.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -259,14 +259,6 @@ define SetupBasicVariables
$1_TYPE := LIBRARY
endif

# If we're doing a static build and producing a library
# force it to be a static library and remove the -l libraries
ifeq ($(STATIC_BUILD), true)
ifeq ($$($1_TYPE), LIBRARY)
$1_TYPE := STATIC_LIBRARY
endif
endif

# STATIC_LIBS is set from Main.gmk when building static versions of certain
# native libraries.
ifeq ($(STATIC_LIBS), true)
Expand Down
13 changes: 0 additions & 13 deletions make/common/modules/LauncherCommon.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,6 @@ define SetupBuildLauncherBody
))

$1_LDFLAGS += -sectcreate __TEXT __info_plist $$($1_PLIST_FILE)

ifeq ($(STATIC_BUILD), true)
$1_LDFLAGS += -exported_symbols_list \
$(SUPPORT_OUTPUTDIR)/build-static/exported.symbols
$1_LIBS += \
$$(shell $(FIND) $(SUPPORT_OUTPUTDIR)/modules_libs/java.base -name "*.a") \
$(SUPPORT_OUTPUTDIR)/modules_libs/jdk.jdwp.agent/libdt_socket.a \
$(SUPPORT_OUTPUTDIR)/modules_libs/jdk.jdwp.agent/libjdwp.a \
-framework CoreFoundation \
-framework Foundation \
-framework SystemConfiguration \
-lstdc++ -liconv
endif
endif

$1_EXTRA_FILES := $(LAUNCHER_SRC)/main.c
Expand Down
7 changes: 0 additions & 7 deletions make/common/native/Link.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,6 @@ define CreateStaticLibrary
$(if $$($1_LINK_OBJS_RELATIVE), $$(CD) $$(OUTPUTDIR) ; ) \
$$($1_AR) $$(ARFLAGS) -r -cs $$($1_TARGET) \
$$($1_AR_OBJ_ARG) $$($1_RES))
ifeq ($(STATIC_BUILD), true)
$(RM) $$(@D)/$$(basename $$(@F)).symbols; \
$(ECHO) "Getting symbols from nm"; \
$(NM) $(NMFLAGS) -m $$($1_TARGET) | $(GREP) "__TEXT" | \
$(EGREP) -v "non-external|private extern|__TEXT,__eh_frame" | \
$(SED) -e 's/.* //' > $$(@D)/$$(basename $$(@F)).symbols
endif
endef

################################################################################
Expand Down
4 changes: 0 additions & 4 deletions make/hotspot/lib/JvmFeatures.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ ifeq ($(call check-jvm-feature, dtrace), true)
JVM_CFLAGS_FEATURES += -DDTRACE_ENABLED
endif

ifeq ($(call check-jvm-feature, static-build), true)
JVM_CFLAGS_FEATURES += -DSTATIC_BUILD=1
endif

ifneq ($(call check-jvm-feature, jvmti), true)
JVM_CFLAGS_FEATURES += -DINCLUDE_JVMTI=0
JVM_EXCLUDE_FILES += jvmtiGetLoadedClasses.cpp jvmtiThreadState.cpp jvmtiExtensions.cpp \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,10 @@ public void createSymbols(String ctDescriptionFileExtra, String ctDescriptionFil
"Ljdk/internal/javac/PreviewFeature;";
private static final String PREVIEW_FEATURE_ANNOTATION_INTERNAL =
"Ljdk/internal/PreviewFeature+Annotation;";
private static final String RESTRICTED_ANNOTATION =
"Ljdk/internal/javac/Restricted;";
private static final String RESTRICTED_ANNOTATION_INTERNAL =
"Ljdk/internal/javac/Restricted+Annotation;";
private static final String VALUE_BASED_ANNOTATION =
"Ljdk/internal/ValueBased;";
private static final String VALUE_BASED_ANNOTATION_INTERNAL =
Expand All @@ -349,7 +353,8 @@ public void createSymbols(String ctDescriptionFileExtra, String ctDescriptionFil
"Lsun/Proprietary+Annotation;",
PREVIEW_FEATURE_ANNOTATION_OLD,
PREVIEW_FEATURE_ANNOTATION_NEW,
VALUE_BASED_ANNOTATION));
VALUE_BASED_ANNOTATION,
RESTRICTED_ANNOTATION));

private void stripNonExistentAnnotations(LoadDescriptions data) {
Set<String> allClasses = data.classes.name2Class.keySet();
Expand Down Expand Up @@ -1247,6 +1252,12 @@ private Annotation createAnnotation(List<CPInfo> constantPool, AnnotationDescrip
annotationType = VALUE_BASED_ANNOTATION_INTERNAL;
}

if (RESTRICTED_ANNOTATION.equals(annotationType)) {
//the non-public Restricted annotation will not be available in ct.sym,
//replace with purely synthetic javac-internal annotation:
annotationType = RESTRICTED_ANNOTATION_INTERNAL;
}

return new Annotation(null,
addString(constantPool, annotationType),
createElementPairs(constantPool, values));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public enum SimpleType implements MessageType {
TOKEN("token", "TokenKind", "com.sun.tools.javac.parser.Tokens"),
TREE_TAG("tree tag", "Tag", "com.sun.tools.javac.tree.JCTree"),
TYPE("type", "Type", "com.sun.tools.javac.code"),
ANNOTATED_TYPE("annotated-type", "AnnotatedType", "com.sun.tools.javac.util.JCDiagnostic"),
URL("url", "URL", "java.net"),
SET("set", "Set", "java.util"),
LIST("list", "List", "java.util"),
Expand Down
2 changes: 1 addition & 1 deletion make/modules/java.base/Java.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# new warning is added to javac, it can be temporarily added to the
# disabled warnings list.
#
DISABLED_WARNINGS_java += dangling-doc-comments
# DISABLED_WARNINGS_java +=

DOCLINT += -Xdoclint:all/protected \
'-Xdoclint/package:java.*,javax.*'
Expand Down
Loading
Loading