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 openjdk/jdk:master #308

Closed
wants to merge 79 commits into from
Closed
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
e080a0b
8311508: ZGC: RAII use of IntelJccErratumAlignment
xmas92 Aug 10, 2023
8f28809
8299790: os::print_hex_dump is racy
tstuefe Aug 10, 2023
6dba202
8313670: Simplify shared lib name handling code in some tests
MBaesken Aug 10, 2023
35b60f9
8298095: Refine implSpec for SegmentAllocator
minborg Aug 10, 2023
83adaf5
8313421: [JVMCI] avoid locking class loader in CompilerToVM.lookupType
Aug 10, 2023
028b3ae
8313874: JNI NewWeakGlobalRef throws exception for null arg
olivergillespie Aug 10, 2023
0cb9ab0
8313239: InetAddress.getCanonicalHostName may return ip address if re…
jaikiran Aug 10, 2023
f47767f
8313882: Fix -Wconversion warnings in runtime code
coleenp Aug 10, 2023
23fe2ec
8313616: support loading library members on AIX in os::dll_load
MBaesken Aug 10, 2023
e7c83ea
8312194: test/hotspot/jtreg/applications/ctw/modules/jdk_crypto_ec.ja…
lmesnik Aug 10, 2023
9b53251
8313654: Test WaitNotifySuspendedVThreadTest.java timed out
lmesnik Aug 10, 2023
bd1b942
8313905: Checked_cast assert in CDS compare_by_loader
coleenp Aug 10, 2023
1875b28
8314061: [JVMCI] DeoptimizeALot stress logic breaks deferred barriers
Aug 10, 2023
79be8d9
8312259: StatusResponseManager unused code clean up
XueleiFan Aug 10, 2023
d97de82
8313633: [macOS] java/awt/dnd/NextDropActionTest/NextDropActionTest.j…
Aug 10, 2023
6f5c903
8313899: JVMCI exception Translation can fail in TranslatedException.…
Aug 10, 2023
88b4e3b
8304292: Memory leak related to ClassLoader::update_class_path_entry_…
calvinccheung Aug 10, 2023
42758cb
8312882: Update the CONTRIBUTING.md with pointers to lifecycle of a PR
jglick Aug 10, 2023
9abb2a5
8312461: JNI warnings in SunMSCApi provider
Aug 10, 2023
43462a3
8313224: Avoid calling JavaThread::current() in MemAllocator::Allocat…
iklam Aug 11, 2023
62adeb0
8311648: Refactor the Arena/Chunk/ChunkPool interface
jdksjolen Aug 11, 2023
6ffc032
8314113: G1: Remove unused G1CardSetInlinePtr::card_at
albertnetymk Aug 11, 2023
1232677
8313244: NM flags handling in configure process
ansteiner Aug 11, 2023
8f1c134
8313798: [aarch64] sun/tools/jhsdb/HeapDumpTestWithActiveProcess.java…
plummercj Aug 11, 2023
7332502
8314139: TEST_BUG: runtime/os/THPsInThreadStackPreventionTest.java co…
Aug 11, 2023
ec0cc63
8313904: [macos] All signing tests which verifies unsigned app images…
Aug 11, 2023
b88c273
8313743: Make fields final in sun.nio.ch
Aug 14, 2023
6bbcef5
8313948: Remove unnecessary static fields defaultUpper/defaultLower i…
Aug 14, 2023
5c91622
8314117: RISC-V: Incorrect VMReg encoding in RISCV64Frame.java
feilongjiang Aug 14, 2023
1de5bf1
8314106: C2: assert(is_valid()) failed: must be valid after JDK-8305636
chhagedorn Aug 14, 2023
a39ed10
8314116: C2: assert(false) failed: malformed control flow after JDK-8…
chhagedorn Aug 14, 2023
049b55f
8314019: Add gc logging to jdk/jfr/event/gc/detailed/TestZAllocationS…
stefank Aug 14, 2023
4164693
8313372: [JVMCI] Export vmIntrinsics::is_intrinsic_available results …
Aug 14, 2023
06aa3c5
8314118: Update JMH devkit to 1.37
shipilev Aug 14, 2023
5bfb82e
8314119: G1: Fix -Wconversion warnings in G1CardSetInlinePtr::card_po…
albertnetymk Aug 14, 2023
823f5b9
8308850: Change JVM options with small ranges that get -Wconversion w…
Aug 14, 2023
207bd00
8313756: [BACKOUT] 8308682: Enhance AES performance
chhagedorn Aug 14, 2023
6574dd7
8314025: Remove JUnit-based test in java/lang/invoke from problem list
sormuras Aug 14, 2023
911d1db
8314078: HotSpotConstantPool.lookupField() asserts due to field chang…
iklam Aug 14, 2023
f41c267
8314045: ArithmeticException in GaloisCounterMode
cushon Aug 14, 2023
4b2703a
8313678: SymbolTable can leak Symbols during cleanup
olivergillespie Aug 14, 2023
e56d3bc
8313657: com.sun.jndi.ldap.Connection.cleanup does not close connecti…
weibxiao Aug 14, 2023
c132176
8114830: (fs) Files.copy fails due to interference from something els…
Aug 14, 2023
49b2984
8313854: Some tests in serviceability area fail on localized Windows …
yukikimmura Aug 14, 2023
595fdd3
8314059: Remove PKCS7.verify()
blperez01 Aug 14, 2023
f142470
8311981: Test gc/stringdedup/TestStringDeduplicationAgeThreshold.java…
Aug 14, 2023
1f1c5c6
8314241: Add test/jdk/sun/security/pkcs/pkcs7/SignerOrder.java to Pro…
seanjmullan Aug 14, 2023
0074b48
8312597: Convert TraceTypeProfile to UL
Aug 14, 2023
583cb75
8313406: nep_invoker_blob can be simplified more
YaSuenag Aug 14, 2023
37c6b23
8308340: C2: Idealize Fma nodes
Aug 15, 2023
b7dee21
8314244: Incorrect file headers in new tests from JDK-8312597
Aug 15, 2023
6338927
8314197: AttachListener::pd_find_operation always returning nullptr
MBaesken Aug 15, 2023
f4e72c5
8313949: Missing word in GPLv2 license text in StackMapTableAttribute…
Aug 15, 2023
dff99f7
8313782: Add user-facing warning if THPs are enabled but cannot be used
tstuefe Aug 15, 2023
a02d65e
8310308: IR Framework: check for type and size of vector nodes
eme64 Aug 15, 2023
9ded868
8314114: Fix -Wconversion warnings in os code, primarily linux
coleenp Aug 15, 2023
004651d
8311557: [JVMCI] deadlock with JVMTI thread suspension
Aug 15, 2023
80809ef
8314248: Remove HotSpotConstantPool::isResolvedDynamicInvoke
iklam Aug 15, 2023
2e8a0ab
8314120: Add tests for FileDescriptor.sync
shipilev Aug 15, 2023
f239954
8310134: NMT: thread count in Thread section of VM.native_memory outp…
Aug 15, 2023
f66c73d
8314166: Update googletest to v1.14.0
vidmik Aug 15, 2023
0f5e030
8309335: Get rid of use of reflection to call Thread.isVirtual() in n…
plummercj Aug 15, 2023
bc8e9f4
8311591: Add SystemModulesPlugin test case that splits module descrip…
Siedlerchr Aug 15, 2023
6bf4a33
8314242: Update applications/scimark/Scimark.java to accept VM flags
lmesnik Aug 16, 2023
6a15860
8314163: os::print_hex_dump prints incorrectly for big endian platfor…
tstuefe Aug 16, 2023
2bd2fae
4346610: Adding JSeparator to JToolBar "pushes" buttons added after s…
prsadhuk Aug 16, 2023
e1fdef5
8314324: "8311557: [JVMCI] deadlock with JVMTI thread suspension" cau…
Aug 16, 2023
0b12480
8314233: C2: assert(assertion_predicate_has_loop_opaque_node(iff)) fa…
chhagedorn Aug 16, 2023
a602624
8314020: Print instruction blocks in byte units
shipilev Aug 16, 2023
38687f1
8314262: GHA: Cut down cross-compilation sysroots deeper
shipilev Aug 16, 2023
d46f0fb
8313720: C2 SuperWord: wrong result with -XX:+UseVectorCmov -XX:+UseC…
eme64 Aug 16, 2023
49ddb19
8313760: [REDO] Enhance AES performance
chhagedorn Aug 16, 2023
ef6db5c
8314211: Add NativeLibraryUnload event
MBaesken Aug 16, 2023
b80001d
8314209: Wrong @since tag for RandomGenerator::equiDoubles
rgiulietti Aug 16, 2023
1925508
8314144: gc/g1/ihop/TestIHOPStatic.java fails due to extra concurrent…
Aug 16, 2023
24e896d
8310275: Bug in assignment operator of ReservedMemoryRegion
schmelter-sap Aug 16, 2023
13f6450
8313765: Invalid CEN header (invalid zip64 extra data field size)
Aug 16, 2023
b32d641
8311943: Cleanup usages of toLowerCase() and toUpperCase() in java.base
Glavo Aug 16, 2023
aa98fd0
Merge tag 'jdk-22+11' into merge-jdk-22-11
earthling-amzn Aug 18, 2023
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
3 changes: 2 additions & 1 deletion .github/workflows/build-cross-compile.yml
Original file line number Diff line number Diff line change
@@ -153,7 +153,8 @@ jobs:
sudo chown ${USER} -R sysroot
rm -rf sysroot/{dev,proc,run,sys,var}
rm -rf sysroot/usr/{sbin,bin,share}
rm -rf sysroot/usr/lib/{apt,udev,systemd}
rm -rf sysroot/usr/lib/{apt,gcc,udev,systemd}
rm -rf sysroot/usr/libexec/gcc
if: steps.get-cached-sysroot.outputs.cache-hit != 'true'

