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 #446

Closed
wants to merge 572 commits into from
Closed

Merge jdk #446

Changes from all commits
Commits
Show all changes
572 commits
Select commit Hold shift + click to select a range
24bf35f
8265367: [macos-aarch64] 3 java/net/httpclient/websocket tests fail w…
dfuch May 28, 2021
0c0ff7f
8265309: com/sun/jndi/dns/ConfigTests/Timeout.java fails with "Addres…
AlekseiEfimov May 28, 2021
591b0c3
8264624: change the guarantee() calls added by JDK-8264123 to assert(…
May 28, 2021
964bac9
8267706: bin/idea.sh tries to use cygpath on WSL
YaaZ May 28, 2021
6627432
8267953: restore 'volatile' to ObjectMonitor::_owner field
May 29, 2021
9031477
8267945: ZGC: Revert NUMA changes (JDK-8266217 and JDK-8241354) after…
DamonFool May 30, 2021
1ab2776
8247608: Javadoc: CSS margin is not applied consistently
hns May 31, 2021
236bd89
8263583: Emoji rendering on macOS
May 31, 2021
1e29005
8267842: SIGSEGV in get_current_contended_monitor
TheRealMDoerr May 31, 2021
35916ed
8267806: C1: Relax inlining checks for not yet initialized classes
May 31, 2021
ab5a7ff
8267587: Update java.util to use enhanced switch
May 31, 2021
64f0f68
8267464: Circular-dependency resilient inline headers
stefank May 31, 2021
2c8e94f
8247403: JShell: No custom input (e.g. from GUI) possible with JavaSh…
May 31, 2021
7ab6b40
8267375: Aarch64: JVM crashes with option -XX:PrintIdealGraphLevel=3 …
May 31, 2021
bd31653
8267938: (sctp) SCTP channel factory methods should check platform su…
ChrisHegarty May 31, 2021
4ade125
8267934: remove dead code in CLD
May 31, 2021
ce44cd6
8267845: Add @requires to avoid running G1 large pages test with wron…
kstefanj May 31, 2021
5df25dc
8266807: Windows os_windows-gtest broken for UseLargePages
kstefanj May 31, 2021
382e7ec
8246351: <code> elements in headings are of incorrect size
hns May 31, 2021
c06db45
8267921: Remove redundant loop from sun.reflect.misc.ReflectUtil.priv…
stsypanov May 31, 2021
ae2f37f
8267616: AArch64: Fix AES assertion messages in stubGenerator_aarch64…
Jun 1, 2021
f5634fe
8267979: C2: Fix verification code in SubTypeCheckNode::Ideal()
Jun 1, 2021
4eb2168
8267670: Update java.io, java.math, and java.text to use switch expre…
pconcannon Jun 1, 2021
6149b9a
8267914: Remove DeferredObjectToKlass workaround
stefank Jun 1, 2021
229a6e2
8267095: Miscellaneous cleanups in vm.runtime.defmeth tests
Jun 1, 2021
ffd28c4
8267947: CI: Preserve consistency between has_subklass() and is_subcl…
Jun 1, 2021
1c7c0e1
8267937: Wrong indentation in G1 gc+phases log for free cset subphases
Jun 1, 2021
68f3b3a
8267807: C2: Downcast receiver to target holder during inlining
Jun 1, 2021
20479c3
8065760: CHA: Improve abstract method support
Jun 1, 2021
74b70a5
8036580: CHA: improve default method support
Jun 1, 2021
36dc268
8268036: ProblemList gtest/AsyncLogGtest.java
Jun 1, 2021
9d8ad2e
8267990: Revisit some uses of `synchronized` in the HttpClient API
dfuch Jun 1, 2021
d4b4cae
8268023: Improve diagnostic for HandshakeFailureTest
dfuch Jun 1, 2021
64ba2f0
8265431: Add -fno-delete-null-pointer-checks to clang builds
mkartashev Jun 1, 2021
2b33835
8265148: StackWatermarkSet being updated during AsyncGetCallTrace
lmesnik Jun 1, 2021
b17b11e
8267562: G1: Missing BOT in Open Archive regions causes long pauses
Jun 1, 2021
40e4171
8264800: cleanup Threads_lock comments in JVM/TI function headers
Jun 1, 2021
ccfcd92
8180571: Refactor sun/security/pkcs11 shell tests to plain java tests…
Jun 1, 2021
c2c0208
8267089: Use typedef KVHashtable for ID2KlassTable
Jun 1, 2021
0ae4ceb
8244146: javac changes for JEP 306
jddarcy Jun 1, 2021
8624cb5
8266530: HotSpot changes for JEP 306
jddarcy Jun 1, 2021
cb7128b
8266950: Remove vestigial support for non-strict floating-point execu…
Jun 1, 2021
00c7aee
8267861: Update SourceVersion with new language features in 16 and 17
jddarcy Jun 2, 2021
379376f
8265130: Make ConstantDesc class hierarchy sealed
Jun 2, 2021
b98e52a
8267570: The comment of the class JavacParser is not appropriate
lgxbslgx Jun 2, 2021
7530c00
8266559: XPathEvaluationResult.XPathResultType.NODESET maps to incorr…
JoeWang-Java Jun 2, 2021
1cea6ca
8260360: IGV: Short name of combined nodes is hidden by background color
jyukutyo Jun 2, 2021
496fb90
8267969: Add vectorized implementation for VectorMask.eq()
Jun 2, 2021
d47a77d
8267773: PhaseStringOpts::int_stringSize doesn't handle min_jint corr…
Jun 2, 2021
bba3728
8267726: ZGC: array_copy_requires_gc_barriers too strict
Jun 2, 2021
2d494bf
8267836: Separate eager reclaim remembered set threshold from G1RSetS…
Jun 2, 2021
9247630
8265270: Type.getEnclosingType() may fail with CompletionFailure
Jun 2, 2021
de6472c
8267459: Pasting Unicode characters into JShell does not work.
Jun 2, 2021
71425dd
8267118: OutOfMemoryError cannot be caught as a Throwable
Jun 2, 2021
a223189
8264774: Implementation of Foreign Function and Memory API (Incubator)
mcimadamore Jun 2, 2021
19450b9
8266281: Assign Symbols to the package selector expression
Jun 2, 2021
6765f90
8266459: Implement JEP 411: Deprecate the Security Manager for Removal
wangweij Jun 2, 2021
2963c9e
8268103: JNI functions incorrectly return a double after JDK-8265836
jerboaa Jun 2, 2021
dc19bac
8268094: Some vmTestbase/nsk tests fail after ACC_STRICT/strictfp cha…
Jun 2, 2021
4767758
8267920: Create separate Events buffer for VMOperations
stefank Jun 2, 2021
40d23a0
8267543: Post JEP 411 refactoring: security
wangweij Jun 2, 2021
508cec7
8267521: Post JEP 411 refactoring: maximum covering > 50K
wangweij Jun 2, 2021
56b65e4
8267569: java.io.File.equals contains misleading Javadoc
Jun 2, 2021
e1462e7
8267176: StandardDoclet should provide access to Reporter and Locale
jonathan-gibbons Jun 2, 2021
b7ac705
8263642: javac emits duplicate checkcast for first bound of intersect…
lgxbslgx Jun 2, 2021
1ae934e
8263332: JFR: Dump recording from a recording stream
egahlin Jun 2, 2021
ecf6112
8267958: [TESTBUG] cds DynamicLoaderConstraintsTest.java timed out
iklam Jun 2, 2021
a8835b9
8267879: ClassLoaderMetaspace destructor asserts on !_frozen
iklam Jun 2, 2021
375f8f3
8268138: docs build error after JDK-8263332 integration
egahlin Jun 2, 2021
3482cb8
8266254: Update to use jtreg 6
jonathan-gibbons Jun 2, 2021
136badb
8248268: Support KWP in addition to KW
Jun 2, 2021
76fdf2c
8268146: fix for JDK-8266254 fails validate-source
Jun 2, 2021
d46a2c8
8268147: need to update reference to testng module for jtreg6
jonathan-gibbons Jun 2, 2021
e9f3e32
8259530: Generated docs contain MIT/GPL-licenced works without reprod…
jonathan-gibbons Jun 2, 2021
ef01e47
8268150: tier2: test/jdk/tools/jpackage/junit/junit.java needs updati…
jonathan-gibbons Jun 3, 2021
06f87cf
8266337: ThreadTimesClosure doesn't handle exceptions properly
lmesnik Jun 3, 2021
bdeaeb4
8240256: Better resource cleaning for SunPKCS11 Provider
coffeys Jun 3, 2021
9bf347b
8226362: langtools ProblemList file contains more than 1 entry for a …
Jun 3, 2021
a52a08d
8267916: Adopt cast notation for CompilerThread conversions
albertnetymk Jun 3, 2021
1783437
8264975: java/net/DatagramSocket/DatagramSocketMulticasting.java fail…
dfuch Jun 3, 2021
1296a6c
8268119: Rename copy_os_cpu.inline.hpp files to copy_os_cpu.hpp
stefank Jun 3, 2021
c8f4c02
8268118: Rename bytes_os_cpu.inline.hpp files to bytes_os_cpu.hpp
stefank Jun 3, 2021
29ab162
8266257: Fix foreign linker build issues for ppc and s390
mcimadamore Jun 3, 2021
338dae4
8268133: Update java/net/Authenticator tests to eliminate dependency …
mahendrachhipa Jun 3, 2021
fbaebd4
8268014: Build failure on SUSE Linux Enterprise Server 11.4 (s390x) d…
DamonFool Jun 3, 2021
eb385c0
8268167: MultipleLogins.java failure on macosx-aarch64
coffeys Jun 3, 2021
5982cfc
8266317: Vector API enhancements
Jun 3, 2021
3aa7062
8262409: sun/security/ssl/SSLSocketImpl/SSLSocketImplThrowsWrongExcep…
Jun 3, 2021
5405f98
8268077: java.util.List missing from Collections Framework Overview
rgiulietti Jun 3, 2021
52d8215
8268131: 2 java/foreign tests timed out
mcimadamore Jun 3, 2021
af3df63
8267598: jpackage removes system libraries from java.library.path
Jun 3, 2021
68ac871
8268189: ProblemList compiler/intrinsics/bmi/verifycode/BzhiTestI2L.j…
Jun 3, 2021
e27c4d4
8268185: Update GitHub Actions for jtreg 6
jonathan-gibbons Jun 3, 2021
9f05c41
8265783: Create a separate library for x86 Intel SVML assembly intrin…
Jun 3, 2021
b955865
8267995: Add reference to JVMS class file format in Lookup::defineHid…
Jun 3, 2021
460ce55
8266019: StreamResult(File) writes to incorrect file path if # is par…
JoeWang-Java Jun 3, 2021
c1f3094
8267939: Clarify the specification of iterator and spliterator forEac…
Jun 3, 2021
516e60a
8268095: CDS MethodHandle tests should add -XX:-VerifyDependencies
calvinccheung Jun 3, 2021
05df172
8268224: Cleanup references to "strictfp" in core lib comments
jddarcy Jun 4, 2021
edca245
8267917: mark hotspot containers tests which ignore external VM flags
iignatev Jun 4, 2021
1b4378e
8268142: Switch to jdk-17+24 for macosx-aarch64 at Oracle
vidmik Jun 4, 2021
e2d5ff9
8268214: Use system zlib and disable dtrace when building linux-aarch…
vidmik Jun 4, 2021
3025f05
8264305: Create implementation for native accessibility peer for Stat…
Jun 4, 2021
069f180
8268174: Move x86-specific stub declarations into stubRoutines_x86.hpp
Jun 4, 2021
40c9e25
8265444: Javadocs: jdk.jshell - small typo
Jun 4, 2021
59a539f
8268129: LibraryLookup::ofDefault leaks symbols from loaded libraries
mcimadamore Jun 4, 2021
b27599b
8268222: javax/xml/jaxp/unittest/transform/Bug6216226Test.java failed…
JoeWang-Java Jun 4, 2021
cd0678f
8199318: add idempotent copy operation for Map.Entry
Jun 4, 2021
64ec8b3
8212155: Race condition when posting dynamic_code_generated event lea…
lmesnik Jun 4, 2021
20b6312
8268151: Vector API toShuffle optimization
Jun 4, 2021
48dc72b
8268272: Remove JDK-8264874 changes because Graal was removed.
Jun 4, 2021
4e6748c
8267687: ModXNode::Ideal optimization is better than Parse::do_irem
Jun 4, 2021
76b54a1
8263512: [macos_aarch64] issues with calling va_args functions from i…
nick-arm Jun 4, 2021
6ff978a
8267204: Expose access to underlying streams in Reporter
jonathan-gibbons Jun 5, 2021
7e41ca3
8266957: SA has not followed JDK-8220587 and JDK-8224965
YaSuenag Jun 5, 2021
7f55dc1
8179880: Refactor javax/security shell tests to plain java tests
Jun 5, 2021
6c838c5
8266846: Add java.time.InstantSource
Jun 5, 2021
36bff6f
8066694: Strange code in JavacParser.java
turbanoff Jun 5, 2021
91f9adc
8268139: CDS ArchiveBuilder may reference unloaded classes
iklam Jun 5, 2021
b2e9eb9
8268087: Update documentation of the JPasswordField
mrserb Jun 5, 2021
f768fbf
8268286: ProblemList serviceability/sa/TestJmapCore.java on linux-aar…
Jun 5, 2021
b05c40c
8266951: Partial in-lining for vectorized mismatch operation using AV…
Jun 5, 2021
8abf36c
8268289: build failure due to missing signed flag in x86 evcmpb instr…
Jun 6, 2021
042f0bd
8256465: [macos] Java frame and dialog presented full screen freeze a…
trebari Jun 6, 2021
52d88ee
8268292: compiler/intrinsics/VectorizedMismatchTest.java fails with r…
DamonFool Jun 6, 2021
95ddf7d
8267839: trivial mem leak in numa
Jun 7, 2021
b05fa02
8267904: C2 crash when compile negative Arrays.copyOf length after loop
Jun 7, 2021
2aeeeb4
8268279: gc/shenandoah/compiler/TestLinkToNativeRBP.java fails after …
Jun 7, 2021
204b492
8267703: runtime/cds/appcds/cacheObject/HeapFragmentationTest.java cr…
kstefanj Jun 7, 2021
3e48244
8268301: Closed test: compiler/c2/6371167/Test.java fails after JDK-8…
Jun 7, 2021
908aca2
8262891: Compiler implementation for Pattern Matching for switch (Pre…
Jun 7, 2021
9fc914b
8204686: Dynamic parallel reference processing support for Parallel GC
lkorinth Jun 7, 2021
58bdabc
8268164: Adopt cast notation for WorkerThread conversions
albertnetymk Jun 7, 2021
6d1f3ac
8149138: [javadoc] Fix SerialFormBuilder eliminate String bashing
hns Jun 7, 2021
5ebd419
8267972: Inline cache cleaning is not monotonic
fisk Jun 7, 2021
b09d8b9
8267926: AsyncLogGtest.java fails on assert with: decorator was not p…
Jun 7, 2021
8130be5
8268318: Missing comma in copyright header
Jun 7, 2021
e4d0454
8267832: SimpleVisitors and Scanners in jdk.compiler should use @impl…
Jun 7, 2021
15715a8
8267924: Misleading G1 eager reclaim detail logging
Jun 7, 2021
728a411
8268018: remove dead code in commitLimitter
Jun 7, 2021
4f9d6b7
8267465: remove superfluous preview related annotations and test options
Jun 7, 2021
a91f971
8268267: Remove -Djavatest.security.noSecurityManager=true from jtreg…
wangweij Jun 7, 2021
ea8274f
8267875: Shenandoah: Duplicated code in ShenandoahBarrierSetC2::ideal…
zhengyu123 Jun 7, 2021
270ec97
8268331: Fix crash in humongous object eager reclaim logging
Jun 7, 2021
3396b69
8254129: IR Test Framework to support regex-based matching on the IR …
chhagedorn Jun 7, 2021
e663ba9
8268299: jvms tag produces incorrect URL
jddarcy Jun 7, 2021
7e55569
8261549: Adjust memory size in MTLTexurePool.m
Jun 7, 2021
81600dc
8191441: (Process) add Readers and Writer access to java.lang.Process…
Jun 7, 2021
e546ae2
8268296: ScopedMemoryAccess build error with readonly filesystems
cushon Jun 7, 2021
c7c77fd
8255557: Decouple GCM from CipherCore
Jun 7, 2021
5e557d8
8266967: debug.cpp utility find() should print Java Object fields.
Jun 7, 2021
fc08af5
8174222: LambdaMetafactory: validate inputs and improve documentation
Jun 7, 2021
36c4e5f
8267187: Remove deprecated constructor for Log
jonathan-gibbons Jun 8, 2021
ae986bc
8266749: AArch64: Backtracing broken on PAC enabled systems
a74nh Jun 8, 2021
f40c89e
8267209: Child threads should defer logging to after child-parent han…
tstuefe Jun 8, 2021
341f676
8267908: linux: thread_native_entry can scribble on stack frame
Jun 8, 2021
81bad59
8257774: G1: Trigger collect when free region count drops below thres…
adityamandaleeka Jun 8, 2021
fd91b2a
8265440: IGV: make node selection more visible
jyukutyo Jun 8, 2021
8105478
8268165: AsyncLogging will crash if rotate() fails
Jun 8, 2021
00c88f7
8266918: merge_stack in check_code.c add NULL check
MBaesken Jun 8, 2021
61ab4b9
8267564: JDK-8252971 causes SPECjbb2015 socket exceptions on Windows …
Michael-Mc-Mahon Jun 8, 2021
89da202
8266159: macOS ARM + Metal pipeline shows artifacts on Swing Menu wit…
aghaisas Jun 8, 2021
2717fcb
8232948: javac -h should mangle the overload argument signature
Jun 8, 2021
6843576
8268227: java/foreign/TestUpcall.java still times out
mcimadamore Jun 8, 2021
8158b82
8268327: Upstream: 8268169: The system lookup can not find stdio func…
JornVernee Jun 8, 2021
159cb6f
8268083: JDK-8267706 breaks bin/idea.sh on a Mac
YaaZ Jun 8, 2021
c21cc93
8248877: Document API contract for MetaspaceObj subtypes
iklam Jun 8, 2021
b568e87
8237388: serviceability/dcmd/framework/VMVersionTest.java fails with …
Jun 8, 2021
fafc4d9
8268352: Rename javadoc Messager class to JavadocLog
jonathan-gibbons Jun 8, 2021
dc6c96b
8263468: New page for "recent" new API
hns Jun 8, 2021
4dd0e7e
8259806: Clean up terminology on the "All Classes" page
hns Jun 8, 2021
f9b593d
8266748: Move modifiers code to Signatures.java
hns Jun 8, 2021
51e8201
8267764: jpackage cannot handle window screensaver files when EXE ren…
Jun 8, 2021
7a37816
8264866: Remove unneeded WorkArounds.isAutomaticModule
jddarcy Jun 8, 2021
5ad4a91
8268127: Shenandoah: Heap size may be too small for region to align t…
zhengyu123 Jun 8, 2021
ae16052
8268088: Clarify Method::clear_jmethod_ids() related comments in Clas…
Jun 8, 2021
bcaa2cb
8264144: Add handling of "--about-url" CLI parameter for RPM/DEB pack…
Jun 8, 2021
f6f82c3
8266421: Deadlock in Sound System
mrserb Jun 9, 2021
1c3932f
8264766: ClassCastException during template compilation (Variable can…
JoeWang-Java Jun 9, 2021
58a59e3
8240997: Remove more "hack" word in security codes
Jun 9, 2021
2cc1977
8268424: JFR tests fail due to GC cause 'G1 Preventive Collection' no…
DamonFool Jun 9, 2021
c9dbc4f
8266891: Provide a switch to force the class space to a specific loca…
tstuefe Jun 9, 2021
07108c9
8268241: deprecate JVM TI Heap functions 1.0
Jun 9, 2021
4d1cf51
8240349: jlink should not leave partial image output directory on fai…
sundararajana Jun 9, 2021
2bfd708
8266557: assert(SafepointMechanism::local_poll_armed(_handshakee)) fa…
robehn Jun 9, 2021
4413142
8268017: C2: assert(phi_type->isa_int() || phi_type->isa_ptr() || phi…
rwestrel Jun 9, 2021
9cfd560
8267663: [vector] Add unsigned comparison operators on AArch64
theRealELiu Jun 9, 2021
4388959
8268056: Update java.net and java.nio to use switch expressions
pconcannon Jun 9, 2021
dd34a4c
8268372: ZGC: dynamically select the number of concurrent GC threads …
albertnetymk Jun 9, 2021
13d6180
8264859: Implement Context-Specific Deserialization Filters
Jun 9, 2021
7b1e402
8266598: Exception values for AnnotationTypeMismatchException are not…
raphw Jun 9, 2021
5fbb62c
8268163: Change the order of fallback full GCs in G1
kstefanj Jun 9, 2021
43e38a1
8268377: Windows 32bit build fails after JDK-8268174
MBaesken Jun 9, 2021
caf7f49
8268122: Add specific gc cause for G1 full collections
kstefanj Jun 9, 2021
81fdeb5
8268417: Add test from JDK-8268360
Jun 9, 2021
bb3d226
8238213: Method resolution should stop on static error
Jun 9, 2021
db45ff0
8268052: [JVMCI] non-default installed code must be marked as in_use
Jun 9, 2021
79010f2
8266835: Add a --validate option to the jar tool
JornVernee Jun 9, 2021
33d34c6
8263323: Debug Agent help output includes invalid URL
plummercj Jun 9, 2021
bbd0313
8263203: jconsole Online User Guide has wrong URL
plummercj Jun 9, 2021
408e0a9
8255148: Confusing log output: SSLSocket duplex close failed
Jun 9, 2021
bf29a01
8228343: JCMD and attach fail to work across Linux Container boundary
Jun 9, 2021
991ca14
8267430: GraphicsDevice.setDisplayMode(REFRESH_RATE_UNKNOWN) throws I…
Jun 9, 2021
7ff6e7b
8267954: Shared classes that failed to load should not be loaded again
yminqi Jun 9, 2021
b41f3f8
8268478: JVMCI tests failing after JDK-8268052
Jun 9, 2021
58ba48b
8268192: LambdaMetafactory with invokespecial causes VerificationError
Jun 9, 2021
f839308
8268407: ProblemList sun/tools/jstat/jstatLineCountsX.sh on linux-aar…
plummercj Jun 10, 2021
2623b0b
8268475: execute runtime/InvocationTests w/ -UseVtableBasedCHA
iignatev Jun 10, 2021
ece3ae3
8268388: Update large pages information in Java manpage
kstefanj Jun 10, 2021
dd1cbad
8268285: vmTestbase/nsk/jvmti/GetThreadState/thrstat002 failed with "…
Jun 10, 2021
d4377af
8263303: C2 compilation fails with assert(found_sfpt) failed: no node…
rwestrel Jun 10, 2021
5a66628
8263107: PSPromotionManager::copy_and_push_safe_barrier needs acquire…
Jun 10, 2021
78b09ab
8268463: Windows 32bit build fails in DynamicCodeGenerated\libDynamic…
MBaesken Jun 10, 2021
1fd8146
8268461: ARM32: vector intrinsics reaches ShouldNotReachHere
mychris Jun 10, 2021
ab01cb5
8268339: Upstream: 8267989: Exceptions thrown during upcalls should b…
JornVernee Jun 10, 2021
f271eb8
8268303: Incorrect casts in JfrWriterHost::write for Ticks and Tickspan
Jun 10, 2021
ea19b04
8268481: Delete JAWT test files for mac
mrserb Jun 10, 2021
ae29f9c
8268530: resourcehogs/serviceability/jvmti/GetObjectSizeOverflow.java…
iignatev Jun 10, 2021
05090fc
8268536: mark hotspot serviceability/dcmd tests which ignore external…
iignatev Jun 10, 2021
964118f
8268538: mark hotspot serviceability/logging tests which ignore exter…
iignatev Jun 10, 2021
92f0b6d
8268532: several serviceability/attach tests should be run in driver …
iignatev Jun 10, 2021
e0c0b13
8268534: some serviceability/jvmti tests should be run in driver mode
iignatev Jun 10, 2021
f770f77
8268390: G1 concurrent gc upgrade to full gc not working
kstefanj Jun 10, 2021
a187fcc
8238197: JFR: Rework setting and getting EventHandler
Jun 10, 2021
d43c8a7
8268124: Update java.lang to use switch expressions
pconcannon Jun 10, 2021
0924382
8266766: Arrays of types that cannot be an annotation member do not y…
raphw Jun 10, 2021
6b6ff53
8268543: some runtime/verifier tests should be run in driver mode
iignatev Jun 10, 2021
f4b3170
8268428: Test java/foreign/TestResourceScope.java fails: expected [M]…
mcimadamore Jun 10, 2021
6c552a7
8268544: some runtime/sealedClasses tests should be run in driver mode
iignatev Jun 10, 2021
f677163
8266130: convert Thread-SMR stress tests from counter based to time b…
Jun 10, 2021
f716711
8265271: JFR: Allow use of .jfc options when starting JFR
egahlin Jun 10, 2021
7cd5a6e
8268537: (Temporary) Disable ParallelRefProcEnabled for Parallel GC
lkorinth Jun 10, 2021
2b41459
8267073: Race between Card Redirtying and Freeing Collection Set regi…
Jun 10, 2021
e11f70a
8003216: Add JFR event indicating explicit System.gc() call
egahlin Jun 10, 2021
0a6c7d8
8267424: CTW: C1 fails with "State must not be null"
Jun 10, 2021
a95e64c
8268443: ParallelGC Full GC should use parallel WeakProcessor
albertnetymk Jun 10, 2021
7400789
8268542: serviceability/logging/TestFullNames.java tests only 1st tes…
iignatev Jun 10, 2021
b018c45
8267630: Start of release updates for JDK 18
jddarcy Jun 10, 2021
7267227
8268361: Fix the infinite loop in next_line
UncleNine Jun 10, 2021
78cb677
8268539: several serviceability/sa tests should be run in driver mode
iignatev Jun 10, 2021
1e1039a
8268223: Problemlist vmTestbase/nsk/jdi/HiddenClass/events/events001.…
lmesnik Jun 10, 2021
8c8422e
8267893: Improve jtreg test failure handler do get native/mixed stack…
lmesnik Jun 10, 2021
4fd2a14
8267556: Enhance class paths check during runtime
calvinccheung Jun 10, 2021
2e900da
8268574: ProblemList tests failing due to UseBiasedLocking going away
Jun 10, 2021
df65237
8267930: Refine code for loading hsdis library
Jun 11, 2021
14242f5
Merge tag 'jdk-18+1' into lworld_merge_jdk_18_1
MrSimms Jun 16, 2021
c3df85c
Logical merge fixes for compilation
MrSimms Jun 16, 2021
66799c4
Version flip fixes
MrSimms Jun 16, 2021
cdbb501
Over-zealous with JavaThread for current thread
MrSimms Jun 16, 2021
b19a3f5
TestNG update breaks a few things
MrSimms Jun 16, 2021
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
The diff you're trying to view is too large. We only load the first 3000 changed files.
@@ -71,7 +71,7 @@ jobs:
if: steps.check_submit.outputs.should_run != 'false'

- name: Determine the jtreg ref to checkout
run: "echo JTREG_REF=jtreg${{ fromJson(steps.check_deps.outputs.dependencies).JTREG_VERSION }}-${{ fromJson(steps.check_deps.outputs.dependencies).JTREG_BUILD }} >> $GITHUB_ENV"
run: "echo JTREG_REF=jtreg-${{ fromJson(steps.check_deps.outputs.dependencies).JTREG_VERSION }}+${{ fromJson(steps.check_deps.outputs.dependencies).JTREG_BUILD }} >> $GITHUB_ENV"
if: steps.check_submit.outputs.should_run != 'false'

- name: Check if a jtreg image is present in the cache
@@ -91,7 +91,7 @@ jobs:
if: steps.check_submit.outputs.should_run != 'false' && steps.jtreg.outputs.cache-hit != 'true'

- name: Build jtreg
run: sh make/build-all.sh ${JAVA_HOME_8_X64}
run: bash make/build.sh --jdk ${JAVA_HOME_8_X64}
working-directory: jtreg
if: steps.check_submit.outputs.should_run != 'false' && steps.jtreg.outputs.cache-hit != 'true'

@@ -25,27 +25,47 @@
# Shell script for generating an IDEA project from a given list of modules

usage() {
echo "usage: $0 [-h|--help] [-v|--verbose] [-o|--output <path>] [modules]+"
echo "Usage: $0 [-h|--help] [-q|--quiet] [-a|--absolute-paths] [-o|--output <path>] [modules...]"
echo " -h | --help"
echo " -q | --quiet
No stdout output"
echo " -a | --absolute-paths
Use absolute paths to this jdk, so that generated .idea
project files can be moved independently of jdk sources"
echo " -o | --output <path>
Where .idea directory with project files will be generated
(e.g. using '-o .' will place project files in './.idea')
Default: $TOPLEVEL_DIR"
echo " [modules...]
Generate project modules for specific java modules
(e.g. 'java.base java.desktop')
Default: all existing modules (java.* and jdk.*)"
exit 1
}

SCRIPT_DIR=`dirname $0`
#assume TOP is the dir from which the script has been called
TOP=`pwd`
cd $SCRIPT_DIR; SCRIPT_DIR=`pwd`
cd .. ; TOPLEVEL_DIR=`pwd`
cd $TOP;

IDEA_OUTPUT=$TOP/.idea
VERBOSE="false"
IDEA_OUTPUT=$TOPLEVEL_DIR/.idea
VERBOSE=true
ABSOLUTE_PATHS=false
while [ $# -gt 0 ]
do
case $1 in
-h | --help )
usage
;;

-v | --vebose )
VERBOSE="true"
-q | --quiet )
VERBOSE=false
;;

-a | --absolute-paths )
ABSOLUTE_PATHS=true
;;

-o | --output )
@@ -66,18 +86,13 @@ done

