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-24+25 #1871

Open
wants to merge 174 commits into
base: sapmachine
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
174 commits
Select commit Hold shift + click to select a range
e7d90b9
8343460: ZGC: Crash in ZRemembered::scan_page_and_clear_remset
xmas92 Nov 14, 2024
1e97c1c
8335989: Implement JEP 494: Module Import Declarations (Second Preview)
lahodaj Nov 14, 2024
23a8c71
8341790: Fix ExceptionOccurred in java.desktop
Nov 14, 2024
c977ef7
8342047: Create Template Assertion Predicates with Halt nodes only in…
chhagedorn Nov 14, 2024
abacece
8344011: Remove usage of security manager from Class and reflective APIs
Nov 14, 2024
b54bd82
8344025: Remove unused ISO2022.Encoder.maximumDesignatorLength
Nov 14, 2024
c3776db
8342936: Enhance java.io.IO with parameter-less println() and readln()
lahodaj Nov 14, 2024
bd6152f
8343855: HTTP/2 ConnectionWindowUpdateSender may miss some unprocesse…
dfuch Nov 14, 2024
a8152bd
8343941: IGV: dump graph at different register allocation steps
robcasloz Nov 14, 2024
2b57f40
8343426: ConcurrentSkipListMap.spliterator() can no longer split the …
kabutz Nov 14, 2024
8523880
8342693: Use byte[] as parameter in a FDBigInteger constructor and as…
rgiulietti Nov 14, 2024
81342ac
8343752: The javadoc should contain a note about usages of requires t…
lahodaj Nov 14, 2024
5731ab7
8335991: Implement Simple Source Files and Instance Main Methods (Fou…
lahodaj Nov 14, 2024
2145ace
8341094: Clean up relax_verify in ClassFileParser
coleenp Nov 14, 2024
8ccc48c
8344032: InterpreterRuntime::verify_mdp() missing lock while printing…
coleenp Nov 14, 2024
6757994
8343633: The ClassLoader::print_counters() prints to stdout when logg…
coleenp Nov 14, 2024
6e28cd3
8343488: Test VectorRebracket128Test.java can't exclude by test/hotsp…
Nov 14, 2024
a73226b
8297692: Avoid sending per-region GCPhaseParallel JFR events in G1Sca…
Nov 14, 2024
4d1a51c
8344120: Remove Security Manager dependencies from jdk.crypto.cryptok…
seanjmullan Nov 14, 2024
752e162
8343877: Test AsyncClose.java intermittent fails - Socket.getInputStr…
jaikiran Nov 14, 2024
68164a4
8343953: Test jdk/jfr/threading/TestDeepVirtualStackTrace.java fails …
lmesnik Nov 14, 2024
7e9dfa4
8343785: (fs) Remove syscalls that set file times with microsecond pr…
Nov 14, 2024
e12f514
8343781: Add since checker test to the Serviceability area modules
nizarbenalla Nov 14, 2024
002b985
8342963: TestLargeStub::testUpcall doesn't test upcalls stubs
JornVernee Nov 14, 2024
697f27c
8341964: Add mechanism to disable different parts of TLS cipher suite
Nov 14, 2024
4d4951a
8343889: Test runtime/cds/appcds/redefineClass/RedefineBasicTest.java…
calvinccheung Nov 14, 2024
681a57f
8343064: ClassFormatError: Illegal class name from InnerClassLambdaMe…
liach Nov 14, 2024
2cbce1f
8344071: Mark some jdk/jfr/event/oldobject test flagless until they f…
lmesnik Nov 14, 2024
ec148c1
8344063: Remove doPrivileged calls from swing classes in the java.des…
prrace Nov 14, 2024
d959c7d
8344147: Remove Security Manager dependencies from java.security.sasl…
seanjmullan Nov 14, 2024
7ef2633
8344128: Regression: make help broken after JDK-8340818
nizarbenalla Nov 14, 2024
db56266
8344250: Obsolete the DontYieldALot flag
Nov 14, 2024
9907065
8344065: Remove SecurityManager uses from the java.datatransfer module
prrace Nov 15, 2024
0ae5748
8343982: Remove usage of security manager from ClassLoader and relate…
Nov 15, 2024
2196694
8344104: TestMergeStores fails with ArrayIndexOutOfBoundException
eme64 Nov 15, 2024
857f68c
8344179: SecurityManager cleanup in the ZIP and JAR areas
Nov 15, 2024
bfee766
8344183: (zipfs) SecurityManager cleanup in the ZipFS area
Nov 15, 2024
0c191f6
8344185: Remove calls to SecurityManager in sun.net.ftp
Nov 15, 2024
5b9932f
8338288: Compiler Implementation for Flexible Constructor Bodies (Thi…
mcimadamore Nov 15, 2024
3eece6e
8341907: javac -Xlint should ignore /// on first line of source file
pavelrappo Nov 15, 2024
75c651f
8327156: Avoid copying in StringTable::intern(oop, TRAPS)
Nov 15, 2024
ba39321
8343881: java.lang.classfile.Attribute attributeName() method should…
asotona Nov 15, 2024
5e27608
8344188: Cleanup sun.net.www.protocol.jar.JarFileFactory after JEP 48…
Nov 15, 2024
3245f56
8344164: [s390x] ProblemList hotspot/jtreg/runtime/NMT/VirtualAllocCo…
offamitkumar Nov 15, 2024
a672138
8344161: Argument type mismatch for jfr_type_id
Nov 15, 2024
6cdebf0
8343599: Kmem limit and max values swapped when printing container in…
Nov 15, 2024
84ffb64
8334714: Implement JEP 484: Class-File API
asotona Nov 15, 2024
40a055e
8344228: Revisit SecurityManager usage in java.net.http after JEP 486…
dfuch Nov 15, 2024
3c38ed4
8344314: Revert removal of jdk.internal.java.PreviewFeature.CLASSFILE…
asotona Nov 15, 2024
0b9b82a
8343039: Remove jdk.internal.misc.InternalLock and usages from java.io
Nov 15, 2024
1866c0c
8344259: Annotate Float16 with jdk.internal.ValueBased
Nov 15, 2024
ff12ff5
8340453: C2: Improve encoding of LoadNKlass for compact headers
rkennke Nov 15, 2024
fc8fb34
8344214: Remove Security Manager dependencies from jdk.crypto.mscapi …
seanjmullan Nov 15, 2024
1bb0d3b
8344062: Remove doPrivileged calls from awt and beans classes in the …
prrace Nov 15, 2024
f62e05e
8344231: SecurityManager cleanup in java.lang.module and jdk.internal…
Nov 15, 2024
73fd891
8344216: Remove calls to SecurityManager and and doPrivileged in java…
Nov 15, 2024
f316808
8344189: Cleanup code in sun.net.www.protocol.mailto.MailToURLConnect…
Nov 15, 2024
59ffac8
8342811: java/net/httpclient/PlainProxyConnectionTest.java failed: Un…
vy Nov 15, 2024
c5b6ed8
8344252: SM cleanup in java.util classes
Nov 15, 2024
c388455
8344197: SM cleanup in java.util.concurrent
Nov 15, 2024
276251c
8342826: Improve performance of oopDesc::klass() after JDK-8305895
rkennke Nov 15, 2024
41a2d49
8331497: Implement JEP 483: Ahead-of-Time Class Loading & Linking
iklam Nov 15, 2024
2c509a1
8344326: Move jpackage tests from "jdk.jpackage.tests" package to the…
Nov 15, 2024
da40388
8344315: Clean up sun.net.www.protocol.jrt.JavaRuntimeURLConnection a…
jaikiran Nov 16, 2024
d2e4b51
8344186: Cleanup sun.net.www.MimeTable after JEP 486 integration
jaikiran Nov 16, 2024
a91d4c0
8344233: Remove calls to SecurityManager and doPrivileged in java.net…
jaikiran Nov 16, 2024
d0b770c
8344289: SM cleanup in jdk.internal.util
Nov 16, 2024
fec0d1c
8343777: Add since checker tests to Internationalisation modules
nizarbenalla Nov 16, 2024
aa10ec7
8343123: Nimbus: javax/swing/JInternalFrame/bug6726866.java does not …
prsadhuk Nov 17, 2024
41a627b
8343876: Enhancements to jpackage test lib
Nov 17, 2024
e1c4b49
8343237: Improve the copying of the available set of Currencies
Nov 18, 2024
80e37a9
8344265: RISC-V: Remove unused function get_previous_sp_entry
zifeihan Nov 18, 2024
a47d9ba
8344349: Problemlist jdk/jfr/jvm/TestVirtualThreadExclusion.java befo…
Nov 18, 2024
92b2631
8327652: S390x: Implements SLP support
Nov 18, 2024
543e355
8344298: Test tools/sincechecker/modules/jdk.hotspot.agent/JdkHotspot…
MBaesken Nov 18, 2024
b6c2122
8316151: [macos14] ActionListenerCalledTwiceTest.java fails on macOS 14
prsadhuk Nov 18, 2024
4a7ce1d
8344205: [PPC]: failing assertion: sharedRuntime_ppc.cpp:1652: cookie…
reinrich Nov 18, 2024
6c2ae44
8344204: IGV: Button to enable/disable cutting of long edges
tobiasholenstein Nov 18, 2024
475feb0
8344056: Use markdown format for man pages
magicus Nov 18, 2024
00ff6a3
8344105: Remove SecurityManager and related calls from jdk.attach and…
kevinjwalls Nov 18, 2024
b9c6ce9
8344122: IGV: Extend c2 IdealGraphPrinter to send subgraphs to IGV
tobiasholenstein Nov 18, 2024
ea8f289
8344271: Comparison build fails due to difference in doc summary
lahodaj Nov 18, 2024
5fc4322
8288298: Resolve multiline message parsing ambiguities in UL
aseoane-uu Nov 18, 2024
b8b70c8
8344379: [s390x] build failure due to missing change from JDK-8339466
offamitkumar Nov 18, 2024
5eb0733
8344383: Include ZipArchive and JarArchive directly
magicus Nov 18, 2024
dfddbca
8341916: Remove ProtectionDomain related hotspot code and tests
coleenp Nov 18, 2024
d52d136
8344221: Remove calls to SecurityManager and and doPrivileged in java…
dfuch Nov 18, 2024
9b0ab92
8344034: Remove security manager dependency in Serialization
Nov 18, 2024
162d66a
8318668: java/lang/management/MemoryMXBean/CollectionUsageThreshold.j…
Nov 18, 2024
2078329
8344134: Use static property in SystemLookup
minborg Nov 18, 2024
3e78ff1
8320743: AEAD ciphers throw undocumented exceptions on overflow
driverkt Nov 18, 2024
d76b5b8
8344253: Test java/util/Spliterator/SpliteratorTraversingAndSplitting…
Nov 18, 2024
c4e7dc7
8344389: 32-bit builds fail at CDS build time after JDK-8331497
shipilev Nov 18, 2024
c59adf6
8344330: Remove AccessController.doPrivileged() from jdk.charsets module
naotoj Nov 18, 2024
e9e4200
8343125: Correct the documentation for TreeMap's getFloorEntry and ge…
namannigam Nov 18, 2024
2649406
8344352: 32-bit builds crash after JDK-8305895
shipilev Nov 18, 2024
922b12f
8344078: Remove security manager dependency in java.nio
Nov 18, 2024
70eb95f
8344187: Remove SecurityManager and related calls from java.instrument
kevinjwalls Nov 18, 2024
92271af
8344058: Remove doPrivileged calls from macos platform sources in the…
Nov 18, 2024
de6e013
8344310: Remove Security Manager dependencies from javax.crypto and c…
seanjmullan Nov 18, 2024
f636674
8344247: Move objectWaiter field to VirtualThread instance
pchilano Nov 18, 2024
8d43e0d
8344331: SM cleanup in java.scripting
Nov 18, 2024
5cb0d43
8293040: Argfile documentation for java launcher tool is confusing re…
sormuras Nov 18, 2024
dd86369
8344262: Win32AttachOperationRequest objects are created by using glo…
Nov 19, 2024
3729884
8344371: RISC-V: compiler/intrinsics/chacha/TestChaCha20.java fails a…
RealFYang Nov 19, 2024
9e92a9e
8344059: Remove doPrivileged calls from windows platform sources in t…
prsadhuk Nov 19, 2024
d85dd77
8344365: SecurityManager cleanups in java.sql and java.sql.rowset mod…
Nov 19, 2024
b12c5b4
8344218: Remove calls to SecurityManager and and doPrivileged in java…
Nov 19, 2024
499186b
8343902: javax/swing/plaf/nimbus/8041642/bug8041642.java fails in ubu…
prsadhuk Nov 19, 2024
76a55c3
8341334: CDS: Parallel relocation
shipilev Nov 19, 2024
8bd080b
8341901: Using 'var' keyword switch pattern matching causes compiler …
lahodaj Nov 19, 2024
9d60300
8344199: Incorrect excluded field value set by getEventWriter intrinsic
TobiHartmann Nov 19, 2024
7540fa2
8343884: [s390x] Disallow OptoScheduling
offamitkumar Nov 19, 2024
0d66689
8344393: RISC-V: Remove option UseRVVForBigIntegerShiftIntrinsics
RealFYang Nov 19, 2024
2359736
8344534: Remove leftover import of java.security.AccessControlContext…
Nov 19, 2024
cc8bd63
8344036: Tests tools/jlink/runtimeImage fail on AIX after JDK-8311302
MBaesken Nov 19, 2024
41436bb
8336087: Doccheck: the jpackage command page doesn't show the correct…
Nov 19, 2024
0714114
8344322: Improve capabilities of jpackage test lib to validate error …
Nov 19, 2024
a28e4d8
8342299: Document that jpackage includes (possibly old) VC Redistribu…
Nov 19, 2024
fea5f2b
8344415: Restruct jpackage utility classes
Nov 19, 2024
1717946
8344302: G1: Refactor G1CMTask::do_marking_step to use smaller wrapp…
Nov 19, 2024
59fcfae
8343129: Disable unstable check of ThreadsListHandle.sanity_vm Thread…
Nov 19, 2024
ded01e4
8344327: SM cleanup in jdk.unsupported ReflectionFactory
Nov 19, 2024
dc940ec
8344387: RISC-V: C2: Improve encoding of LoadNKlass for compact headers
Nov 19, 2024
d4cd27e
8344445: MethodCounters don't need a vptr
coleenp Nov 19, 2024
48223f7
8344143: Test jdk/java/lang/Thread/virtual/stress/GetStackTraceALotWh…
Nov 19, 2024
7f672eb
8344550: Compilation error of jpackage test JPackageStringBundle.java…
Nov 19, 2024
78602be
8344024: Unnecessary Hashtable usage in RSAPSSSignature.DIGEST_LENGTHS
Nov 19, 2024
47ebf8d
8342098: Write a test to compare the images
Nov 19, 2024
02ec8ca
8342508: Use latch in BasicMenuUI/bug4983388.java instead of delay
aivanov-jdk Nov 19, 2024
087a07b
8343479: Remove unnecessary @SuppressWarnings annotations (hotspot)
archiecobbs Nov 19, 2024
bb7a840
8342541: Exclude List/KeyEventsTest/KeyEventsTest.java from running o…
Renjithkannath Nov 19, 2024
93e889b
8342449: reimplement: JDK-8327114 Attach in Linux may have wrong beha…
larry-cable Nov 19, 2024
0b1f571
8253440: serviceability/sa/TestJhsdbJstackLineNumbers.java failed wit…
plummercj Nov 19, 2024
6a5256e
8344149: Remove usage of Security Manager from java.rmi
Nov 19, 2024
3328b4e
8343700: ceil_log2 should not loop endlessly
Nov 19, 2024
69c9f25
8344061: Remove doPrivileged calls from shared implementation code in…
prrace Nov 19, 2024
cd45ba3
8342041: Test gc/shenandoah/oom/TestClassLoaderLeak.java slow on Wind…
Nov 19, 2024
aac1f9a
8341793: Fix ExceptionOccurred in jdk.accessibility
Nov 19, 2024
f6f73ce
8344446: Remove security manager dependency from module jdk.sctp
Nov 19, 2024
81e4311
8344077: Remove security manager dependency in java.io
Nov 19, 2024
acdbf83
8341553: Remove UseCompactObjectHeaders extra CDS archives
calvinccheung Nov 19, 2024
f525290
8341935: javac states that -proc:full is the default but the default …
jddarcy Nov 20, 2024
bc7eabd
8344350: Add '.gdbinit' and '.lldbinit' to file '.gitignore'
lgxbslgx Nov 20, 2024
4ddd3de
8344356: Aarch64: implement -XX:+VerifyActivationFrameSize
Nov 20, 2024
8a1f9f0
8343476: Remove unnecessary @SuppressWarnings annotations (client)
archiecobbs Nov 20, 2024
189fc8d
8344381: [s390x] Test failures with error: Register type is not known
offamitkumar Nov 20, 2024
587f2b4
8343827: RISC-V: set AlignVector as false if applicable to enable SLP
Nov 20, 2024
5b12a87
8344060: Remove doPrivileged calls from shared implementation code in…
prsadhuk Nov 20, 2024
cf158bc
8341631: JShell should auto-import java.io.IO.*
lahodaj Nov 20, 2024
3a4a9b7
8340145: Problem with generic pattern matching results in internal co…
biboudis Nov 20, 2024
afee740
8343541: C1: Plain memory accesses are emitted with membars with +Alw…
Nov 20, 2024
e2f8f1a
8344621: ProblemList runtime/CommandLine/OptionsValidation/TestOption…
Nov 20, 2024
ea7e722
8344010: RISC-V: Zacas do not work with LW locking
robehn Nov 20, 2024
21b8749
8344479: Declare MetaspaceObj::operator delete to be deleted
coleenp Nov 20, 2024
7bb4474
8344579: Clean up forward declarations and includes
coleenp Nov 20, 2024
6f4dfa6
8344190: Cleanup code in sun.net.www.protocol.http and sun.net.www.pr…
jaikiran Nov 20, 2024
db7ee3d
8344223: Remove calls to SecurityManager and doPrivileged in java.net…
jaikiran Nov 20, 2024
4bc826a
8342785: XWindowPeer::getNewLocation() adheres to ICCCM 4.1.5 only wi…
zzag Nov 20, 2024
21f0ed5
8344215: Remove calls to SecurityManager and doPrivileged in java.net…
vy Nov 20, 2024
e11d126
8333796: Add missing serialization functionality to sun.reflect.Refle…
dmlloyd Nov 20, 2024
75420e9
8334431: C2 SuperWord: fix performance regression due to store-to-loa…
eme64 Nov 20, 2024
7d4c3fd
8331295: C2: Do not clone address computations that are indirect memo…
Nov 20, 2024
9be8ac6
8344239: runtime/cds/appcds/jigsaw/addmods/AddmodsOption.java fails o…
calvinccheung Nov 20, 2024
c4c6b1f
8344562: Remove security manager dependency from module jdk.jdi
Nov 20, 2024
080f1cc
8289771: jpackage: ResourceEditor error when path is overly long on W…
Nov 20, 2024
27fda0e
8344578: Clean up left over java.security and sun.security imports in…
prrace Nov 20, 2024
22a39dc
8344064: Remove doPrivileged calls from print/imageio/media classes i…
prrace Nov 20, 2024
da2d7a0
8344595: State transitions in internal VirtualThread comment needs to…
kabutz Nov 20, 2024
b9bf447
8344057: Remove doPrivileged calls from unix platform sources in the …
Nov 20, 2024
a599c30
8344471: Remove SecurityManager related code from java.compiler module
jaikiran Nov 21, 2024
400eb9b
8344524: Remove SecurityManager related code from jdk.jlink module
jaikiran Nov 21, 2024
1343911
8340334: Update jcmd VM.events max parameter to be INT
lmesnik Nov 21, 2024
4fbf272
8344526: RISC-V: implement -XX:+VerifyActivationFrameSize
Nov 21, 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: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ NashornProfile.txt
/.settings/
/compile_commands.json
/.cache
/.gdbinit
/.lldbinit
2 changes: 1 addition & 1 deletion make/Global.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ help:
$(info $(_) # method is 'auto', 'ignore' or 'fail' (default))
$(info $(_) TEST="test1 ..." # Use the given test descriptor(s) for testing, e.g.)
$(info $(_) # make test TEST="jdk_lang gtest:all")
$(info $(_) TEST_DEPS="dependency1 ..." # Specify additional dependencies for running tests, e.g docs-jdk
$(info $(_) TEST_DEPS="dependency1 ..." # Specify additional dependencies for running tests, e.g docs-jdk)
$(info $(_) JTREG="OPT1=x;OPT2=y" # Control the JTREG test harness, use 'make test-only JTREG=help' to list)
$(info $(_) GTEST="OPT1=x;OPT2=y" # Control the GTEST test harness, use 'make test-only GTEST=help' to list)
$(info $(_) MICRO="OPT1=x;OPT2=y" # Control the MICRO test harness, use 'make test-only MICRO=help' to list)
Expand Down
72 changes: 69 additions & 3 deletions make/RunTests.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ifneq ($(TEST_VM_OPTS), )
endif

$(eval $(call ParseKeywordVariable, TEST_OPTS, \
SINGLE_KEYWORDS := JOBS TIMEOUT_FACTOR JCOV JCOV_DIFF_CHANGESET, \
SINGLE_KEYWORDS := JOBS TIMEOUT_FACTOR JCOV JCOV_DIFF_CHANGESET AOT_JDK, \
STRING_KEYWORDS := VM_OPTIONS JAVA_OPTIONS, \
))

Expand Down Expand Up @@ -202,11 +202,12 @@ $(eval $(call SetTestOpt,JOBS,JTREG))
$(eval $(call SetTestOpt,TIMEOUT_FACTOR,JTREG))
$(eval $(call SetTestOpt,FAILURE_HANDLER_TIMEOUT,JTREG))
$(eval $(call SetTestOpt,REPORT,JTREG))
$(eval $(call SetTestOpt,AOT_JDK,JTREG))

$(eval $(call ParseKeywordVariable, JTREG, \
SINGLE_KEYWORDS := JOBS TIMEOUT_FACTOR FAILURE_HANDLER_TIMEOUT \
TEST_MODE ASSERT VERBOSE RETAIN TEST_THREAD_FACTORY MAX_MEM RUN_PROBLEM_LISTS \
RETRY_COUNT REPEAT_COUNT MAX_OUTPUT REPORT $(CUSTOM_JTREG_SINGLE_KEYWORDS), \
RETRY_COUNT REPEAT_COUNT MAX_OUTPUT REPORT AOT_JDK $(CUSTOM_JTREG_SINGLE_KEYWORDS), \
STRING_KEYWORDS := OPTIONS JAVA_OPTIONS VM_OPTIONS KEYWORDS \
EXTRA_PROBLEM_LISTS LAUNCHER_OPTIONS \
$(CUSTOM_JTREG_STRING_KEYWORDS), \
Expand Down Expand Up @@ -702,6 +703,58 @@ define SetJtregValue
endif
endef


# Parameter 1 is the name of the rule.
#
# Remaining parameters are named arguments.
# VM_OPTIONS List of JVM arguments to use when creating AOT cache
#
# After calling this, the following variables are defined
# $1_AOT_TARGETS List of all targets that the test rule will need to depend on
# $1_AOT_JDK_CACHE The AOT cache file to be used to run the test with
#
SetupAot = $(NamedParamsMacroTemplate)
define SetupAotBody
$1_AOT_JDK_CONF := $$($1_TEST_SUPPORT_DIR)/aot/jdk.aotconf
$1_AOT_JDK_CACHE := $$($1_TEST_SUPPORT_DIR)/aot/jdk.aotcache

$1_JAVA_TOOL_OPTS := $$(addprefix -J, $$($1_VM_OPTIONS))

$$($1_AOT_JDK_CACHE): $$(JDK_IMAGE_DIR)/release
$$(call MakeDir, $$($1_TEST_SUPPORT_DIR)/aot)

$(foreach jtool, javac javap jlink jar, \
$(info AOT: Create cache configuration for $(jtool)) \
$$(call ExecuteWithLog, $$($1_TEST_SUPPORT_DIR)/aot.$(jtool), ( \
$$(FIXPATH) $(JDK_UNDER_TEST)/bin/$(jtool) $$($1_JAVA_TOOL_OPTS) \
-J-XX:AOTMode=record -J-XX:AOTConfiguration=$$($1_AOT_JDK_CONF).$(jtool) --help \
))
)

$$(info AOT: Copy $(JDK_UNDER_TEST)/lib/classlist to $$($1_AOT_JDK_CONF).jdk )
$$(call ExecuteWithLog, $$($1_TEST_SUPPORT_DIR)/aot, ( \
$$(FIXPATH) $(CP) $(JDK_UNDER_TEST)/lib/classlist $$($1_AOT_JDK_CONF).jdk \
))

$$(FIXPATH) $$(CAT) $$($1_AOT_JDK_CONF).* > $$($1_AOT_JDK_CONF).temp
$$(FIXPATH) $$(CAT) $$($1_AOT_JDK_CONF).temp | $(GREP) -v '#' | $(GREP) -v '@' | $(SORT) | \
$(SED) -e 's/id:.*//g' | uniq \
> $$($1_AOT_JDK_CONF)
$$(FIXPATH) $$(CAT) $$($1_AOT_JDK_CONF).temp | $(GREP) '@cp' | $(SORT) \
>> $$($1_AOT_JDK_CONF)

$$(info AOT: Generate AOT cache $$($1_AOT_JDK_CACHE) with flags: $$($1_VM_OPTIONS))
$$(call ExecuteWithLog, $$($1_TEST_SUPPORT_DIR)/aot, ( \
$$(FIXPATH) $(JDK_UNDER_TEST)/bin/java \
$$($1_VM_OPTIONS) -Xlog:cds,cds+class=debug:file=$$($1_AOT_JDK_CACHE).log \
-XX:AOTMode=create -XX:AOTConfiguration=$$($1_AOT_JDK_CONF) -XX:AOTCache=$$($1_AOT_JDK_CACHE) \
))

$1_AOT_TARGETS += $$($1_AOT_JDK_CACHE)

endef


SetupRunJtregTest = $(NamedParamsMacroTemplate)
define SetupRunJtregTestBody
$1_TEST_RESULTS_DIR := $$(TEST_RESULTS_DIR)/$1
Expand Down Expand Up @@ -762,6 +815,7 @@ define SetupRunJtregTestBody
JTREG_RETRY_COUNT ?= 0
JTREG_REPEAT_COUNT ?= 0
JTREG_REPORT ?= files
JTREG_AOT_JDK ?= false

ifneq ($$(JTREG_RETRY_COUNT), 0)
ifneq ($$(JTREG_REPEAT_COUNT), 0)
Expand Down Expand Up @@ -891,6 +945,17 @@ define SetupRunJtregTestBody
endif
endif

ifeq ($$(JTREG_AOT_JDK), true)
$$(info Add AOT target for $1)
$$(eval $$(call SetupAot, $1, VM_OPTIONS := $$(JTREG_ALL_OPTIONS) ))

$$(info AOT_TARGETS=$$($1_AOT_TARGETS))
$$(info AOT_JDK_CACHE=$$($1_AOT_JDK_CACHE))

$1_JTREG_BASIC_OPTIONS += -vmoption:-XX:AOTCache="$$($1_AOT_JDK_CACHE)"
endif


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

# SetupRunJtregTestCustom might also adjust JTREG_AUTO_ variables
Expand All @@ -906,6 +971,7 @@ define SetupRunJtregTestBody
JTREG_TIMEOUT_FACTOR ?= $$(JTREG_AUTO_TIMEOUT_FACTOR)

clean-outputdirs-$1:
$$(call LogWarn, Clean up dirs for $1)
$$(RM) -r $$($1_TEST_SUPPORT_DIR)
$$(RM) -r $$($1_TEST_RESULTS_DIR)

Expand Down Expand Up @@ -953,7 +1019,7 @@ define SetupRunJtregTestBody
done
endif

run-test-$1: pre-run-test clean-outputdirs-$1
run-test-$1: clean-outputdirs-$1 pre-run-test $$($1_AOT_TARGETS)
$$(call LogWarn)
$$(call LogWarn, Running test '$$($1_TEST)')
$$(call MakeDir, $$($1_TEST_RESULTS_DIR) $$($1_TEST_SUPPORT_DIR) \
Expand Down
4 changes: 2 additions & 2 deletions make/ZipSecurity.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 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 @@ -27,7 +27,7 @@ default: all

include $(SPEC)
include MakeBase.gmk
include JavaCompilation.gmk
include ZipArchive.gmk

################################################################################
#
Expand Down
4 changes: 2 additions & 2 deletions make/ZipSource.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 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 @@ -27,8 +27,8 @@ default: all

include $(SPEC)
include MakeBase.gmk
include JavaCompilation.gmk
include Modules.gmk
include ZipArchive.gmk

SRC_ZIP_WORK_DIR := $(SUPPORT_OUTPUTDIR)/src
$(if $(filter $(TOPDIR)/%, $(SUPPORT_OUTPUTDIR)), $(eval SRC_ZIP_BASE := $(TOPDIR)), $(eval SRC_ZIP_BASE := $(SUPPORT_OUTPUTDIR)))
Expand Down
10 changes: 0 additions & 10 deletions make/common/modules/LauncherCommon.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,8 @@ ifeq ($(call isTargetOsType, unix)+$(MAKEFILE_PREFIX), true+Launcher)
# We assume all our man pages should reside in section 1.

MAN_FILES_MD := $(wildcard $(addsuffix /*.md, $(call FindModuleManDirs, $(MODULE))))
MAN_FILES_TROFF := $(wildcard $(addsuffix /*.1, $(call FindModuleManDirs, $(MODULE))))

ifneq ($(MAN_FILES_MD), )
# If we got markdown files, ignore the troff files
ifeq ($(ENABLE_PANDOC), false)
$(info Warning: pandoc not found. Not generating man pages)
else
Expand Down Expand Up @@ -226,13 +224,5 @@ ifeq ($(call isTargetOsType, unix)+$(MAKEFILE_PREFIX), true+Launcher)

TARGETS += $(BUILD_MAN_PAGES)
endif
else
# No markdown man pages present
$(eval $(call SetupCopyFiles, COPY_MAN_PAGES, \
DEST := $(SUPPORT_OUTPUTDIR)/modules_man/$(MODULE)/man1, \
FILES := $(MAN_FILES_TROFF), \
))

TARGETS += $(COPY_MAN_PAGES)
endif
endif
1 change: 1 addition & 0 deletions make/conf/jib-profiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ var getJibProfilesCommon = function (input, data) {
configure_args: concat(
"--with-exclude-translations=es,fr,it,ko,pt_BR,sv,ca,tr,cs,sk,ja_JP_A,ja_JP_HA,ja_JP_HI,ja_JP_I,zh_TW,zh_HK",
"--disable-jvm-feature-shenandoahgc",
"--disable-cds-archive-coh",
versionArgs(input, common))
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1896,6 +1896,11 @@ private void finishClassLoading(ClassList classes, Map<String, ModuleDescription
continue;
}

if (ed.packageName.equals("jdk/internal/javac")) {
//keep jdk/internal/javac untouched. It is used to determine participates in preview:
continue;
}

Set<String> usingModules = package2ModulesUsingIt.getOrDefault(ed.packageName(), Set.of());

ed.to.retainAll(usingModules);
Expand Down
1 change: 1 addition & 0 deletions make/test/BuildMicrobenchmark.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ include $(SPEC)
include MakeBase.gmk

include CopyFiles.gmk
include JarArchive.gmk
include JavaCompilation.gmk
include TestFilesCompilation.gmk

Expand Down
3 changes: 1 addition & 2 deletions src/demo/share/jfc/SampleTree/SampleTree.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down Expand Up @@ -142,7 +142,6 @@ public SampleTree() {

/** Constructs a JPanel containing check boxes for the different
* options that tree supports. */
@SuppressWarnings("serial")
private JPanel constructOptionsPanel() {
JCheckBox aCheckbox;
JPanel retPanel = new JPanel(false);
Expand Down
3 changes: 1 addition & 2 deletions src/demo/share/jfc/TableExample/TableExample3.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down Expand Up @@ -97,7 +97,6 @@ public void windowClosing(WindowEvent e) {
};

// Create a model of the data.
@SuppressWarnings("serial")
TableModel dataModel = new AbstractTableModel() {
// These methods always need to be implemented.

Expand Down
4 changes: 1 addition & 3 deletions src/demo/share/jfc/TableExample/TableExample4.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down Expand Up @@ -99,7 +99,6 @@ public void windowClosing(WindowEvent e) {
};

// Create a model of the data.
@SuppressWarnings("serial")
TableModel dataModel = new AbstractTableModel() {
// These methods always need to be implemented.

Expand Down Expand Up @@ -180,7 +179,6 @@ public void setValueAt(Object aValue, int row, int column) {

// Show the values in the "Favorite Number" column in different colors.
TableColumn numbersColumn = tableView.getColumn("Favorite Number");
@SuppressWarnings("serial")
DefaultTableCellRenderer numberColumnRenderer
= new DefaultTableCellRenderer() {

Expand Down
34 changes: 26 additions & 8 deletions src/hotspot/cpu/aarch64/aarch64.ad
Original file line number Diff line number Diff line change
Expand Up @@ -2632,6 +2632,23 @@ bool Matcher::pd_clone_node(Node* n, Node* m, Matcher::MStack& mstack) {
// to be subsumed into complex addressing expressions or compute them
// into registers?
bool Matcher::pd_clone_address_expressions(AddPNode* m, Matcher::MStack& mstack, VectorSet& address_visited) {

// Loads and stores with indirect memory input (e.g., volatile loads and
// stores) do not subsume the input into complex addressing expressions. If
// the addressing expression is input to at least one such load or store, do
// not clone the addressing expression. Query needs_acquiring_load and
// needs_releasing_store as a proxy for indirect memory input, as it is not
// possible to directly query for indirect memory input at this stage.
for (DUIterator_Fast imax, i = m->fast_outs(imax); i < imax; i++) {
Node* n = m->fast_out(i);
if (n->is_Load() && needs_acquiring_load(n)) {
return false;
}
if (n->is_Store() && needs_releasing_store(n)) {
return false;
}
}

if (clone_base_plus_offset_address(m, mstack, address_visited)) {
return true;
}
Expand Down Expand Up @@ -5755,10 +5772,6 @@ opclass memory(indirect, indIndexScaled, indIndexScaledI2L, indIndexI2L, indInde
indirectN, indIndexScaledN, indIndexScaledI2LN, indIndexI2LN, indIndexN, indOffIN, indOffLN, indirectX2P, indOffX2P);


opclass memory_noindex(indirect,
indOffI1, indOffL1,indOffI2, indOffL2, indOffI4, indOffL4, indOffI8, indOffL8,
indirectN, indOffIN, indOffLN, indirectX2P, indOffX2P);

// iRegIorL2I is used for src inputs in rules for 32 bit int (I)
// operations. it allows the src to be either an iRegI or a (ConvL2I
// iRegL). in the latter case the l2i normally planted for a ConvL2I
Expand Down Expand Up @@ -6695,16 +6708,21 @@ instruct loadNKlass(iRegNNoSp dst, memory4 mem)
ins_pipe(iload_reg_mem);
%}

instruct loadNKlassCompactHeaders(iRegNNoSp dst, memory_noindex mem)
instruct loadNKlassCompactHeaders(iRegNNoSp dst, memory4 mem)
%{
match(Set dst (LoadNKlass mem));
predicate(!needs_acquiring_load(n) && UseCompactObjectHeaders);

ins_cost(4 * INSN_COST);
format %{ "load_narrow_klass_compact $dst, $mem\t# compressed class ptr" %}
format %{
"ldrw $dst, $mem\t# compressed class ptr, shifted\n\t"
"lsrw $dst, $dst, markWord::klass_shift_at_offset"
%}
ins_encode %{
assert($mem$$index$$Register == noreg, "must not have indexed address");
__ load_narrow_klass_compact_c2($dst$$Register, $mem$$base$$Register, $mem$$disp);
// inlined aarch64_enc_ldrw
loadStore(masm, &MacroAssembler::ldrw, $dst$$Register, $mem->opcode(),
as_Register($mem$$base), $mem$$index, $mem$$scale, $mem$$disp, 4);
__ lsrw($dst$$Register, $dst$$Register, markWord::klass_shift_at_offset);
%}
ins_pipe(iload_reg_mem);
%}
Expand Down
9 changes: 0 additions & 9 deletions src/hotspot/cpu/aarch64/c2_MacroAssembler_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2690,12 +2690,3 @@ bool C2_MacroAssembler::in_scratch_emit_size() {
}
return MacroAssembler::in_scratch_emit_size();
}

void C2_MacroAssembler::load_narrow_klass_compact_c2(Register dst, Register obj, int disp) {
// Note: Don't clobber obj anywhere in that method!

// The incoming address is pointing into obj-start + klass_offset_in_bytes. We need to extract
// obj-start, so that we can load from the object's mark-word instead.
ldr(dst, Address(obj, disp - oopDesc::klass_offset_in_bytes()));
lsr(dst, dst, markWord::klass_shift);
}
2 changes: 0 additions & 2 deletions src/hotspot/cpu/aarch64/c2_MacroAssembler_aarch64.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,4 @@
void vector_signum_sve(FloatRegister dst, FloatRegister src, FloatRegister zero,
FloatRegister one, FloatRegister vtmp, PRegister pgtmp, SIMD_RegVariant T);

void load_narrow_klass_compact_c2(Register dst, Register obj, int disp);

#endif // CPU_AARCH64_C2_MACROASSEMBLER_AARCH64_HPP
1 change: 1 addition & 0 deletions src/hotspot/cpu/aarch64/c2_globals_aarch64.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ define_pd_global(bool, OptoScheduling, false);
define_pd_global(bool, OptoBundling, false);
define_pd_global(bool, OptoRegScheduling, false);
define_pd_global(bool, SuperWordLoopUnrollAnalysis, true);
define_pd_global(uint, SuperWordStoreToLoadForwardingFailureDetection, 8);
define_pd_global(bool, IdealizeClearArrayNode, true);

define_pd_global(intx, ReservedCodeCacheSize, 48*M);
Expand Down
8 changes: 7 additions & 1 deletion src/hotspot/cpu/aarch64/interp_masm_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,13 @@ void InterpreterMacroAssembler::dispatch_base(TosState state,
bool verifyoop,
bool generate_poll) {
if (VerifyActivationFrameSize) {
Unimplemented();
Label L;
sub(rscratch2, rfp, esp);
int min_frame_size = (frame::link_offset - frame::interpreter_frame_initial_sp_offset) * wordSize;
subs(rscratch2, rscratch2, min_frame_size);
br(Assembler::GE, L);
stop("broken stack frame");
bind(L);
}
if (verifyoop) {
interp_verify_oop(r0, state);
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/cpu/arm/c2_globals_arm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ define_pd_global(bool, OptoBundling, false);
define_pd_global(bool, OptoScheduling, true);
define_pd_global(bool, OptoRegScheduling, false);
define_pd_global(bool, SuperWordLoopUnrollAnalysis, false);
define_pd_global(uint, SuperWordStoreToLoadForwardingFailureDetection, 16);
define_pd_global(bool, IdealizeClearArrayNode, true);

#ifdef _LP64
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/cpu/ppc/c2_globals_ppc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ define_pd_global(bool, UseCISCSpill, false);
define_pd_global(bool, OptoBundling, false);
define_pd_global(bool, OptoRegScheduling, false);
define_pd_global(bool, SuperWordLoopUnrollAnalysis, true);
define_pd_global(uint, SuperWordStoreToLoadForwardingFailureDetection, 16);
// GL:
// Detected a problem with unscaled compressed oops and
// narrow_oop_use_complex_address() == false.
Expand Down
Loading
Loading