- name: 'Configure'
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Contributing to the JDK

Please see <https://openjdk.org/contribute> for how to contribute.
Please see the [OpenJDK Developers’ Guide](https://openjdk.org/guide/).
27 changes: 9 additions & 18 deletions doc/building.html
Original file line number Diff line number Diff line change
@@ -324,7 +324,8 @@ <h3 id="building-on-x86">Building on x86</h3>
<p>Even for 32-bit builds, it is recommended to use a 64-bit build
machine, and instead create a 32-bit target using
<code>--with-target-bits=32</code>.</p>
<p>Note: The Windows 32-bit x86 port is deprecated and may be removed in a future release.</p>
<p>Note: The Windows 32-bit x86 port is deprecated and may be removed in
a future release.</p>
<h3 id="building-on-aarch64">Building on aarch64</h3>
<p>At a minimum, a machine with 8 cores is advisable, as well as 8 GB of
RAM. (The more cores to use, the more memory you need.) At least 6 GB of
@@ -401,7 +402,8 @@ <h3 id="windows">Windows</h3>
use <code>--with-msvcr-dll=/cygdrive/c/msvcr100.dll</code> rather than
<code>--with-msvcr-dll=c:\msvcr100.dll</code>. For details on this
conversion, see the section on <a href="#fixpath">Fixpath</a>.</p>
<p>Note: The Windows 32-bit x86 port is deprecated and may be removed in a future release.</p>
<p>Note: The Windows 32-bit x86 port is deprecated and may be removed in
a future release.</p>
<h4 id="cygwin">Cygwin</h4>
<p>A functioning <a href="http://www.cygwin.com/">Cygwin</a> environment
is required for building the JDK on Windows. If you have a 64-bit OS, we
@@ -1113,13 +1115,13 @@ <h2 id="running-tests">Running Tests</h2>
Test framework. The top directory, which contains both
<code>googletest</code> and <code>googlemock</code> directories, should
be specified via <code>--with-gtest</code>. The minimum supported
version of Google Test is 1.13.0, whose source code can be obtained:</p>
version of Google Test is 1.14.0, whose source code can be obtained:</p>
<ul>
<li>by downloading and unpacking the source bundle from <a
href="https://github.com/google/googletest/releases/tag/v1.13.0">here</a></li>
<li>or by checking out <code>v1.13.0</code> tag of
href="https://github.com/google/googletest/releases/tag/v1.14.0">here</a></li>
<li>or by checking out <code>v1.14.0</code> tag of
<code>googletest</code> project:
<code>git clone -b v1.13.0 https://github.com/google/googletest</code></li>
<code>git clone -b v1.14.0 https://github.com/google/googletest</code></li>
</ul>
<p>To execute the most basic tests (tier 1), use:</p>
<pre><code>make run-test-tier1</code></pre>
@@ -2255,18 +2257,7 @@ <h2 id="contributing-to-the-jdk">Contributing to the JDK</h2>
must ask you to follow our rules and guidelines to be able to accept
your contribution.</p>
<p>The official place to start is the <a
href="http://openjdk.org/contribute/">'How to contribute' page</a>.
There is also an official (but somewhat outdated and skimpy on details)
<a href="http://openjdk.org/guide/">Developer's Guide</a>.</p>
<p>If this seems overwhelming to you, the Adoption Group is there to
help you! A good place to start is their <a
href="https://wiki.openjdk.org/display/Adoption/New+Contributor">'New
Contributor' page</a>, or start reading the comprehensive <a
href="https://adoptopenjdk.gitbooks.io/adoptopenjdk-getting-started-kit/en/">Getting
Started Kit</a>. The Adoption Group will also happily answer any
questions you have about contributing. Contact them by <a
href="http://mail.openjdk.org/mailman/listinfo/adoption-discuss">mail</a>
or <a href="http://openjdk.org/irc/">IRC</a>.</p>
href="https://openjdk.org/guide/">OpenJDK Developers’ Guide</a>.</p>
<h2 id="editing-this-document">Editing this document</h2>
<p>If you want to contribute changes to this document, edit
<code>doc/building.md</code> and then run
21 changes: 4 additions & 17 deletions doc/building.md
Original file line number Diff line number Diff line change
@@ -884,11 +884,11 @@ Download the latest `.tar.gz` file, unpack it, and point `--with-jtreg` to the
Building of Hotspot Gtest suite requires the source code of Google
Test framework. The top directory, which contains both `googletest`
and `googlemock` directories, should be specified via `--with-gtest`.
The minimum supported version of Google Test is 1.13.0, whose source
The minimum supported version of Google Test is 1.14.0, whose source
code can be obtained:
* by downloading and unpacking the source bundle from [here](https://github.com/google/googletest/releases/tag/v1.13.0)
* or by checking out `v1.13.0` tag of `googletest` project: `git clone -b v1.13.0 https://github.com/google/googletest`
* by downloading and unpacking the source bundle from [here](https://github.com/google/googletest/releases/tag/v1.14.0)
* or by checking out `v1.14.0` tag of `googletest` project: `git clone -b v1.14.0 https://github.com/google/googletest`
To execute the most basic tests (tier 1), use:
```
@@ -2032,20 +2032,7 @@ First of all: Thank you! We gladly welcome your contribution.
However, please bear in mind that the JDK is a massive project, and we must ask
you to follow our rules and guidelines to be able to accept your contribution.
The official place to start is the ['How to contribute' page](
http://openjdk.org/contribute/). There is also an official (but somewhat
outdated and skimpy on details) [Developer's Guide](
http://openjdk.org/guide/).
If this seems overwhelming to you, the Adoption Group is there to help you! A
good place to start is their ['New Contributor' page](
https://wiki.openjdk.org/display/Adoption/New+Contributor), or start
reading the comprehensive [Getting Started Kit](
https://adoptopenjdk.gitbooks.io/adoptopenjdk-getting-started-kit/en/). The
Adoption Group will also happily answer any questions you have about
contributing. Contact them by [mail](
http://mail.openjdk.org/mailman/listinfo/adoption-discuss) or [IRC](
http://openjdk.org/irc/).
The official place to start is the [OpenJDK Developers’ Guide](https://openjdk.org/guide/).
## Editing this document
10 changes: 10 additions & 0 deletions make/autoconf/flags-other.m4
Original file line number Diff line number Diff line change
@@ -88,6 +88,16 @@ AC_DEFUN([FLAGS_SETUP_RCFLAGS],
AC_SUBST(RCFLAGS)
])

AC_DEFUN([FLAGS_SETUP_NMFLAGS],
[
# On AIX, we need to set NM flag -X64 for processing 64bit object files
if test "x$OPENJDK_TARGET_OS" = xaix; then
NMFLAGS="-X64"
fi
AC_SUBST(NMFLAGS)
])

################################################################################
# platform independent
AC_DEFUN([FLAGS_SETUP_ASFLAGS],
1 change: 1 addition & 0 deletions make/autoconf/flags.m4
Original file line number Diff line number Diff line change
@@ -429,6 +429,7 @@ AC_DEFUN([FLAGS_SETUP_FLAGS],
FLAGS_SETUP_ARFLAGS
FLAGS_SETUP_STRIPFLAGS
FLAGS_SETUP_RCFLAGS
FLAGS_SETUP_NMFLAGS
FLAGS_SETUP_ASFLAGS
FLAGS_SETUP_ASFLAGS_CPU_DEP([TARGET])
2 changes: 1 addition & 1 deletion make/autoconf/lib-tests.m4
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@

# Minimum supported versions
JTREG_MINIMUM_VERSION=7.3
GTEST_MINIMUM_VERSION=1.13.0
GTEST_MINIMUM_VERSION=1.14.0

###############################################################################
#
1 change: 1 addition & 0 deletions make/autoconf/spec.gmk.in
Original file line number Diff line number Diff line change
@@ -606,6 +606,7 @@ AR := @AR@
ARFLAGS:=@ARFLAGS@

NM:=@NM@
NMFLAGS:=@NMFLAGS@
STRIP:=@STRIP@
OBJDUMP:=@OBJDUMP@
CXXFILT:=@CXXFILT@
4 changes: 2 additions & 2 deletions make/common/NativeCompilation.gmk
Original file line number Diff line number Diff line change
@@ -48,12 +48,12 @@ define GetSymbols
$(SED) -e 's/#.*//;s/global://;s/local://;s/\;//;s/^[ ]*/_/;/^_$$$$/d' | \
$(EGREP) -v "JNI_OnLoad|JNI_OnUnload|Agent_OnLoad|Agent_OnUnload|Agent_OnAttach" > \
$$(@D)/$$(basename $$(@F)).symbols || true; \
$(NM) $$($1_TARGET) | $(GREP) " T " | \
$(NM) $(NMFLAGS) $$($1_TARGET) | $(GREP) " T " | \
$(EGREP) "JNI_OnLoad|JNI_OnUnload|Agent_OnLoad|Agent_OnUnload|Agent_OnAttach" | \
$(CUT) -d ' ' -f 3 >> $$(@D)/$$(basename $$(@F)).symbols || true;\
else \
$(ECHO) "Getting symbols from nm"; \
$(NM) -m $$($1_TARGET) | $(GREP) "__TEXT" | \
$(NM) $(NMFLAGS) -m $$($1_TARGET) | $(GREP) "__TEXT" | \
$(EGREP) -v "non-external|private extern|__TEXT,__eh_frame" | \
$(SED) -e 's/.* //' > $$(@D)/$$(basename $$(@F)).symbols; \
fi
2 changes: 1 addition & 1 deletion make/conf/github-actions.conf
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@

# Versions and download locations for dependencies used by GitHub Actions (GHA)

GTEST_VERSION=1.13.0
GTEST_VERSION=1.14.0
JTREG_VERSION=7.3+1

LINUX_X64_BOOT_JDK_EXT=tar.gz
2 changes: 1 addition & 1 deletion make/conf/jib-profiles.js
Original file line number Diff line number Diff line change
@@ -1270,7 +1270,7 @@ var getJibProfilesDependencies = function (input, common) {
gtest: {
organization: common.organization,
ext: "tar.gz",
revision: "1.13.0+1.0"
revision: "1.14.0+1.0"
},

libffi: {
4 changes: 2 additions & 2 deletions make/devkit/createJMHBundle.sh
Original file line number Diff line number Diff line change
@@ -26,8 +26,8 @@
# Create a bundle in the build directory, containing what's needed to
# build and run JMH microbenchmarks from the OpenJDK build.

JMH_VERSION=1.36
COMMONS_MATH3_VERSION=3.2
JMH_VERSION=1.37
COMMONS_MATH3_VERSION=3.6.1
JOPT_SIMPLE_VERSION=5.0.4

BUNDLE_NAME=jmh-$JMH_VERSION.tar.gz
10 changes: 2 additions & 8 deletions make/hotspot/lib/CompileJvm.gmk
Original file line number Diff line number Diff line change
@@ -281,19 +281,13 @@ ifneq ($(GENERATE_COMPILE_COMMANDS_ONLY), true)
#
UNDEF_PATTERN := ' U '

# 'nm' on AIX needs -X64 option

ifeq ($(call isTargetOs, aix), true)
NM := $(NM) -X64
endif

define SetupOperatorNewDeleteCheck
$1.op_check: $1
$$(call ExecuteWithLog, $1.op_check, \
$$(NM) $$< 2>&1 | $$(GREP) $$(addprefix -e , $$(MANGLED_SYMS)) | $$(GREP) $$(UNDEF_PATTERN) > $1.op_check || true)
$$(NM) $$(NMFLAGS) $$< 2>&1 | $$(GREP) $$(addprefix -e , $$(MANGLED_SYMS)) | $$(GREP) $$(UNDEF_PATTERN) > $1.op_check || true)
if [ -s $1.op_check ]; then \
$$(ECHO) "$$(notdir $$<): Error: Use of global operators new and delete is not allowed in Hotspot:"; \
$$(NM) $$< | $$(CXXFILT) | $$(EGREP) '$$(DEMANGLED_REGEXP)' | $$(GREP) $$(UNDEF_PATTERN); \
$$(NM) $$(NMFLAGS) $$< | $$(CXXFILT) | $$(EGREP) '$$(DEMANGLED_REGEXP)' | $$(GREP) $$(UNDEF_PATTERN); \
$$(ECHO) "See: $$(TOPDIR)/make/hotspot/lib/CompileJvm.gmk"; \
exit 1; \
fi
6 changes: 3 additions & 3 deletions make/hotspot/lib/JvmMapfile.gmk
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@ endif
# platform dependent.

ifeq ($(call isTargetOs, linux), true)
DUMP_SYMBOLS_CMD := $(NM) --defined-only *$(OBJ_SUFFIX)
DUMP_SYMBOLS_CMD := $(NM) $(NMFLAGS) --defined-only *$(OBJ_SUFFIX)
ifneq ($(FILTER_SYMBOLS_PATTERN), )
FILTER_SYMBOLS_PATTERN := $(FILTER_SYMBOLS_PATTERN)|
endif
@@ -67,7 +67,7 @@ ifeq ($(call isTargetOs, linux), true)
else ifeq ($(call isTargetOs, macosx), true)
# nm on macosx prints out "warning: nm: no name list" to stderr for
# files without symbols. Hide this, even at the expense of hiding real errors.
DUMP_SYMBOLS_CMD := $(NM) -Uj *$(OBJ_SUFFIX) 2> /dev/null
DUMP_SYMBOLS_CMD := $(NM) $(NMFLAGS) -Uj *$(OBJ_SUFFIX) 2> /dev/null
ifneq ($(FILTER_SYMBOLS_PATTERN), )
FILTER_SYMBOLS_PATTERN := $(FILTER_SYMBOLS_PATTERN)|
endif
@@ -89,7 +89,7 @@ else ifeq ($(call isTargetOs, aix), true)
# which may be installed under /opt/freeware/bin. So better use an absolute path here!
# NM=/usr/bin/nm

DUMP_SYMBOLS_CMD := $(NM) -X64 -B -C *$(OBJ_SUFFIX)
DUMP_SYMBOLS_CMD := $(NM) $(NMFLAGS) -B -C *$(OBJ_SUFFIX)
FILTER_SYMBOLS_AWK_SCRIPT := \
'{ \
if (($$2="d" || $$2="D") && ($$3 ~ /^__vft/ || $$3 ~ /^gHotSpotVM/)) print $$3; \
Loading