mkdir -p $IDEA_OUTPUT || exit 1
cd $IDEA_OUTPUT; IDEA_OUTPUT=`pwd`
cd ..; IDEA_OUTPUT_PARENT=`pwd`

if [ "x$TOPLEVEL_DIR" = "x" ] ; then
cd $SCRIPT_DIR/..
TOPLEVEL_DIR=`pwd`
cd $IDEA_OUTPUT
fi

MAKE_DIR="$SCRIPT_DIR/../make"
MAKE_DIR="$TOPLEVEL_DIR/make"
IDEA_MAKE="$MAKE_DIR/ide/idea/jdk"
IDEA_TEMPLATE="$IDEA_MAKE/template"

cp -r "$IDEA_TEMPLATE"/* "$IDEA_OUTPUT"
cp -rn "$IDEA_TEMPLATE"/* "$IDEA_OUTPUT"

#override template
if [ -d "$TEMPLATES_OVERRIDE" ] ; then
@@ -86,31 +101,31 @@ if [ -d "$TEMPLATES_OVERRIDE" ] ; then
done
fi

if [ "$VERBOSE" = "true" ] ; then
echo "output dir: $IDEA_OUTPUT"
echo "idea template dir: $IDEA_TEMPLATE"
if [ "$VERBOSE" = true ] ; then
echo "Will generate IDEA project files in \"$IDEA_OUTPUT\" for project \"$TOPLEVEL_DIR\""
fi

cd $TOP ; make -f "$IDEA_MAKE/idea.gmk" -I $MAKE_DIR/.. idea MAKEOVERRIDES= OUT=$IDEA_OUTPUT/env.cfg MODULES="$*" || exit 1
cd $TOP ; make -f "$IDEA_MAKE/idea.gmk" -I "$TOPLEVEL_DIR" idea \
MAKEOVERRIDES= IDEA_OUTPUT_PARENT="$IDEA_OUTPUT_PARENT" OUT="$IDEA_OUTPUT/env.cfg" MODULES="$*" || exit 1
cd $SCRIPT_DIR

. $IDEA_OUTPUT/env.cfg

# Expect MODULE_ROOTS, MODULE_NAMES, BOOT_JDK & SPEC to be set
if [ "x$MODULE_ROOTS" = "x" ] ; then
echo "FATAL: MODULE_ROOTS is empty" >&2; exit 1
# Expect MODULES, MODULE_NAMES, RELATIVE_PROJECT_DIR, RELATIVE_BUILD_DIR to be set
if [ "xMODULES" = "x" ] ; then
echo "FATAL: MODULES is empty" >&2; exit 1
fi

if [ "x$MODULE_NAMES" = "x" ] ; then
echo "FATAL: MODULE_NAMES is empty" >&2; exit 1
fi

if [ "x$BOOT_JDK" = "x" ] ; then
echo "FATAL: BOOT_JDK is empty" >&2; exit 1
if [ "x$RELATIVE_PROJECT_DIR" = "x" ] ; then
echo "FATAL: RELATIVE_PROJECT_DIR is empty" >&2; exit 1
fi

if [ "x$SPEC" = "x" ] ; then
echo "FATAL: SPEC is empty" >&2; exit 1
if [ "x$RELATIVE_BUILD_DIR" = "x" ] ; then
echo "FATAL: RELATIVE_BUILD_DIR is empty" >&2; exit 1
fi

if [ -d "$TOPLEVEL_DIR/.hg" ] ; then
@@ -121,6 +136,29 @@ if [ -d "$TOPLEVEL_DIR/.git" ] ; then
VCS_TYPE="Git"
fi

if [ "$ABSOLUTE_PATHS" = true ] ; then
if [ "x$PATHTOOL" != "x" ]; then
PROJECT_DIR="`$PATHTOOL -am $TOPLEVEL_DIR`"
else
PROJECT_DIR="$TOPLEVEL_DIR"
fi
MODULE_DIR="$PROJECT_DIR"
cd "$TOPLEVEL_DIR" && cd "$RELATIVE_BUILD_DIR" && BUILD_DIR="`pwd`"
else
if [ "$RELATIVE_PROJECT_DIR" = "." ] ; then
PROJECT_DIR=""
else
PROJECT_DIR="/$RELATIVE_PROJECT_DIR"
fi
MODULE_DIR="\$MODULE_DIR\$$PROJECT_DIR"
PROJECT_DIR="\$PROJECT_DIR\$$PROJECT_DIR"
BUILD_DIR="\$PROJECT_DIR\$/$RELATIVE_BUILD_DIR"
fi
if [ "$VERBOSE" = true ] ; then
echo "Project root: $PROJECT_DIR"
echo "Generating IDEA project files..."
fi

### Replace template variables

NUM_REPLACEMENTS=0
@@ -144,105 +182,82 @@ add_replacement() {
eval TO$NUM_REPLACEMENTS='$2'
}

add_replacement "###PROJECT_DIR###" "$PROJECT_DIR"
add_replacement "###MODULE_DIR###" "$MODULE_DIR"
add_replacement "###MODULE_NAMES###" "$MODULE_NAMES"
add_replacement "###VCS_TYPE###" "$VCS_TYPE"
SPEC_DIR=`dirname $SPEC`
if [ "x$CYGPATH" != "x" ]; then
add_replacement "###BUILD_DIR###" "`cygpath -am $SPEC_DIR`"
add_replacement "###IMAGES_DIR###" "`cygpath -am $SPEC_DIR`/images/jdk"
add_replacement "###ROOT_DIR###" "`cygpath -am $TOPLEVEL_DIR`"
add_replacement "###IDEA_DIR###" "`cygpath -am $IDEA_OUTPUT`"
if [ "x$JT_HOME" = "x" ]; then
add_replacement "###JTREG_HOME###" ""
else
add_replacement "###JTREG_HOME###" "`cygpath -am $JT_HOME`"
fi
elif [ "x$WSL_DISTRO_NAME" != "x" ]; then
add_replacement "###BUILD_DIR###" "`wslpath -am $SPEC_DIR`"
add_replacement "###IMAGES_DIR###" "`wslpath -am $SPEC_DIR`/images/jdk"
add_replacement "###ROOT_DIR###" "`wslpath -am $TOPLEVEL_DIR`"
add_replacement "###IDEA_DIR###" "`wslpath -am $IDEA_OUTPUT`"
add_replacement "###BUILD_DIR###" "$BUILD_DIR"
if [ "x$PATHTOOL" != "x" ]; then
add_replacement "###BASH_RUNNER_PREFIX###" "\$PROJECT_DIR\$/.idea/bash.bat"
else
add_replacement "###BASH_RUNNER_PREFIX###" ""
fi
if [ "x$PATHTOOL" != "x" ]; then
if [ "x$JT_HOME" = "x" ]; then
add_replacement "###JTREG_HOME###" ""
else
add_replacement "###JTREG_HOME###" "`wslpath -am $JT_HOME`"
add_replacement "###JTREG_HOME###" "`$PATHTOOL -am $JT_HOME`"
fi
else
add_replacement "###BUILD_DIR###" "$SPEC_DIR"
add_replacement "###JTREG_HOME###" "$JT_HOME"
add_replacement "###IMAGES_DIR###" "$SPEC_DIR/images/jdk"
add_replacement "###ROOT_DIR###" "$TOPLEVEL_DIR"
add_replacement "###IDEA_DIR###" "$IDEA_OUTPUT"
fi

SOURCE_PREFIX="<sourceFolder url=\"file://"
SOURCE_POSTFIX="\" isTestSource=\"false\" />"

for root in $MODULE_ROOTS; do
if [ "x$CYGPATH" != "x" ]; then
root=`cygpath -am $root`
elif [ "x$WSL_DISTRO_NAME" != "x" ]; then
root=`wslpath -am $root`
fi

VM_CI="jdk.internal.vm.ci/share/classes"
VM_COMPILER="src/jdk.internal.vm.compiler/share/classes"
if test "${root#*$VM_CI}" != "$root" || test "${root#*$VM_COMPILER}" != "$root"; then
for subdir in "$root"/*; do
if [ -d "$subdir" ]; then
SOURCES=$SOURCES" $SOURCE_PREFIX""$subdir"/src"$SOURCE_POSTFIX"
fi
done
else
SOURCES=$SOURCES" $SOURCE_PREFIX""$root""$SOURCE_POSTFIX"
fi
MODULE_IMLS=""
TEST_MODULE_DEPENDENCIES=""
for module in $MODULE_NAMES; do
MODULE_IMLS="$MODULE_IMLS<module fileurl=\"file://\$PROJECT_DIR$/.idea/$module.iml\" filepath=\"\$PROJECT_DIR$/.idea/$module.iml\" /> "
TEST_MODULE_DEPENDENCIES="$TEST_MODULE_DEPENDENCIES<orderEntry type=\"module\" module-name=\"$module\" scope=\"TEST\" /> "
done

add_replacement "###SOURCE_ROOTS###" "$SOURCES"
add_replacement "###MODULE_IMLS###" "$MODULE_IMLS"
add_replacement "###TEST_MODULE_DEPENDENCIES###" "$TEST_MODULE_DEPENDENCIES"

replace_template_dir "$IDEA_OUTPUT"

### Compile the custom Logger

CLASSES=$IDEA_OUTPUT/classes

if [ "x$ANT_HOME" = "x" ] ; then
# try some common locations, before giving up
if [ -f "/usr/share/ant/lib/ant.jar" ] ; then
ANT_HOME="/usr/share/ant"
elif [ -f "/usr/local/Cellar/ant/1.9.4/libexec/lib/ant.jar" ] ; then
ANT_HOME="/usr/local/Cellar/ant/1.9.4/libexec"
else
echo "FATAL: cannot find ant. Try setting ANT_HOME." >&2; exit 1
fi
fi
CP=$ANT_HOME/lib/ant.jar
rm -rf $CLASSES; mkdir $CLASSES

if [ "x$CYGPATH" != "x" ] ; then ## CYGPATH may be set in env.cfg
JAVAC_SOURCE_FILE=`cygpath -am $IDEA_OUTPUT/src/idea/IdeaLoggerWrapper.java`
JAVAC_SOURCE_PATH=`cygpath -am $IDEA_OUTPUT/src`
JAVAC_CLASSES=`cygpath -am $CLASSES`
JAVAC_CP=`cygpath -am $CP`
JAVAC=javac
elif [ "x$WSL_DISTRO_NAME" != "x" ]; then
JAVAC_SOURCE_FILE=`realpath --relative-to=./ $IDEA_OUTPUT/src/idea/IdeaLoggerWrapper.java`
JAVAC_SOURCE_PATH=`realpath --relative-to=./ $IDEA_OUTPUT/src`
JAVAC_CLASSES=`realpath --relative-to=./ $CLASSES`
ANT_TEMP=`mktemp -d -p ./`
cp $ANT_HOME/lib/ant.jar $ANT_TEMP/ant.jar
JAVAC_CP=$ANT_TEMP/ant.jar
JAVAC=javac.exe
else
JAVAC_SOURCE_FILE=$IDEA_OUTPUT/src/idea/IdeaLoggerWrapper.java
JAVAC_SOURCE_PATH=$IDEA_OUTPUT/src
JAVAC_CLASSES=$CLASSES
JAVAC_CP=$CP
JAVAC=javac
### Generate module project files

if [ "$VERBOSE" = true ] ; then
echo "Generating project modules:"
fi
(
DEFAULT_IFS="$IFS"
IFS='#'
for value in $MODULES; do
(
eval "$value"
if [ "$VERBOSE" = true ] ; then
echo " $module"
fi
add_replacement "###MODULE_CONTENT###" "src/$module"
SOURCE_DIRS=""
IFS=' '
for dir in $moduleSrcDirs; do
case $dir in # Exclude generated sources to avoid module-info conflicts, see https://youtrack.jetbrains.com/issue/IDEA-185108
"src/"*) SOURCE_DIRS="$SOURCE_DIRS<sourceFolder url=\"file://$MODULE_DIR/$dir\" isTestSource=\"false\" /> "
esac
done
add_replacement "###SOURCE_DIRS###" "$SOURCE_DIRS"
DEPENDENCIES=""
for dep in $moduleDependencies; do
case $MODULE_NAMES in # Exclude skipped modules from dependencies
*"$dep"*) DEPENDENCIES="$DEPENDENCIES<orderEntry type=\"module\" module-name=\"$dep\" /> "
esac
done
add_replacement "###DEPENDENCIES###" "$DEPENDENCIES"
cp "$IDEA_OUTPUT/module.iml" "$IDEA_OUTPUT/$module.iml"
IFS="$DEFAULT_IFS"
replace_template_file "$IDEA_OUTPUT/$module.iml"
)
done
)
rm "$IDEA_OUTPUT/module.iml"

### Create shell script runner for Windows

if [ "x$PATHTOOL" != "x" ]; then
echo "@echo off" > "$IDEA_OUTPUT/bash.bat"
if [ "x$WSL_DISTRO_NAME" != "x" ] ; then
echo "wsl -d $WSL_DISTRO_NAME --cd \"%cd%\" -e %*" >> "$IDEA_OUTPUT/bash.bat"
else
echo "$WINENV_ROOT\bin\bash.exe -l -c \"cd %CD:\=/%/ && %*\"" >> "$IDEA_OUTPUT/bash.bat"
fi
fi

$BOOT_JDK/bin/$JAVAC -d $JAVAC_CLASSES -sourcepath $JAVAC_SOURCE_PATH -cp $JAVAC_CP $JAVAC_SOURCE_FILE

if [ "x$WSL_DISTRO_NAME" != "x" ]; then
rm -rf $ANT_TEMP
fi
@@ -94,6 +94,7 @@ <h3 id="source-files">Source Files</h3>
<li><p>All source files must have a globally unique basename. The build system depends on this uniqueness.</p></li>
<li><p>Do not put non-trivial function implementations in .hpp files. If the implementation depends on other .hpp files, put it in a .cpp or a .inline.hpp file.</p></li>
<li><p>.inline.hpp files should only be included in .cpp or .inline.hpp files.</p></li>
<li><p>All .inline.hpp files should include their corresponding .hpp file as the first include line. Declarations needed by other files should be put in the .hpp file, and not in the .inline.hpp file. This rule exists to resolve problems with circular dependencies between .inline.hpp files.</p></li>
<li><p>All .cpp files include precompiled.hpp as the first include line.</p></li>
<li><p>precompiled.hpp is just a build time optimization, so don't rely on it to resolve include problems.</p></li>
<li><p>Keep the include lines alphabetically sorted.</p></li>
@@ -138,6 +138,11 @@ a .inline.hpp file.
* .inline.hpp files should only be included in .cpp or .inline.hpp
files.

* All .inline.hpp files should include their corresponding .hpp file as
the first include line. Declarations needed by other files should be put
in the .hpp file, and not in the .inline.hpp file. This rule exists to
resolve problems with circular dependencies between .inline.hpp files.

* All .cpp files include precompiled.hpp as the first include line.

* precompiled.hpp is just a build time optimization, so don't rely on
@@ -49,7 +49,8 @@ TARGETS += $(patsubst %, $(BUILDTOOLS_OUTPUTDIR)/gensrc/%/module-info.java, \
$(INTERIM_LANGTOOLS_MODULES))

$(eval $(call SetupCopyFiles, COPY_PREVIEW_FEATURES, \
FILES := $(TOPDIR)/src/java.base/share/classes/jdk/internal/javac/PreviewFeature.java, \
FILES := $(TOPDIR)/src/java.base/share/classes/jdk/internal/javac/PreviewFeature.java \
$(TOPDIR)/src/java.base/share/classes/jdk/internal/javac/NoPreview.java, \
DEST := $(BUILDTOOLS_OUTPUTDIR)/gensrc/java.base.interim/jdk/internal/javac/, \
))

@@ -333,6 +333,12 @@ define SetupApiDocsGenerationBody
$$(eval $$(call create_overview_file,$1))
$1_OPTIONS += -overview $$($1_OVERVIEW)

# Add summary pages for new/deprecated APIs in recent releases
$1_OPTIONS += --since $(call CommaList, \
$(filter-out $(VERSION_DOCS_API_SINCE), \
$(call sequence, $(VERSION_DOCS_API_SINCE), $(VERSION_FEATURE))))
$1_OPTIONS += --since-label "New API since JDK $(VERSION_DOCS_API_SINCE)"

$$(foreach g, $$($1_GROUPS), \
$$(eval $1_OPTIONS += -group "$$($$g_GROUP_NAME)" "$$($$g_GROUP_MODULES)") \
)
@@ -92,11 +92,8 @@ $(eval $(call SetupTarget, buildtools-modules, \
MAKEFILE := CompileModuleTools, \
))

# interim-langtools is needed by hotspot only when $(INCLUDE_GRAAL) is true
GRAAL_INTERIM_LANGTOOLS_true = interim-langtools
$(eval $(call SetupTarget, buildtools-hotspot, \
MAKEFILE := CompileToolsHotspot, \
DEPS := $(GRAAL_INTERIM_LANGTOOLS_$(INCLUDE_GRAAL)), \
))

################################################################################