Compare commits

...

2200 Commits

Author SHA1 Message Date
Erik Joelsson
46eb26b692 8215445: Enable building for Windows in WSL
Co-authored-by: Andrew Luo <andrewluotechnologies@outlook.com>
Reviewed-by: ihse
2019-01-02 12:59:26 +01:00
Sergei Ustimenko
88b95f0570 8215977: hsdis installation documentation update
Reviewed-by: dholmes
2019-01-01 20:09:02 -05:00
Kim Barrett
dd609d57e6 8213481: [REDO] Fix incorrect copy constructors in hotspot
Fix and use ResourceObj copy constructor.

Reviewed-by: coleenp, dholmes, kvn
2018-12-31 15:40:50 -05:00
Tagir F. Valeev
42e7372b3e 8214687: Optimize Collections.nCopies().hashCode() and equals()
Reviewed-by: igerasim, smarks
2018-12-30 08:57:24 +07:00
Sergey Ustimenko
9d3cfddfb6 8215966: GeneratePropertyPassword.sh uses bash syntax
Use "case" instead of "if" for the NT check to make sh happy.

Reviewed-by: dholmes
2018-12-28 15:19:14 -08:00
David Holmes
6c4ec86cea 8215954: [testbug] Remove unnecessary casts in test/hotspot/gtest/threadHelper.inline.hpp
Reviewed-by: dcubed
2018-12-28 16:31:11 -05:00
Matthias Baesken
e4bc6e7ab9 8215707: [macosx] fix pthread_getschedparam and pthread_setschedparam calls
Reviewed-by: clanger, dholmes
2018-12-21 14:42:08 +01:00
David Holmes
526f854cc1 8214097: Rework thread initialization and teardown logic
Reviewed-by: rehn, mgronlun, dcubed, kbarrett
2018-12-27 21:17:11 -05:00
Kim Barrett
575f633a96 8214201: Make PtrQueueSet completed buffer list private
Merge and make private in PtrQueueSet all completed buffer list handling

Reviewed-by: tschatzl, sjohanss
2018-12-26 19:24:00 -05:00
Boris Ulasevich
b38a53de3f 8206107: [x86_32] jck tests for ldc2_w bytecode fail
Reviewed-by: dsamersoff
2018-12-25 18:35:42 +03:00
Srinivas Dama
ead8577920 8208184: IllegalArgumentException while invoking code completion on netbeans IDE
Set Log.useSource and fix the issue in Modules.java when broken module is encountered

Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Reviewed-by: jjg
2018-12-24 12:18:40 +05:30
Weijun Wang
4769c9fbad 8215769: Java cannot probe pkcs12 files exported by Firefox
Reviewed-by: mullan
2018-12-22 10:38:45 +08:00
Brian Burkhalter
fedf0767fc 8215759: [test] java/math/BigInteger/ModPow.java can throw an ArithmeticException
Reviewed-by: rriggs, plevart, smarks
2018-12-21 13:03:03 -08:00
Jonathan Gibbons
2162a500c1 8215516: Move JavadocTester to a named package
Reviewed-by: hannesw
2018-12-21 10:38:33 -08:00
Milan Mimica
9cbca323f7 8215727: Restore JFR thread sampler loop to old / previous behavior
Reviewed-by: egahlin, mgronlun
2018-12-21 16:56:40 +01:00
Philipp Kunz
1dae61a374 8066619: Fix deprecation warnings in java.util.jar
Reviewed-by: rriggs, lancea
2018-12-21 09:54:32 -05:00
Gary Adams
203f6ad99a 8215571: jdb does not include jdk.* in the default class filter
Reviewed-by: alanb, cjplummer
2018-12-21 07:42:12 -05:00
Alex Menkov
ae369f40a4 8215716: PopFrame() was unexpectedly done
Reviewed-by: dholmes, sspitsyn
2018-12-20 17:51:16 -08:00
Jesper Wilhelmsson
eb3549baf7 Merge 2018-12-21 01:25:46 +01:00
Vladimir Kozlov
f7e8dcc0bb 8215687: [Graal] unit test CheckGraalIntrinsics failed after 8212043
Add check for new intrinsics

Reviewed-by: iveresov, iignatyev
2018-12-20 14:03:56 -08:00
Claes Redestad
cad5fa8f16 8215555: TieredCompilation C2 threads can excessively block handshakes
Reviewed-by: kvn, neliasso, rehn
2018-12-20 19:44:08 +01:00
Thomas Schatzl
1a1369d270 8215548: G1PeriodicGCSystemLoadThreshold needs to be a double
Change G1PeriodicGCSystemLoadThreshold to be a double to allow better granularity in determining idleness

Reviewed-by: sjohanss, sangheki
2018-12-20 19:44:33 +01:00
Nick Gasson
d62b658ffc 8215100: AArch64: fix compareTo intrinsic with four-character Latin/Unicode
Reviewed-by: aph, dpochepk
2018-12-20 17:07:07 +00:00
Lutz Schmidt
5cdb1c7078 8215551: Missing case label in nmethod::reloc_string_for()
Reviewed-by: kvn, mbaesken
2018-12-20 17:29:59 +01:00
Erik Joelsson
9f1d035d8d 8215635: Pandoc check in Docs.gmk does not work on Windows
Reviewed-by: tbell, ihse
2018-12-20 05:27:42 -08:00
Per Lidén
2778c86488 8215547: ZGC: Fix incorrect match rule for loadBarrierWeakSlowRegNoVec
Reviewed-by: eosterlund, neliasso
2018-12-20 11:43:04 +01:00
Erik Österlund
83adde9866 8215491: ICStubInterface::finalize finds zombie nmethod with ZGC concurrent class unloading
Reviewed-by: dlong, coleenp
2018-12-20 10:41:45 +01:00
Erik Österlund
1cc5cf4c02 8215500: ICRefillVerifierMark does not set the provided verfier as current
Reviewed-by: pliden, thartmann
2018-12-20 10:41:45 +01:00
Jesper Wilhelmsson
205598c97f Added tag jdk-12+25 for changeset 7496df94b3b7 2018-12-20 02:54:16 +01:00
Sean Coffey
36d0987f4d 8214532: Update RFC 2459 references in javadoc to RFC 5280
Reviewed-by: mullan
2018-12-19 18:21:38 +00:00
Per Lidén
c9d7dd0827 8215487: ZGC: ZRuntimeWorkers incorrectly identify themselves as ZWorkers
Reviewed-by: eosterlund
2018-12-19 08:32:48 +01:00
Igor Ignatyev
b756562a67 8215322: add @file support to jaotc
Reviewed-by: kvn
2018-12-18 13:37:06 -08:00
Priya Lakshmi Muthuswamy
fd6cbffc4b 8214570: Use {@systemProperty} for definitions of system properties
Reviewed-by: alanb, mullan
2018-12-19 11:08:08 +05:30
Valerie Peng
cfcd43da04 8214096: sun.security.util.SignatureUtil passes null parameter, so JCE validation fails
Changed SignatureUtil.specialSetParameter to ignore null signature parameters

Reviewed-by: mullan, weijun
2018-12-19 02:27:44 +00:00
Dean Long
57dc039131 8214583: AccessController.getContext may return wrong value after JDK-8212605
Reviewed-by: mchung, redestad
2018-12-18 16:36:26 -08:00
Xue-Lei Andrew Fan
ad47b4c4cc 8209333: Socket reset issue for TLS 1.3 socket close
Reviewed-by: jnimeh
2018-12-18 15:18:44 -08:00
Dean Long
d1597bb1cb 8214329: SwingMark SubMenus 9% regression in 12-b19 on Linux client
Reviewed-by: thartmann, mullan
2018-12-18 12:45:07 -08:00
Dean Long
32ea2e5343 8215205: javaVFrame much slower than vframeStream
Reviewed-by: mchung, thartmann
2018-12-18 12:36:27 -08:00
Xue-Lei Andrew Fan
84105b36fd 8215443: The use of TransportContext.fatal() leads to bad coding style
Reviewed-by: ascarpino
2018-12-18 12:08:51 -08:00
Rahul Raghavan
5a6385b363 8211698: Crash in C2 compiled code during execution of double array heavy processing code
Correctly registered new Opaque4Node in add_range_check_predicate

Reviewed-by: roland, thartmann
2018-12-18 19:13:54 +05:30
Muthusamy Chinnathambi
2fa6333113 8215397: jsig.c missing classpath exception
Reviewed-by: dholmes
2018-12-18 12:59:39 +05:30
Nick Gasson
a3bb5ead7e 8214512: ARM32: Jtreg test compiler/c2/Test8062950.java fails on ARM
Reviewed-by: dlong, enevill, bulasevich
2018-12-17 10:36:07 -08:00
Per Lidén
6a9c6a0392 8215451: JNI IsSameObject should not keep objects alive
Reviewed-by: eosterlund, kbarrett
2018-12-17 16:55:17 +01:00
Tobias Hartmann
2e989366ea 8215410: Regression test for JDK-8214994
Added a regression test for 8214994 which was fixed by accident with 8211451.

Reviewed-by: kvn
2018-12-17 08:25:57 +01:00
Robert Field
2ebc9f99e5 8215099: jshell tool: /help representation of ctrl/meta characters inconsistent
Reviewed-by: jlahoda
2018-12-15 17:13:39 -08:00
Per Lidén
1af1a69fbc 8215395: Allow null oops in Dictionary and JNIHandle verification
Reviewed-by: eosterlund, kbarrett, coleenp
2018-12-15 20:03:06 +01:00
Xue-Lei Andrew Fan
3933c8477b 8214339: SSLSocketImpl erroneously wraps SocketException
Reviewed-by: ascarpino, jnimeh
2018-12-14 19:39:39 -08:00
Xue-Lei Andrew Fan
e44207a9f6 8213782: NullPointerException in sun.security.ssl.OutputRecord.changeWriteCiphers
Reviewed-by: ascarpino
2018-12-14 17:51:02 -08:00
Doug Simon
516a3b3ec1 8215319: jck lang/INTF/intf049/intf04901 fails in Graal as JIT mode with -Xcomp and AOTed Graal
Reviewed-by: iveresov, never, dlong
2018-12-14 17:32:16 -08:00
Pavel Rappo
884c808e83 8215292: Back out changes for node- and link- local ipv6 multicast address
Reviewed-by: chegar, alanb
2018-12-14 19:49:03 +00:00
Liam Miller-Cushon
1cd847d6d1 8198526: getAnnotatedOwnerType does not handle static nested classes correctly
Reviewed-by: jfranck
2018-12-07 16:56:53 -08:00
Harold Seigel
265abce7fb 8205505: Expire and remove remaining support for commercial features
Remove the unneeded options and their tests and update the JCMD documentation.

Reviewed-by: dholmes, coleenp, erikj
2018-12-20 08:43:23 -05:00
Matthias Baesken
3cda678c2b 8215296: do not disable c99 on Solaris
Reviewed-by: dholmes, ihse
2018-12-17 13:47:22 +01:00
Robbin Ehn
994ab71870 8214180: Need better granularity for sleeping
Reviewed-by: eosterlund, dcubed, dholmes
2018-12-20 10:05:19 +01:00
Jesper Wilhelmsson
595fcb59bc Added tag jdk-13+1 for changeset 11033c4ada54 2018-12-20 02:51:01 +01:00
Per Lidén
316924a7bd 8215492: Rename INTERNAL_EMPTY to something less "internal"
Reviewed-by: kbarrett, coleenp
2018-12-19 23:40:05 +01:00
Alex Menkov
a4d4c07f7b 8215425: vmTestbase/nsk/jvmti/PopFrame should provide more detailed output
Reviewed-by: sspitsyn, jcbeyler
2018-12-19 14:08:08 -08:00
Jesper Wilhelmsson
f4f859b446 Merge 2018-12-19 20:53:30 +01:00
Brian Burkhalter
135d5dc279 8183912: java.math.BigDecimal.movePointLeft() should return this if called with zero argument
Reviewed-by: rriggs
2018-12-19 11:44:57 -08:00
Vicente Romero
f398c3dcd2 8215625: javax/sql/testng/util/xxxxx.java tests compilation failed after JDK-8207224
Reviewed-by: mcimadamore
2018-12-19 14:02:19 -05:00
Nick Gasson
e93939f851 8209414: AArch64: method handle invocation does not respect JVMTI interp_only mode
Reviewed-by: adinn
2018-12-19 11:45:54 +00:00
Daniel Fuchs
d6738d6600 8213402: [Testbug] java/lang/System/LoggerFinder/internal/PlatformLoggerBridgeTest creates an invalid nest relationship
The failing tests are refactored to make the custom logger finder class a top-level class.

Reviewed-by: dholmes, mchung
2018-12-19 11:48:34 +01:00
Christoph Langer
206ea259ec 8215472: (zipfs) Cleanups in implementation classes of jdk.zipfs and tests
Reviewed-by: redestad, lancea
2018-12-19 10:36:16 +00:00
Matthias Baesken
e4b1f82bbd 8215411: some GetByteArrayElements calls miss corresponding Release
Reviewed-by: dholmes, jcbeyler
2018-12-19 10:30:43 +01:00
Pengfei Li
556d79b518 8212043: Add floating-point Math.min/max intrinsics
Floating-point Math.min() and Math.max() intrinsics are enabled on AArch64 platform

Reviewed-by: adinn, aph
2018-12-18 16:50:35 +00:00
Vicente Romero
8b6b63b38b 8207224: Javac compiles source code despite illegal use of unchecked conversions
Reviewed-by: mcimadamore, darcy
2018-12-18 16:22:46 -05:00
Gary Adams
cc65367331 8051349: nsk/jvmti/scenarios/sampling/SP06/sp06t003 fails in nightly
Reviewed-by: dholmes, sspitsyn, cjplummer, jcbeyler
2018-12-18 07:33:07 -05:00
Alan Bateman
888057a89f 8215449: Several tests failing when jtreg run with -vmoption:--illegal-access=deny
Reviewed-by: redestad, mchung, jjg
2018-12-18 10:26:15 +00:00
Liam Miller-Cushon
bbfc4b7956 8215368: Make Check.checkOverride call diagnosticPositionFor lazily
Reviewed-by: mcimadamore, vromero
2018-12-13 11:05:40 -08:00
Liam Miller-Cushon
5fad1ca25c 8215366: Code quality improvements in com.sun.tools.javac.code.TypeAnnotations
Reviewed-by: mcimadamore, wmdietl, bsrbnd
2018-12-13 10:08:22 -08:00
Lin Zang
aef52a6e3a 8215228: Use a constant hash table size in order to enable compiler optimization
Remove a field from KlassInfoTable to allow compiler optimizations

Reviewed-by: phh, aph
2018-12-11 10:23:15 -08:00
Leo Korinth
811c84ba68 8214946: G1: Initialize all class members on construction
Reviewed-by: kbarrett, tschatzl
2018-12-17 11:37:40 +01:00
Doug Simon
945e9400ce 8215319: jck lang/INTF/intf049/intf04901 fails in Graal as JIT mode with -Xcomp and AOTed Graal
Reviewed-by: iveresov, never, dlong
2018-12-14 16:52:17 -08:00
Jean Christophe Beyler
f3657753d6 8201655: Add thread-enabled support for the Heap Sampling
Added thread-enabled support

Reviewed-by: amenkov, sspitsyn
2018-12-14 13:13:06 -08:00
Lance Andersen
d1951aa97c 8215372: Incorrect nio/file/DirectoryStream/Basic.java tests for validating the use of a glob
Reviewed-by: alanb
2018-12-14 14:17:22 -05:00
Jean Christophe Beyler
a9d7e075e5 8215329: Modify ZGC requirement for HeapMonitorThreadTest.java
Modify the requirement to be tested

Reviewed-by: amenkov, pliden, sspitsyn
2018-12-14 10:51:09 -08:00
Nick Gasson
1d7662e428 8214077: test java/io/File/SetLastModified.java fails on ARM32
Replace uses of stat with stat64 in java.base

Reviewed-by: alanb
2018-12-14 13:30:21 +00:00
Martin Doerr
b83df1e1fc 8214352: C1: Unnecessary "compilation bailout: block join failed" with JVMTI
Invalidate Phi functions for conflicting types and avoid bailout.

Reviewed-by: kvn, iveresov
2018-12-14 09:59:08 +01:00
Jesper Wilhelmsson
2932598566 Merge 2018-12-14 01:34:13 +01:00
Erik Gahlin
165c644cf8 8215362: JFR GTest JfrTestNetworkUtilization fails
Reviewed-by: mgronlun
2018-12-13 23:25:00 +01:00
Leonid Mesnik
f03df8356b 8215369: Jcstress pollute /var/tmp with temporary files
Reviewed-by: iignatyev, mseledtsov
2018-12-13 14:16:21 -08:00
Adam Farley
4452b80aff 8215217: OpenJDK source has too many swear words
Reviewed-by: smarks, shade, rriggs, lancea, prr, joehw
2018-12-13 11:05:22 -08:00
Joe Darcy
b5f0eec3d8 8205626: Start of release updates for JDK 13
8205393: Add SourceVersion.RELEASE_13
8205394: Add source 13 and target 13 to javac
8205645: Bump maximum recognized class file version to 57 for JDK 13
8214825: Update preview language features for start of JDK 13

Reviewed-by: erikj, alanb, mchung, mcimadamore, dholmes, smarks, jjg
2018-12-13 19:06:11 +01:00
Jesper Wilhelmsson
f32dc1764c Added tag jdk-13+0 for changeset cc4098b3bc10 2018-12-13 17:01:15 +01:00
Aleksey Shipilev
2880b1bb06 8215356: Disable x86_32 Shenandoah build to avoid hotspot/tier1 failures
Reviewed-by: rkennke
2018-12-13 16:45:26 +01:00
Aleksey Shipilev
2278601b7c 8181143: Introduce diagnostic flag to abort VM on too long VM operations
Reviewed-by: rkennke, zgu, dholmes, stuefe, rehn
2018-12-13 16:45:24 +01:00
Vicente Romero
650f3fc113 8215300: additional changes to constants API
Reviewed-by: goetz
2018-12-13 10:35:09 -05:00
Claes Redestad
a3df1d618e 8215281: Use String.isEmpty() when applicable in java.base
Reviewed-by: dfuchs, alanb
2018-12-13 15:31:05 +01:00
Aleksey Shipilev
c998ead188 8215354: x86_32 build failures after JDK-8214074 (Ghash optimization using AVX instructions)
Reviewed-by: thartmann
2018-12-13 16:14:07 +01:00
Erik Gahlin
ebdf83f88e 8215237: jdk.jfr.Recording javadoc does not compile
Reviewed-by: mgronlun
2018-12-13 15:40:11 +01:00
Zhengyu Gu
a85ad0aa18 8215220: Simplify Shenandoah task termination in aborted paths
Reviewed-by: shade
2018-12-12 13:50:57 -05:00
Markus Grönlund
e7722158fd 8215284: Reduce noise induced by periodic task getFileSize()
Reviewed-by: redestad, egahlin
2018-12-13 14:36:54 +01:00
Erik Gahlin
a3ca6f482e 8215175: Inconsistencies in JFR event metadata
Reviewed-by: mgronlun
2018-12-13 14:21:04 +01:00
Christophe Phillips
169729fe9b 8215342: [Zero] Build fails after JDK-8200613
Reviewed-by: shade, jgeorge
2018-12-13 10:25:50 +01:00
Michihiro Horie
d51be0e1b3 8215262: PPC64: FMA Vectorization on PPC64
Reviewed-by: mdoerr, gromero
2018-12-12 12:36:53 -05:00
Goetz Lindenmaier
905d607b35 8215534: [testbug] some jfr test don't check @requires vm.hasJFR
Reviewed-by: sundar, egahlin
2018-12-13 08:36:10 +01:00
Daniel Fuchs
0bdabe5e08 8211093: Default logging.properties sets log level for com.xyz.foo
Reviewed-by: bpb, rriggs
2018-12-13 11:27:37 +00:00
David Griffiths
9048045d20 8214226: Incorrect BCI and Line Number with jstack if the top frame is in the interpreter
Read in the bcp from r13 for the top level interpreter frames

Reviewed-by: jcbeyler, jgeorge
2018-12-13 15:11:25 +05:30
Weijun Wang
a438a0766c 8213010: Supporting keys created with certmgr.exe
Reviewed-by: valeriep
2018-12-13 17:28:30 +08:00
Weijun Wang
dcb88767a7 8213009: Refactoring existing SunMSCAPI classes
Reviewed-by: valeriep
2018-12-13 17:28:19 +08:00
Alan Bateman
eed637f497 8214696: Module class should be filtered by core reflection
Reviewed-by: lancea, mchung, sundar
2018-12-13 09:02:52 +00:00
Jini George
12355f9ca8 8202884: SA: Attach/detach might fail on Linux if debugee application create/destroy threads during attaching
While doing a ptrace attach, do not attach to threads which are in the process of exiting or are zombies -- skip these threads.

Reviewed-by: jcbeyler, ysuenaga
2018-12-13 13:03:26 +05:30
Jan Lahoda
35bd56fcdf 8215243: JShell tests failing intermitently with \"Problem cleaning up the following threads:\"
Do not reset closed state in the StopDetectingInputStream.write

Reviewed-by: rfield
2018-12-13 08:26:07 +01:00
Jamsheed Mohammed C M
79d7ae7633 8211034: OnStackReplacePercentage option checking has bugs
Fixed the constraint checks

Reviewed-by: kvn
2018-12-12 23:08:01 -08:00
Ekaterina Pavlova
966aaa1f9b 8215314: [Graal] Enable org.graalvm.compiler.core.test.CountedLoopTest
Reviewed-by: dlong
2018-12-12 22:23:48 -08:00
Vladimir Kozlov
a2541e687b 8215317: [GRAAL] unit test CheckGraalIntrinsics failed after 8213754
Fix CheckGraalIntrinsics test for new intrinsics.

Reviewed-by: iveresov, never
2018-12-12 21:02:46 -08:00
John Jiang
017c702b8a 8214937: sun/security/tools/jarsigner/warnings/NoTimestampTest.java failed due to unexpected expiration date
Reviewed-by: xuelei
2018-12-13 12:34:35 +08:00
Doug Lea
3d9ab36ca0 8215326: Test java/util/concurrent/ConcurrentHashMap/ToArray.java hangs after j.u.c updates
Reviewed-by: martin, dholmes
2018-12-12 20:13:39 -08:00
Weijun Wang
cf21c5ef11 8214568: Use {@systemProperty} for definitions of system properties
Reviewed-by: xuelei
2018-12-13 12:03:03 +08:00
Weijun Wang
9136c7d1d0 8076190: Customizing the generation of a PKCS12 keystore
Reviewed-by: mullan
2018-12-13 11:16:33 +08:00
Valerie Peng
0b05ebed2e 7092821: java.security.Provider.getService() is synchronized and became scalability bottleneck
Changed Provider class to use ConcurrentHashMap and default providers to use putService()

Reviewed-by: weijun, mullan
2018-12-13 01:15:21 +00:00
John Jiang
f47bd19cbc 8214520: [TEST_BUG] sun/security/mscapi/nonUniqueAliases/NonUniqueAliases.java failed with incorrect jtreg tags order
Reviewed-by: xuelei
2018-12-13 08:23:56 +08:00
Mark Reinhold
2556622607 8215301: Module-summary page is unreadably wide
Reviewed-by: mchung
2018-12-12 15:01:29 -08:00
Vivek Deshpande
05e175bf1b 8214751: X86: Support for VNNI Instructions
Co-authored-by: Razvan A Lupusoru <razvan.a.lupusoru@intel.com>
Reviewed-by: kvn
2018-12-12 14:48:34 -08:00
Roger Riggs
40d7e4c2e9 8215309: Convert package.html files to package-info.java files
Reviewed-by: darcy, lancea
2018-12-12 15:35:20 -05:00
Smita Kamath
3623c99b27 8214074: Ghash optimization using AVX instructions
Reviewed-by: kvn, ascarpino
2018-12-12 12:17:33 -08:00
Henry Jen
0e86ce5715 8215000: tools/launcher/JliLaunchTest.java fails on Windows
Reviewed-by: bchristi, mchung
2018-12-12 11:45:10 -08:00
Mandy Chung
85857dfe80 8215238: (jdeps) update jdk8_internals.txt per the removal of javafx, corba, EE modules
Reviewed-by: lancea, alanb
2018-12-12 11:17:21 -08:00
Toshio Nakamura
4de0c13ff8 8213183: InputMethod cannot be used after its restarting
Retains masks at XSelectInput and deletes all IM data at DestroyXIMCallback

Reviewed-by: naoto
2018-12-13 00:46:39 +09:00
Magnus Ihse Bursie
2e94091ff2 8215304: Make target "docs-jdk-index" has unnecessary dependencies
Reviewed-by: lancea
2018-12-12 19:04:05 +01:00
Magnus Ihse Bursie
0e9a8ba9f8 8214741: docs/index.html has no title or copyright
Reviewed-by: erikj
2018-12-12 18:59:23 +01:00
Magnus Ihse Bursie
6217349ee6 8214910: If pandoc is present, markdown spec files should be processed
Reviewed-by: erikj, lancea
2018-12-11 15:47:31 +01:00
Erik Joelsson
c25a638fd1 8215239: Make deletes images/jdk/bin/java if something goes wrong
Reviewed-by: redestad, dholmes, tbell, ihse
2018-12-12 09:50:39 -08:00
Erik Gahlin
8988f970df 8214750: Unnecessary <p> tags in jfr classes
Reviewed-by: mgronlun
2018-12-12 18:43:16 +01:00
Erik Gahlin
85ffc2803c 8165675: Trace event for thread park has incorrect unit for timeout
Reviewed-by: mgronlun
2018-12-12 18:35:26 +01:00
Erik Österlund
b7bd4bccbf 8215206: VtableStubs::find_stub is not appropriately protected by VtableStubs_lock
Reviewed-by: thartmann, pliden
2018-12-12 14:18:16 +01:00
Michihiro Horie
31fbc28af5 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
Reviewed-by: kvn, rriggs, mdoerr, gromero
2018-12-11 20:31:18 -05:00
Claes Redestad
d1ef9b19d7 8215159: Improve initial setup of system Properties
Reviewed-by: mchung, rriggs, plevart, briangoetz, robilad
2018-12-12 13:28:50 +01:00
Dmitrij Pochepko
ade1d52ab6 8205421: AARCH64: StubCodeMark should be placed after alignment
Reviewed-by: aph
2018-12-12 15:26:49 +03:00
Ralf Schmelter
8c4f51f666 8214892: Delayed starting of debugging via jcmd
Reviewed-by: cjplummer, clanger
2018-12-12 11:34:08 +00:00
Thomas Schatzl
7223ed2205 8152724: Sum of eden before GC and current survivor capacity may be larger than heap size
Limit the maximum survivor size for a given GC to the remaining number of free regions.

Reviewed-by: sjohanss, sangheki
2018-12-12 12:00:02 +01:00
Prasanta Sadhukhan
597c61458e Merge 2018-12-12 15:04:47 +05:30
Priya Lakshmi Muthuswamy
9d967e70fc 8214468: jQuery UI upgrade from 1.11.4 to 1.12.1
Reviewed-by: hannesw
2018-12-12 13:01:29 +05:30
Jini George
fdf7d4ec11 8200613: SA: jstack throws UnmappedAddressException with a CDS core file
Dump the closed archive heap space into the corefile on Linux by setting bit 2 of the coredump_filter file to dump the file backed private mappings.

Reviewed-by: iklam, cjplummer, kevinw, coleenp
2018-12-12 10:13:11 +05:30
Doug Lea
f4016e5582 8214457: Miscellaneous changes imported from jsr166 CVS 2018-12
Reviewed-by: martin
2018-12-11 19:55:27 -08:00
Doug Lea
8846159987 8214427: probable bug in logic of ConcurrentHashMap.addCount()
Reviewed-by: martin, dholmes
2018-12-11 19:55:27 -08:00
Doug Lea
6c78aa9571 8214559: Use {@systemProperty} for definitions of system properties
Reviewed-by: martin, jjg
2018-12-11 19:55:27 -08:00
Igor Veresov
8d8b784c9e 8215224: Update Graal
Reviewed-by: kvn
2018-12-11 16:50:43 -08:00
Kim Barrett
13b56530f4 8215097: Do not create NonJavaThreads before BarrierSet
G1 and CMS delay worker thread creation until BarrierSet exists.

Reviewed-by: dholmes, tschatzl
2018-12-11 18:00:17 -05:00
Naoto Sato
c2364ff9e0 8215194: Initial size of UnicodeBlock map is incorrect
Reviewed-by: rriggs, rgoel, igerasim
2018-12-11 13:13:18 -08:00
Stuart Marks
7cea6f6ac2 8199394: Object.hashCode should not mention anything about memory addresses
Reviewed-by: shade, forax, adinn, rriggs
2018-12-11 13:10:14 -08:00
Jean Christophe Beyler
019bd7cf2b 8215160: Normalize spaces for remaining vmTestbase tests
Add spaces where needed

Reviewed-by: sspitsyn, amenkov
2018-12-11 12:45:38 -08:00
Gerard Ziemski
9be447e22f 8214310: SymbolTable: Use get and insert
Replace get_insert() with get(),insert()

Reviewed-by: redestad, coleenp
2018-12-11 14:09:54 -06:00
Eric Caspole
b29a8205f1 8215140: Port missing crypto JMH micros from jmh-jdk-microbenchmarks
Reviewed-by: redestad
2018-12-11 14:09:55 -05:00
Jean Christophe Beyler
a16d122b07 8215161: Normalize spaces for vmTestbase/[a-j]
Added spaces around comparators

Reviewed-by: amenkov, sspitsyn, martin
2018-12-11 10:29:30 -08:00
Sean Mullan
dfd58a59ff 8207258: Distrust TLS server certificates anchored by Symantec Root CAs
Reviewed-by: weijun
2018-12-11 13:22:20 -05:00
Adam Petcher
e922ef3636 8214688: TLS 1.3 session resumption with hello retry request failed with "illegal_parameter"
Reviewed-by: jnimeh
2018-12-11 11:01:02 -05:00
Adam Petcher
3c12c4b0f3 8208698: Improved ECC Implementation
New implementation of ECDH and ECDSA forsome prime-order curves

Reviewed-by: ascarpino
2018-12-11 09:42:45 -05:00
Harold Seigel
b564c0c1a9 8215165: Improve -Xlog:class+preview message text
Fix up the logging message.

Reviewed-by: acorn, lfoltan
2018-12-11 10:29:08 -05:00
Daniel Fuchs
019a097385 8215008: Clear confusion between URL/URI paths and file system paths
Reviewed-by: alanb, chegar, martin
2018-12-11 15:09:15 +00:00
Jayathirth D V
74ffdff736 8214876: Add "intermittent" key for imageio/stream/StreamCloserLeak/run_test.sh
Reviewed-by: psadhukhan
2018-12-11 11:45:43 +05:30
Jayathirth D V
be6f55d297 8214817: Bad links in ImageInputStream.java & ImageOutputStream.java
Reviewed-by: aivanov, psadhukhan
2018-12-11 11:41:08 +05:30
Prasanta Sadhukhan
b3eb4c3ce8 Merge 2018-12-11 10:47:37 +05:30
Ying Zhou
e048289d95 8213409: Refactor sun.text.IntHashtable:i18n shell tests to plain java tests
Reviewed-by: naoto
2018-12-11 08:05:38 +08:00
Phil Race
8895605e66 8212703: Remove sun.java2d.fontpath property from java launcher code
Reviewed-by: alanb, rriggs
2018-12-10 12:33:23 -08:00
Igor Ignatyev
5ff302e6bb 8214917: CTW testlibrary shouldn't ignore errors raised by the library itself
Reviewed-by: kvn, roland
2018-12-10 11:04:55 -08:00
Patricio Chilano Mateo
bb6f1e7700 8215050: [TESTBUG] serviceability/tmtools/jstack/WaitNotifyThreadTest.java fails when run with flag -Xcomp
Identified special case when monitor address is not available in jstack

Reviewed-by: dholmes, hseigel, coleenp
2018-12-10 13:45:12 -05:00
Harold Seigel
5a23b59ca0 8215015: [TESTBUG] remove unneeded -Xfuture option from tests
Remove the option from the tests

Reviewed-by: lfoltan, coleenp
2018-12-10 13:24:17 -05:00
Gerard Ziemski
949269e785 8209387: Follow ups to JDK-8195100 Use a low latency hashtable for SymbolTable
Use size_t, replaced macros with const, reverted incorrect API name change.

Reviewed-by: coleenp, kbarrett
2018-12-10 11:59:55 -06:00
Erik Joelsson
c04c838b87 8215030: Disable shenandoah in Oracle builds
Reviewed-by: kbarrett
2018-12-10 09:51:23 -08:00
Thomas Schatzl
f2765739f7 8215149: TestOptionsWithRangesDynamic.java fails after JDK-8215120
Removed range specifier completely.

Reviewed-by: sjohanss, shade
2018-12-10 18:32:47 +01:00
Anthony Scarpino
2094d32f0f 8214098: sun.security.ssl.HandshakeHash.T12HandshakeHash constructor check backwards
Reviewed-by: xuelei
2018-12-10 09:19:30 -08:00
Dmitrij Pochepko
88c3b67eea 8215133: AARCH64: disable Math.log intrinsic publishing
Reviewed-by: aph
2018-12-10 19:34:53 +03:00
Dean Long
1191c7086e 8215117: [JVMCI] TestResolvedJavaType.java failing after JDK-8210031
Reviewed-by: thartmann
2018-12-10 06:52:12 -08:00
Roman Kennke
8b62a2ee9d 8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
Co-authored-by: Christine Flood <chf@redhat.com>
Co-authored-by: Aleksey Shipilev <shade@redhat.com>
Co-authored-by: Roland Westrelin <rwestrel@redhat.com>
Co-authored-by: Zhenygu Gu <zgu@redhat.com>
Co-authored-by: Andrew Haley <aph@redhat.com>
Co-authored-by: Andrew Dinn <adinn@redhat.com>
Co-authored-by: Mario Torre <mtorre@redhat.com>
Reviewed-by: kvn, roland, shade, coleenp, lmesnik, pliden, jgeorge, ihse, erikj
2018-12-10 15:47:44 +01:00
Boris Ulasevich
0639a6303b 8214128: ARM32: wrong stack alignment on Deoptimization::unpack_frames
Reviewed-by: dsamersoff
2018-12-10 17:34:49 +03:00
Aleksey Shipilev
df71ef8c78 8215120: 32-bit build failures after JDK-8212657 (Promptly Return Unused Committed Memory from G1)
Reviewed-by: tschatzl, rkennke
2018-12-10 15:31:36 +01:00
Dmitrij Pochepko
1f26d09d50 8214961: AARCH64: wrong encoding for exclusive and atomic load/stores
Reviewed-by: aph
2018-12-10 17:31:16 +03:00
Ao Qi
3c0acaf846 8215129: Update build documentation with Xrandr
Reviewed-by: ihse
2018-12-10 14:54:04 +01:00
Jini George
36ded09992 8215026: Incorrect amount of memory unmapped with ImageFileReader::close()
Use map_size() instead of _index_size as the amount of memory to be unmapped while closing an image file

Reviewed-by: alanb, jlaskey
2018-12-10 19:08:24 +05:30
Gary Adams
b3a5c111db 8210106: sun/tools/jps/TestJps.java timed out
Reviewed-by: dholmes, dcubed
2018-12-10 07:52:31 -05:00
Thomas Schatzl
49efeb69ff 8212657: Implementation of JDK-8204089 Promptly Return Unused Committed Memory from G1
Issue optional, default enabled, concurrent cycles when the VM is idle to reclaim unused internal and Java heap memory.

Co-authored-by: Rodrigo Bruno <rbruno@gsd.inesc-id.pt>
Co-authored-by: Ruslan Synytsky <rs@jelastic.com>
Reviewed-by: sjohanss, sangheki
2018-12-10 10:25:27 +01:00
Magnus Ihse Bursie
044dd119da 8214780: Create pandoc package for Windows
Reviewed-by: erikj
2018-12-10 09:37:18 +01:00
Man Cao
fcc8504537 8215043: Remove declaration of parallel_worker_threads
Removing unused declaration

Reviewed-by: eosterlund, tschatzl
2018-12-09 19:18:27 -08:00
Martin Buchholz
100d5f79a6 8215048: Some classloader typos
Reviewed-by: alanb
2018-12-09 10:07:18 -08:00
Vicente Romero
9846588b31 8210031: implementation for JVM Constants API
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Reviewed-by: jrose, mcimadamore, darcy, mchung, rriggs, dholmes, forax
2018-12-09 12:36:24 -05:00
Kim Barrett
b80d335354 8214315: G1: fatal error: acquiring lock SATB_Q_FL_lock/1 out of order with lock tty_lock/0
Add new 'tty' lock rank.

Reviewed-by: eosterlund, tschatzl
2018-12-08 18:52:57 -05:00
Erik Gahlin
5c30297045 8213617: JFR should record the PID of the recorded process
Reviewed-by: mgronlun
2018-12-08 17:41:17 +01:00
Erik Gahlin
8bc45e7b29 8213966: The ZGC JFR events should be marked as experimental
Reviewed-by: pliden
2018-12-08 14:08:04 +01:00
Dean Long
14c389333c 8214023: Update Graal
Reviewed-by: kvn
2018-12-08 00:56:10 -08:00
Sergey Ustimenko
cbfc7cb312 8214052: [testbug] vmTestbase/vm/compiler/CodeCacheInfoOnCompilation - wrong shell used
Reviewed-by: jwilhelm
2018-12-08 05:04:19 +01:00
Coleen Phillimore
0be6d52f4d 8215034: Remove old HOTSWAP conditionals
Reviewed-by: dcubed, jiangli, sspitsyn
2018-12-07 17:20:44 -05:00
Coleen Phillimore
3d0faa649c 8214972: Uses of klass_holder() except GC need to apply GC barriers
Fix klass_holder() and make all callers use it, remove holder_phantom().

Reviewed-by: eosterlund, dlong
2018-12-07 14:48:35 -05:00
Patricio Chilano Mateo
0a8c4491c2 8214148: [TESTBUG] serviceability/tmtools/jstack/WaitNotifyThreadTest.java is not doing what is expected
Fixed the logic for checking method name and added checks for thread status

Reviewed-by: dholmes, coleenp
2018-12-07 13:59:19 -05:00
Zhengyu Gu
b9769c732e 8204947: Port ShenandoahTaskTerminator to mainline and make it default
Reviewed-by: tschatzl, rkennke
2018-12-07 13:55:06 -05:00
Steve Groeger
4de59847eb 8211844: [aix] ProcessBuilder: Piping between created processes does not work
Reviewed-by: cjplummer, simonis, goetz
2018-12-07 14:35:57 +01:00
Adam Petcher
7305281552 8208648: ECC Field Arithmetic Enhancements
Interal library enhancements to support ECC implementatation

Reviewed-by: jnimeh
2018-12-11 09:36:49 -05:00
Magnus Ihse Bursie
8c00337375 8215131: Pandoc 2.3/build documentation fixes
Reviewed-by: erikj
2018-12-11 15:21:50 +01:00
Magnus Ihse Bursie
c235d97d2a 8214720: Add pandoc filter to improve html man page output
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Reviewed-by: erikj
2018-12-11 15:18:57 +01:00
Erik Österlund
9897ff01e9 8214897: ZGC: Concurrent Class Unloading
Co-authored-by: Per Liden <per.liden@oracle.com>
Co-authored-by: Stefan Karlsson <stefan.karlsson@oracle.com>
Reviewed-by: pliden
2018-12-11 11:08:39 +01:00
Jan Lahoda
cc116b1259 8214491: Upgrade to JLine 3.9.0
Upgrading JLine to 3.9.0 and updating jshell and jjs to the new JLine.

Reviewed-by: rfield, sundar
2018-12-11 11:29:28 +01:00
Martin Doerr
418ce1d421 8215144: PPC64: Wrong assertion "illegal object size"
Reviewed-by: simonis
2018-12-11 10:15:28 +01:00
Jan Lahoda
655c5d7f35 8214114: Switch expressions with try-catch statements
When switch expression contains try-catch, move the stack values into locals before the executing the switch expression, and back when it is done.

Reviewed-by: mcimadamore, vromero
2018-12-11 09:10:24 +01:00
Man Cao
df4b7015bf 8213224: Move code related to GC threads calculation out of AdaptiveSizePolicy
Consolidate code related to GC threads calculation into a single class

Reviewed-by: tschatzl, pliden
2018-12-07 12:46:31 +08:00
Erik Gahlin
714b05023e 8213421: Line number information for execution samples always 0
Reviewed-by: mgronlun
2018-12-07 18:00:41 +01:00
Roger Riggs
938b844088 8214971: Replace use of string.equals("") with isEmpty()
Reviewed-by: jlaskey, prappo, lancea, dfuchs, redestad
2018-12-07 11:51:17 -05:00
Erik Gahlin
df5b42f33b 8212232: Wrong metadata for the configuration of the cutoff for old object sample events
Reviewed-by: mgronlun
2018-12-07 17:11:17 +01:00
Dmitry Chuyko
e308392c73 8214376: Don't use memset to initialize array of Bundle in output.cpp
Reviewed-by: thartmann, shade
2018-12-07 17:52:37 +03:00
Erik Gahlin
a78aef8d3d 8207829: FlightRecorderMXBeanImpl is leaking the first classloader which calls it
Reviewed-by: mgronlun
2018-12-07 14:19:20 +01:00
Harold Seigel
a4a38e6f44 8214840: runtime/NMT/MallocStressTest.java timed out
Add volatile to declaration of static field shared by multiple threads

Reviewed-by: dcubed, dholmes, coleenp
2018-12-07 08:16:50 -05:00
Stefan Johansson
37f135132e 8213890: Implementation of JEP 344: Abortable Mixed Collections for G1
Co-authored-by: Erik Helin <erik.helin@oracle.com>
Reviewed-by: tschatzl, kbarrett
2018-12-07 13:54:45 +01:00
Erik Österlund
0874f1945e 8214936: assert(_needs_refill == 0) failed: Forgot to handle a failed IC transition requiring IC stubs
Reviewed-by: kvn, thartmann, pliden
2018-12-07 13:15:35 +01:00
Thomas Schatzl
3981414bce 8215005: Missing include of runtime/os.hpp in zError.cpp after JDK-8214925 breaks build without precompiled headers
Reviewed-by: shade
2018-12-07 11:15:18 +01:00
Prasanta Sadhukhan
a5ed4e3e73 8214943: PIT: javax/swing/JFrame/NSTexturedJFrame/NSTexturedJFrame.java errors out in mac
Reviewed-by: kaddepalli, serb
2018-12-07 09:38:07 +05:30
Kevin Rushforth
8930ccc643 8214805: Mark deprecated netscape.javascript.JSObject::getWindow API forRemoval=true
Reviewed-by: prr, serb
2018-12-06 10:50:44 -08:00
Dmitry Markov
34b2a6dde9 8213983: [macosx] Keyboard shortcut “cmd +`” stops working properly if popup window is displayed
Reviewed-by: kaddepalli, serb
2018-12-06 13:32:15 +00:00
Ichiroh Takiguchi
88e3ba683b 8214002: Cannot use italic font style if the font has embedded bitmap
Reviewed-by: prr
2018-12-05 12:59:50 -08:00
Prasanta Sadhukhan
fdde029eda 8213049: Invalid HTML5 in javax.swing files
Reviewed-by: aivanov, serb
2018-12-05 15:48:47 +05:30
Prasanta Sadhukhan
492377ed6a Merge 2018-12-05 15:42:29 +05:30
Prasanta Sadhukhan
9c22151345 Merge 2018-12-05 15:39:04 +05:30
Frank Yuan
2c02822742 8213300: jaxp/unittest/transform/CR6551600Test.java fails due to exception in jdk/jdk CI
Reviewed-by: joehw
2018-12-05 16:41:13 +08:00
Sergey Bylokhov
9c836369af 8198398: Test javax/swing/JColorChooser/Test6199676.java fails in mach5
Reviewed-by: kaddepalli, prr
2018-12-04 13:09:20 -08:00
Nils Eliasson
4246096355 8214773: Replace use of thread unsafe strtok
Reviewed-by: thartmann, dholmes
2018-12-04 18:55:06 +01:00
Athijegannathan Sundararajan
a1c8528d3f 8212137: Remove JrtFileSystem finalize method
Reviewed-by: alanb
2018-12-07 14:36:43 +05:30
Matthias Baesken
f8ccc8393b 8214944: replace strerror by os::strerror
Reviewed-by: dholmes, neliasso
2018-12-06 09:48:33 +01:00
Dmitry Chuyko
75822e9f7a 8214707: Prevent GCC 8 from reporting error in ClassLoader::file_name_for_class_name()
Reviewed-by: hseigel, dholmes
2018-12-07 10:48:39 +03:00
Jamil Nimeh
9947fc1532 8214129: SSL session resumption/SNI with TLS1.2 causes StackOverflowError
Reviewed-by: xuelei, jjiang
2018-12-06 22:05:31 -08:00
Dora Zhou
ffccf955f5 8213127: Refactor test/java/util/ResourceBundle/Control/MissingResourceCauseTest.sh to plain java tests
Reviewed-by: naoto
2018-12-06 18:46:08 -08:00
Erik Gahlin
79e3f56e80 8214925: JFR tool fails to execute
Reviewed-by: mgronlun, mseledtsov
2018-12-06 23:38:22 +01:00
Stuart Marks
4ecdb03864 8211882: Broken links in serialized-form.html
Reviewed-by: darcy, lancea
2018-12-06 14:34:11 -08:00
Jean Christophe Beyler
748821972a 8214531: HeapMonitorEventOnOffTest.java test fails with "Statistics should be null to begin with"
Remove the enable sampling and let the underlying method call it

Reviewed-by: sspitsyn, phh
2018-12-06 14:18:39 -08:00
Vicente Romero
2cbcba3afc 8214514: javac @file option gives error caused by Chinese encoding in the path
Reviewed-by: jjg
2018-12-06 15:51:19 -05:00
Eric Caspole
89f719be62 Merge 2018-12-06 13:54:52 -05:00
Eric Caspole
ebbbb4f9d6 8214912: LogCompilation: Show the comp level
Show the TieredCompilation level from the xml log

Reviewed-by: kvn, iignatyev
2018-12-06 13:54:19 -05:00
Erik Österlund
93fb595b61 8214401: [AOT] crash in ClassLoaderData::is_alive() with AOTed jdk.base
Reviewed-by: kvn, dlong
2018-12-06 18:11:53 +01:00
Lois Foltan
99bcec08b1 8214275: CondyRepeatFailedResolution asserts "Dynamic constant has no fixed basic type"
GenerateOopMap::do_ldc must check for a DynamicInError as well as a Dynamic constant pool tag.

Reviewed-by: coleenp
2018-12-06 10:46:10 -05:00
Ichiroh Takiguchi
eee1a6fab0 8212794: IBM-964 is required for AIX default charset
Reviewed-by: rriggs, ihse, alanb
2018-12-06 10:22:23 -05:00
Roger Riggs
2e724a371a 8214498: java/util/Locale/bcp47u/SystemPropertyTests.java wrong locale default
Reviewed-by: lancea, bpb
2018-12-06 09:55:02 -05:00
Harold Seigel
145582dfa1 8214807: Improve handling of very old class files
Remove old version specific code in reflection.cpp

Reviewed-by: acorn, dholmes
2018-12-06 09:58:26 -05:00
Thomas Schatzl
528361f7ae 8214850: Rename vm_operations.?pp files to vmOperations.?pp files
Reviewed-by: dholmes, coleenp
2018-12-06 15:44:40 +01:00
Thomas Schatzl
eb5557a98e 8214791: Consistently name gc files containing VM operations
Name all gc files containing VM operations according to a <gc>VMOperations.?pp.

Reviewed-by: coleenp, dholmes
2018-12-06 15:44:13 +01:00
Thomas Schatzl
613912a595 8159440: Move marking of promoted objects during initial mark into the concurrent phase
Reviewed-by: sjohanss, kbarrett
2018-12-06 13:55:22 +01:00
Thomas Schatzl
b1c5e310ac 8193312: Rename VM_CGC_Operation to VM_G1Concurrent
Reviewed-by: pliden, sjohanss, jgeorge
2018-12-06 13:55:22 +01:00
Prasanta Sadhukhan
5f2062b484 Merge 2018-12-04 13:35:04 +05:30
Ioi Lam
a0a108fb01 8214388: CDS dumping fails with java heap fragmentation
Force a full GC with a single thread before writing heap archive regions

Reviewed-by: sjohanss, jiangli
2018-12-03 22:27:24 -08:00
Jini George
ea532aa075 8213323: sa/TestJmapCoreMetaspace.java and sa/TestJmapCore.java fail with ZGC
Avoid creating the hprof file and throw an exception in HeapHprofBinWriter for ZGC and handle this in the TestJmap* testcases

Reviewed-by: gadams, jcbeyler, cjplummer
2018-12-04 11:10:19 +05:30
Jean Christophe Beyler
54dda86a98 8214502: Add space after/before {} in remaining vmTestbase tests
Added spaces around the {}

Reviewed-by: dholmes, sspitsyn
2018-12-03 19:47:37 -08:00
Jonathan Gibbons
5067ff8509 8214745: Bad link in coll-reference.html
Reviewed-by: martin, bpb, lancea
2018-12-03 16:44:57 -08:00
Jonathan Gibbons
99f78427f2 8214744: Unnecessary <p> tags in java.util.zip.Deflater
Reviewed-by: mchung, lancea
2018-12-03 16:14:15 -08:00
Sergey Bylokhov
8c7140f4fe 8212680: (JDK12b14/Solaris-sparc) SplashScreen::getSplashScreen call fails with ULE: "libsplashscreen.so: ld.so.1: java: fatal: libz.so.1: open failed: No such file or directory"
Reviewed-by: prr, ihse, erikj
2018-12-03 16:12:33 -08:00
Ioi Lam
fe1b0be809 8214726: Typo in HeapShared::check_closed_archive_heap_region_object
Reviewed-by: lfoltan
2018-12-03 15:53:01 -08:00
Magnus Ihse Bursie
e7aa2c0951 8213187: Handle libwindowsaccessbridge need to access MSVCRT functions
Reviewed-by: erikj
2018-12-03 18:48:01 +01:00
Magnus Ihse Bursie
3474e9a9fe 8214718: Update missing copyright year in build system
Reviewed-by: erikj, tbell
2018-12-03 18:46:10 +01:00
Magnus Ihse Bursie
232f5146ce 8214710: Fix hg log in update_copyright_year.sh
Reviewed-by: alanb, tbell, erikj
2018-12-03 18:44:45 +01:00
Magnus Ihse Bursie
12bd34fa84 8214311: dtrace gensrc has missing dependencies
Reviewed-by: tbell, erikj
2018-12-03 18:43:24 +01:00
Weijun Wang
3254283f79 8210476: sun/security/mscapi/PrngSlow.java fails with Still too slow
Reviewed-by: xuelei, igerasim, rriggs
2018-12-03 23:58:15 +08:00
Erik Österlund
86a41aa926 8214523: Fix nmethod asserts for concurrent nmethod unloading
Reviewed-by: coleenp, kvn
2018-12-03 14:16:39 +01:00
Per Lidén
fff6e05c96 8214377: ZGC: Don't use memset to initialize array of ZForwardingTableEntry
Reviewed-by: rkennke, eosterlund
2018-12-03 14:52:49 +01:00
Per Lidén
8fc0c2f645 8214476: ZGC: Build ZGC by default
Reviewed-by: shade, rkennke, ihse
2018-12-03 14:52:49 +01:00
Per Lidén
6c7781572c 8214484: ZGC: Exclude SA tests ClhsdbJhisto and TestHeapDumpFor*
Reviewed-by: shade, tschatzl
2018-12-03 14:52:49 +01:00
Jan Lahoda
504dfa5de0 8214529: Exception while using Anonymous class in switch expression
Clearing breakResult when creating methodEnv.

Reviewed-by: mcimadamore
2018-12-03 14:25:00 +01:00
Dmitry Chuyko
a971050bff 8214444: Wrong strncat limits in dfa.cpp
Reviewed-by: kvn
2018-12-03 14:28:19 +03:00
Roland Westrelin
136295d845 8214857: "bad trailing membar" assert failure at memnode.cpp:3220
Reviewed-by: adinn, thartmann
2018-12-03 10:51:03 +01:00
Claes Redestad
c9c59d3155 8214858: Improve module graph archiving
Reviewed-by: jiangli, alanb
2018-12-06 12:51:13 +01:00
Hannes Wallnöfer
c0099a8a0d 8214571: -Xdoclint of array serialField gives "error: array type not allowed here"
Reviewed-by: jjg, sundar
2018-12-06 12:34:28 +01:00
Tobias Hartmann
d4acf96543 8208277: Code cache heap (-XX:ReservedCodeCacheSize) doesn't work with 1GB LargePages
Use huge pages for code cache if ReservedCodeCacheSize == InitialCodeCacheSize

Reviewed-by: kvn
2018-12-06 10:07:54 +01:00
Nishit Jain
4a28e27fd2 8177552: Compact Number Formatting support
Reviewed-by: naoto, rriggs
2018-12-06 12:39:28 +05:30
Priya Lakshmi Muthuswamy
f3646ad79b 8214856: Errors with JSZip in web console after upgrade to 3.1.5
Reviewed-by: hannesw
2018-12-06 11:54:39 +05:30
Leonid Mesnik
c49b882dd1 8210107: vmTestbase/nsk/stress/network tests fail with Cannot assign requested address (Bind failed)
Reviewed-by: dholmes, mseledtsov, chegar
2018-12-05 21:18:27 -08:00
Igor Ignatyev
0c874a3d5d 8214915: CtwRunner misses export for jdk.internal.access
Reviewed-by: kvn
2018-12-05 20:59:55 -08:00
John Jiang
3525e4e27f 8214459: NSS source should be removed
Remove test/jdk/sun/security/pkcs11/nss/src

Reviewed-by: valeriep
2018-12-06 10:05:29 +08:00
Liam Miller-Cushon
7f365fffbd 8214902: Pretty-printing marker annotations add unnecessary parenthesis
Reviewed-by: jjg
2018-12-05 11:31:20 -08:00
Mikhailo Seledtsov
54cc30e6c1 8214906: [TESTBUG] jfr/event/sampling/TestNative.java fails with UnsatisfiedLinkError
Fixed the name of native method to reflect correct package

Reviewed-by: mgronlun
2018-12-05 17:50:14 -08:00
Jesper Wilhelmsson
f79e32a313 Added tag jdk-12+23 for changeset eef755718cb2 2018-12-06 00:44:13 +01:00
Igor Ignatyev
4a87a423d3 8214908: add ctw tests for jdk.jfr and jdk.management.jfr modules
Reviewed-by: kvn
2018-12-05 16:22:22 -08:00
Brian Burkhalter
4a028afe5e 6516099: InputStream.skipFully(int k) to skip exactly k bytes
Reviewed-by: rriggs, bchristi, serb, dfuchs
2018-12-05 15:58:46 -08:00
Hannes Wallnöfer
74fa722567 8214795: Add safety check to dynalink inner class lookup
Reviewed-by: sundar, attila
2018-12-05 19:17:22 +01:00
Erik Österlund
055ed2b789 8214257: IC cache not clean after cleaning assertion failure
Reviewed-by: kvn, thartmann
2018-12-05 16:11:53 +01:00
Erik Österlund
e303e31317 8214338: Move IC stub refilling out of IC cache transitions
Reviewed-by: dlong, rbackman
2018-12-05 15:57:26 +01:00
Sean Coffey
441d285620 8213952: Relax DNSName restriction as per RFC 1123
Reviewed-by: weijun, mullan, chegar
2018-12-05 17:33:01 +00:00
Erik Gahlin
69f0bf41d9 8214896: JFR Tool left files behind
Reviewed-by: mgronlun
2018-12-05 18:08:50 +01:00
Per Lidén
9b6ea802b5 8214786: Remove unused ThreadLocalAllocBuffer::verify()
Reviewed-by: kbarrett, eosterlund
2018-12-05 17:11:22 +01:00
Per Lidén
dc8383c930 8214785: Remove unused WeakHandleType::vm_string
Reviewed-by: coleenp, eosterlund
2018-12-05 17:11:21 +01:00
Per Lidén
602d095268 8214782: Add missing access barriers on CLD handle area
Reviewed-by: coleenp, eosterlund
2018-12-05 17:11:20 +01:00
Per Lidén
bfbeb1fe9e 8214784: Adjust Dictionary and JNIHandle verification
Reviewed-by: coleenp, eosterlund
2018-12-05 17:11:19 +01:00
Erik Gahlin
afdb850f87 8205516: JFR tool
Reviewed-by: mgronlun
2018-12-05 16:40:12 +01:00
Vicente Romero
a4d8574130 8213703: LambdaConversionException: Invalid receiver type not a subtype of implementation type interface
Reviewed-by: mcimadamore
2018-12-05 09:34:01 -05:00
Athijegannathan Sundararajan
3883078d21 8206962: jlink --release-info=del throws NPE if no keys are specified
Reviewed-by: alanb
2018-12-05 19:22:04 +05:30
Erik Österlund
e03d20eb41 8214302: Allow safely calling is_unloading() on zombie nmethods
Reviewed-by: kvn, pliden
2018-12-05 11:01:44 +01:00
Erik Österlund
cb1aebae6e 8214522: Last runtime locking issues for concurrent class unloading
Reviewed-by: coleenp, pliden
2018-12-05 08:55:42 +01:00
Jan Lahoda
835c863ba8 8214031: Assertion error in value break statement with conditional operator in switch expression
Correcting handling of boolean-valued switch expressions when true/false; generating them directly rather than desugaring in Lower.

Reviewed-by: mcimadamore
2018-12-03 10:37:36 +01:00
Nishit Jain
b31f251889 8213294: Upgrade IANA LSR data
Reviewed-by: naoto
2018-12-03 12:35:27 +05:30
Krishna Addepalli
2146e52cfa 7124301: [macosx] When in a tab group if you arrow between tabs there are noVoiceOver announcements
7124298: [macosx] Nothing heard from VoiceOver when tabbing between a nestedtab group and a parent tab group

Reviewed-by: serb, sveerabhadra
2018-12-03 06:59:19 +05:30
Ichiroh Takiguchi
98287928da 8213618: IBM970 charset has missing entry and remove unexpected entries
Reviewed-by: srl, martin
2018-12-02 11:09:46 -08:00
Weijun Wang
320616a865 8214179: Add groupname info into keytool -list and -genkeypair output
Reviewed-by: mullan
2018-12-01 21:58:05 +08:00
Ekaterina Pavlova
97bccb2053 8214557: Filter out VM flags which don't affect AOT code generation
Reviewed-by: kvn, erikj
2018-11-30 23:46:20 -08:00
Prasanta Sadhukhan
1a1e63be07 8213051: Invalid use of HTML5 in javax.print files
Reviewed-by: aivanov, serb
2018-12-01 09:37:19 +05:30
Sergey Bylokhov
76b33870c7 8211147: Incorrect comparator com.sun.beans.introspect.MethodInfo.MethodOrder
Reviewed-by: prr
2018-11-30 15:54:34 -08:00
Phil Race
bd13529c0c 8214558: bad @run tag in CheckPrinterJobSystemProperty.java
Reviewed-by: serb
2018-11-30 15:05:36 -08:00
Brian Burkhalter
389a110e56 8214195: Align stdout messages in test/jdk/java/math/BigInteger/PrimitiveConversionTests.java
Reviewed-by: lancea
2018-11-30 14:48:44 -08:00
Priyanka Mangal
7c6cb8cd7e 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
Reviewed-by: alanb, ihse
2018-11-30 13:42:49 -08:00
Joe Wang
3995ae1270 8213734: SAXParser.parse(File, ..) does not close resources when Exception occurs
Reviewed-by: lancea
2018-11-30 12:41:00 -08:00
Calvin Cheung
bd1cf50953 8210102: CDS tests timed out
Increase the timeout to 160s for the DifferentHeapSizes test.

Reviewed-by: iklam
2018-11-30 12:24:23 -08:00
Andrew Brygin
b2980a2d71 8139178: Wrong fontMetrics when printing in Landscape (OpenJDK)
Reviewed-by: prr
2018-11-30 23:21:05 +03:00
Phil Race
b8c9517a0d 8214552: Resolve clash between 4947890 and 8130264
Reviewed-by: rriggs, mchung
2018-11-30 12:21:39 -08:00
Phil Race
7fe615f9a7 8130264: change the mechanism by which JDK loads the platform-specific PrinterJob implementation
Reviewed-by: serb, rriggs
2018-11-30 10:55:59 -08:00
Erik Österlund
f65538cbda 8214231: Allow concurrent cleaning of TypeStackSlotEntries and ReturnTypeEntry
Reviewed-by: rehn, coleenp
2018-11-30 16:51:23 +01:00
Erik Österlund
50ffeaa507 8213209: [REDO] Allow Klass::_subklass and _next_sibling to have unloaded classes
Reviewed-by: coleenp, dlong
2018-11-30 15:29:19 +01:00
Hannes Wallnöfer
ecd39c9ede 8214525: Bit rot in Nashorn Ant script
Reviewed-by: attila, jlaskey
2018-11-30 15:43:37 +01:00
Hannes Wallnöfer
d08e20700d 8210943: Hiding of inner classes not resolved properly
Reviewed-by: attila, jlaskey
2018-11-30 15:39:27 +01:00
Roland Westrelin
6cbb52dc24 8214541: ZGC: Refactoring from JDK-8214172 may leave PhaseIterGVN::_delay_transform set
Reviewed-by: eosterlund
2018-11-30 15:22:44 +01:00
Daniil Titov
cbaebf738e 8214572: [Graal] nsk/jvmti/unit/ForceEarlyReturn/earlyretbase should not suspend the thread when the top frame executes JVMCI code
Reviewed-by: sspitsyn, dholmes, jcbeyler
2018-12-04 21:13:45 -08:00
Vladimir Ivanov
b93b62c2c9 8146090: java/lang/ref/ReachabilityFenceTest.java fails with -XX:+DeoptimizeALot
Reviewed-by: dholmes, iignatyev
2018-12-04 17:18:11 -08:00
Weijun Wang
8036ce51b2 8214513: A PKCS12 keystore from Java 8 using custom PBE parameters cannot be read in Java 11
Reviewed-by: mullan
2018-12-05 08:48:49 +08:00
Joe Wang
bffe795d2d 8213325: (props) Properties.loadFromXML does not fully comply with the spec
Reviewed-by: alanb, rriggs, dfuchs, naoto
2018-12-04 14:53:00 -08:00
Roger Riggs
f0279fd499 8214794: java.specification.version should be only the major version number
Reviewed-by: martin, mchung, bpb
2018-12-04 15:22:41 -05:00
Calvin Cheung
4e935d302a 8214728: Unnecessary InstanceKlass::cast at few places
Reviewed-by: lfoltan, jiangli, coleenp
2018-12-04 11:54:09 -08:00
Naoto Sato
3d0ccc7ec9 8214770: java/time/test/java/time/format/TestNonIsoFormatter.java failed in non-english locales
Reviewed-by: lancea, bpb
2018-12-04 11:10:14 -08:00
Roger Riggs
53b849e17e 8171426: java/lang/ProcessBuilder/Basic.java failed Stream closed
Reviewed-by: bpb, jlaskey
2018-12-04 12:26:49 -05:00
Simon Tooke
2dd1c19b64 8214061: Buffer written into itself
Actually write the msg text into the buffer.

Reviewed-by: dcubed, sgehwolf, sspitsyn
2018-12-04 17:54:13 +01:00
Erik Österlund
02688398e1 8214556: Crash in DependencyContext::remove_dependent_nmethod still happens
Reviewed-by: kvn, kbarrett
2018-12-04 17:14:11 +01:00
Aleksey Shipilev
b6fce5bbd4 8214787: Zero builds fail with "undefined JavaThread::thread_state()"
Reviewed-by: stuefe, zgu
2018-12-04 15:47:05 +01:00
Gary Adams
ec1f026392 8214300: .attach_pid files may remain in the process cwd
Reviewed-by: sspitsyn, cjplummer, jcbeyler
2018-12-04 07:06:38 -05:00
Gary Adams
b4630d6207 8176828: jtools do not list VM process launched with the debugger option suspend=y
Reviewed-by: dholmes, cjplummer
2018-12-04 07:09:02 -05:00
Lutz Schmidt
8e05550ef3 8214526: Change CodeHeap State Analytics control from UL to Print*
Reviewed-by: coleenp, kvn, stuefe, thartmann
2018-12-04 11:57:18 +01:00
Erik Helin
45628a358a 8214230: Classes generated by SystemModulesPlugin.java are not reproducable
Reviewed-by: alanb, redestad, mchung
2018-12-04 09:30:10 +01:00
Volker Simonis
3e2804d0d8 8214534: Setting of THIS_FILE in the build is broken
Reviewed-by: erikj, ihse
2018-12-04 09:28:11 +01:00
Adam Farley
a9250518e0 8214063: OpenJDK will not build on AIX while using the xlc 13.1 compiler
Reviewed-by: simonis, erikj, ihse, stuefe, mbaesken
2018-12-04 09:08:03 +01:00
Matthias Baesken
542ddf4f4d 8214380: AwtDragSource function LoadCache misses a ReleaseLongArrayElements in special case
Reviewed-by: serb, stuefe
2018-11-30 13:31:31 +01:00
Jayathirth D V
e4a3d4e455 8212875: ftp: links for tiff/TTN2.draft.txt do not respond
Reviewed-by: serb
2018-11-30 17:14:48 +05:30
Erik Österlund
3a5bccf5c6 8213565: Crash in DependencyContext::remove_dependent_nmethod
Reviewed-by: rehn, kvn
2018-11-30 11:40:48 +01:00
Yasumasa Suenaga
a2bbc9c091 8214499: SA should follow 8150689
Reviewed-by: dholmes, jgeorge
2018-11-30 20:15:25 +09:00
Prasanta Sadhukhan
249d8e9d98 8214470: PIT: javax/swing/JPopupMenu/7154841/bug7154841.java errors out on mac10.13
Reviewed-by: jdv, serb
2018-11-30 10:55:42 +05:30
Sergey Bylokhov
a11452c9ed 8198339: Test javax/swing/border/Test6981576.java is unstable
Reviewed-by: kaddepalli, psadhukhan
2018-11-29 16:22:49 -08:00
Dmitry Markov
8a217022ca 8213583: Error while opening the JFileChooser when desktop contains shortcuts pointing to deleted files
Reviewed-by: kaddepalli, aivanov, serb
2018-11-29 15:17:58 +00:00
Krishna Addepalli
3b08bdb0c7 8213048: Invalid use of HTML5 in java.awt files
Reviewed-by: serb, pbansal, aivanov
2018-11-29 15:21:10 +05:30
Prasanta Sadhukhan
81a8e473dc Merge 2018-11-29 14:32:23 +05:30
Jakub Vanek
e4446cf0be 8214465: Upgrade arm-sflt minimum architecture to ARMv5TE for assembler
Reviewed-by: erikj, dholmes
2018-11-29 00:51:58 -05:00
Jakub Vanek
0c151cbbae 8214466: Append assembler flags on ARM targets
Reviewed-by: erikj, dholmes
2018-11-29 00:49:27 -05:00
Jakub Vanek
b2bf2d252b 8214332: Add a flag for overriding default JNI library search path
Reviewed-by: erikj, dholmes
2018-11-28 22:29:35 -05:00
Stuart Marks
9aff87efc9 8214460: MacosX build is broken because of JDK-8214014
Reviewed-by: dholmes, tbell
2018-11-28 18:16:39 -08:00
Jesper Wilhelmsson
09e146ba88 Added tag jdk-12+22 for changeset 732bec44c89e 2018-11-29 02:11:44 +01:00
Hamlin Li
9ed40ce6c5 8214431: tests failed because can't find jdk.testlibrary.* in test directory or libraries
Reviewed-by: chegar, ctornqvi, dholmes
2018-11-29 07:40:45 +08:00
Doug Lea
53d3a4f50c 8211283: Miscellaneous changes imported from jsr166 CVS 2018-11
Reviewed-by: martin, chegar
2018-11-28 15:25:14 -08:00
Doug Lea
5a5aa52772 8211877: Broken links in java.util.concurrent.atomic
Reviewed-by: martin, jjg
2018-11-28 15:25:14 -08:00
Doug Lea
5d11c7bd0c 8212899: java/util/concurrent/tck/JSR166TestCase.java - testMissedSignal_8187947(SubmissionPublisherTest): timed out waiting for CountDownLatch for 40 sec
Reviewed-by: martin, dholmes
2018-11-28 15:25:14 -08:00
Martin Buchholz
7212bf0a77 8213406: (fs) More than one instance of built-in FileSystem observed in heap
Reviewed-by: alanb, cushon, weijun
2018-11-28 14:28:28 -08:00
Kim Barrett
978c78f7fc 8214278: Cleanup process_completed_threshold and related state
Change types, normalize names, remove special values.

Reviewed-by: tschatzl, sjohanss
2018-11-28 16:05:48 -05:00
Roger Riggs
48d68d182a 8214014: Remove vestiges of gopher: protocol proxy support
Reviewed-by: lancea, alanb
2018-11-28 16:04:36 -05:00
Roger Riggs
c1034b1cad 4947890: Minimize JNI upcalls in system-properties initialization
Reviewed-by: erikj, mchung, bchristi, ihse, coleenp, stuefe
2018-11-28 15:53:49 -05:00
Lance Andersen
94f0c828e3 8210454: jar tool does not allow setting the module version without also setting the main class
Reviewed-by: alanb, mchung, chegar
2018-11-28 14:49:19 -05:00
Jean Christophe Beyler
42563fdad8 8214408: Migrate EventsOnOff to using the same allocateAndCheck method
Move code to the more stable version used by other tests

Reviewed-by: sspitsyn, amenkov
2018-11-28 11:09:27 -08:00
Joe Wang
5f05f78bd4 8213117: adoptNode corrupts attribute values
Reviewed-by: lancea
2018-11-28 10:30:15 -08:00
Ioi Lam
16dc8e9634 8213275: ReplaceCriticalClasses.java fails with jdk.internal.vm.PostVMInitHook not found
Reviewed-by: lfoltan, sspitsyn, shade
2018-11-28 07:51:15 -08:00
Volker Simonis
631decbf2f 8214343: Handle the absence of Xrandr more generically
Reviewed-by: stuefe, erikj, prr
2018-11-28 13:56:32 +01:00
Dmitry Chuyko
bc98309953 8214272: Don't use memset to initialize arrays of MemoryUsage in memoryManager.cpp
Reviewed-by: rkennke, shade
2018-11-28 13:24:56 +03:00
Robbin Ehn
7e0040c384 8213791: StringTable: Use get and insert
Reviewed-by: eosterlund, gziemski
2018-11-28 11:06:27 +01:00
Thomas Schatzl
0f0b8626fc 8213996: Remove one of the SparsePRT entry tables
Remove unused functionality in SparsePRT

Reviewed-by: shade, sjohanss
2018-11-28 11:06:58 +01:00
Thomas Schatzl
9a4eed85df 8211211: vmTestbase/metaspace/stressDictionary/StressDictionary.java timeout
Disable CMS precleaning to avoid accumulating too many classloaders to unload.

Reviewed-by: kbarrett, sangheki
2018-11-28 10:52:01 +01:00
Magnus Ihse Bursie
2ddd78e825 8178317: Create man pages using pandoc from markdown sources
Reviewed-by: erikj
2018-11-28 10:00:41 +01:00
Yang Zhang
dd6344fc76 8213134: AArch64: vector shift failed with MaxVectorSize=8
Add vshiftcnt instructions for vector64 and add vsra/vsrl instructions to AArch64 backend. To detect shift failures, MaxVectorSize options are added to jtreg test cases.

Reviewed-by: aph, kvn
2018-11-28 16:22:03 +08:00
Aleksey Shipilev
80acd4f399 8215374: 32-bit build failures after JDK-8181143 (Introduce diagnostic flag to abort VM on too long VM operations)
Reviewed-by: roland
2018-12-14 12:56:59 +01:00
Aleksey Shipilev
7f21b8e73b 8215353: x86_32 build failures after JDK-8214751 (X86: Support for VNNI Instructions)
Reviewed-by: thartmann, kvn
2018-12-14 12:56:57 +01:00
Claes Redestad
78669ad35e 8215380: Backout accidental change to String::length
Reviewed-by: darcy, smarks
2018-12-14 12:02:39 +01:00
Jesper Wilhelmsson
cdf49edb29 Added tag jdk-12+24 for changeset 7d4397b43fa3 2018-12-14 06:39:14 +01:00
Matthias Baesken
679f30ebc3 8214373: adjust usage of ReleaseLongArrayElements in MacosxDebuggerLocal
Reviewed-by: stuefe, jcbeyler
2018-11-27 15:56:10 +01:00
Roland Westrelin
cd0aafe76a 8214362: C2: gc interface entry point for split if
Reviewed-by: rkennke, thartmann
2018-11-27 14:49:13 +01:00
Roland Westrelin
8849b1c7b7 8214172: GC interface entry points for loop opts
Reviewed-by: kvn, rkennke
2018-11-27 09:35:02 +01:00
Hamlin Li
bb50695ff9 8211975: move testlibrary/jdk/testlibrary/OptimalCapacity.java to top-level library
Reviewed-by: igerasim
2018-11-28 15:34:43 +08:00
Priya Lakshmi Muthuswamy
17773c31b6 8202621: bad test with broken links needs to be updated
Reviewed-by: hannesw
2018-11-28 10:21:07 +05:30
Priya Lakshmi Muthuswamy
a19bd10e83 8213921: Use {@systemProperty} tag for properties listed in "Networking Properties"
Reviewed-by: chegar
2018-11-28 09:37:03 +05:30
David Holmes
2bcaf34726 8212207: runtime/InternalApi/ThreadCpuTimesDeadlock.java crashes with SEGV in pthread_getcpuclockid+0x0
Skip non-JavaThreads that have not reached a minimal initialization point - setting their stack size

Reviewed-by: kbarrett, stuefe
2018-11-27 22:02:52 -05:00
David Holmes
cb861252d7 8214208: Nestmate package validation logging/exception should include classloader information
Reviewed-by: hseigel, coleenp, mchung
2018-11-27 21:20:16 -05:00
Coleen Phillimore
fdd11cac16 8214151: [TESTBUG] CleanProtectionDomain.java fails due to RuntimeException: 'protection domain unlinked' missing
Call WB_ProtectionDomainRemovedCount.

Reviewed-by: jiangli, pchilanomate
2018-11-27 19:46:57 -05:00
Mikhailo Seledtsov
48073dc0d0 8213914: [TESTBUG] Several JFR VM events are not covered by tests
Fixed several relevant test issues, added a test to check event coverage

Reviewed-by: egahlin
2018-11-27 15:52:34 -08:00
Daniel D. Daugherty
8e4e1a91c0 8202415: Incorrect time logged for monitor deflation
Add support for "deflating per-thread idle monitors" log mesgs.

Reviewed-by: dholmes, coleenp
2018-11-27 18:35:16 -05:00
Jiangli Zhou
bc215804a4 8214217: [TESTBUG] runtime/appcds/LotsOfClasses.java failed with fragmented heap
Improve the fragmentation error message. Set java heap size in LotsOfClasses.java.

Reviewed-by: iklam, ccheung
2018-11-27 17:53:17 -05:00
Patricio Chilano Mateo
803b9a675b 8150689: Thread dump report "waiting to re-lock in wait()" shows incorrectly
"waiting to re-lock in wait()" is now shown in the frame where relocking is taking place

Reviewed-by: dholmes, dcubed
2018-11-27 13:39:57 -05:00
Joe Darcy
5d1cc7fc01 8213911: Use example.com in java.net and other examples
Reviewed-by: prappo, chegar, rriggs, mullan
2018-11-27 11:28:47 -08:00
Joe Wang
197b669f83 8177286: AttributeSet: attempt to compare Qname and String
Reviewed-by: lancea
2018-11-27 09:40:32 -08:00
Markus Grönlund
ba809c2c36 8214287: SpecJbb2005StressModule got uncaught exception
Reviewed-by: egahlin, jwilhelm
2018-11-27 18:14:27 +01:00
Vicente Romero
10da56f017 8203277: preflow visitor used during lambda attribution shouldn't visit class definitions inside the lambda body
Reviewed-by: mcimadamore
2018-11-27 11:07:44 -05:00
Manajit Halder
b114b70d35 8209123: [Macosx] Maximized frame (frame state set to MAXIMIZED_BOTH using setExtendedState) is resizable on Mac but not on Windows and Ubuntu
Reviewed-by: kaddepalli, psadhukhan
2018-11-27 13:47:31 +05:30
Roland Westrelin
84cd74b013 8214344: C2: assert(con.basic_type() != T_ILLEGAL) failed: elembt=byte; loadbt=void; unsigned=0
Reviewed-by: kvn, thartmann
2018-11-27 08:44:19 +01:00
Michael McMahon
4a77a08ca3 8211842: IPv6_supported wrongly returns false when unix domain socket is bound to fd 0
Reviewed-by: chegar, alanb
2018-11-30 10:29:58 +00:00
Srikanth Adayapalam
10d83827bc 8206325: AssertionError in TypeSymbol.getAnnotationTypeMetadata
Reviewed-by: mcimadamore
2018-11-30 10:37:48 +05:30
Jean Christophe Beyler
1285c3cd30 8214417: Add space after/before {} in vmTestbase/nsk/jvmti/[A-I] tests
Fix the spaces around {}

Reviewed-by: amenkov, sspitsyn, dholmes
2018-11-29 18:57:18 -08:00
Robert Field
020877da03 8213725: JShell NullPointerException due to class file with unexpected package
Reviewed-by: jlahoda
2018-11-29 17:45:29 -08:00
Alexandre Iline
4dfa364ff1 8214309: Enhance makefiles to allow generating JCov instrumented build
Reviewed-by: erikj
2018-11-29 06:34:46 -08:00
Naoto Sato
e6eddb6739 8212878: host in ftp: link not found
Reviewed-by: bpb
2018-11-29 13:17:14 -08:00
Naoto Sato
0c42c697ed 8212870: Broken links for www.usno.navy.mil
Reviewed-by: bpb
2018-11-29 13:16:41 -08:00
Sangheon Kim
098d20434c 8211735: Wrong heap mapper can be selected with UseLargePages on G1
Reviewed-by: tschatzl, kbarrett
2018-11-28 15:09:26 -08:00
Igor Veresov
da77659d7e 8193577: nsk/jvmti/IterateThroughHeap/filter-tagged fails with Graal in Xcomp mode
Make field values opaque to compiler

Reviewed-by: dlong, sspitsyn
2018-11-29 11:47:08 -08:00
Leonid Mesnik
bbfe9d2168 8214400: Update hotspot application/jcstress jtreg tests wrappers to use jcstress 0.5
Reviewed-by: dholmes, mseledtsov
2018-11-29 11:14:36 -08:00
Leonid Mesnik
83cfba872c 8214462: Add serviceability/sa/ClhsdbInspect.java to ProblemList.txt
Reviewed-by: dholmes, jgeorge
2018-11-29 11:06:22 -08:00
Coleen Phillimore
dd9664f39b 8214356: Verification of class metadata unloading takes a long time
Conditionalize verify_chunk_in_freelist call.

Reviewed-by: shade, tschatzl
2018-11-29 13:04:25 -05:00
Naoto Sato
5fc8ae7c71 8214170: ResourceBundle.Control.newBundle should throw IllegalAccessException when constructor of the resource bundle is not public
Reviewed-by: rriggs, mchung
2018-11-29 10:13:42 -08:00
Prasanta Sadhukhan
06c91fcf7f Merge 2018-11-27 10:59:24 +05:30
Prasanta Sadhukhan
a51bf4d7e6 8213843: Changing L&F from Nimbus to Window L&F causes NPE in SwingSet2
8213121: javax/swing/GraphicsConfigNotifier/StalePreferredSize.java fails on mac10.13

Reviewed-by: serb
2018-11-27 10:45:54 +05:30
Xue-Lei Andrew Fan
23ecdbbc1d 8214321: Misleading code in SSLCipher
Reviewed-by: ascarpino
2018-11-26 20:50:21 -08:00
Weijun Wang
b1c4b461f1 8214100: use of keystore probing results in unnecessary exception thrown
Reviewed-by: mullan
2018-11-27 08:51:20 +08:00
Ioi Lam
52664cb14a 8214029: Remove dead code BasicHashtable::bulk_free_entries
Reviewed-by: dholmes
2018-11-26 15:06:53 -08:00
Jonathan Gibbons
1d01b4d22f 8190312: javadoc -link doesn't work with http: -> https: URL redirects
Reviewed-by: hannesw
2018-11-26 11:17:13 -08:00
Jiangli Zhou
e0d9ae7699 8214086: [TESTBUG] Fix subgraph test cases in ReplaceCriticalClasses.java
Add subgraph test cases in ReplaceCriticalClassesForSubgraphs.java.

Reviewed-by: iklam
2018-11-26 14:13:22 -05:00
Jonathan Gibbons
ae4f1b1941 8213956: javadoc crash using {@index} in doc-files file
Reviewed-by: jlahoda, hannesw, pmuthuswamy
2018-11-26 11:00:32 -08:00
Kim Barrett
5c99d95a63 8214202: DirtyCardQueueSet::get_completed_buffer should not clear _process_completed
Remove flag clearing and simplify get_completed-buffer.

Reviewed-by: tschatzl, sjohanss
2018-11-26 13:17:39 -05:00
Matthias Baesken
9debae9783 8214297: testbug : missing fclose in jvmti_aod.cpp
Reviewed-by: coleenp, stuefe
2018-11-26 14:04:23 +01:00
Hannes Wallnöfer
e524f41fbf 8213716: javadoc search not working with Japanese and Chinese locales
Reviewed-by: jjg
2018-11-27 13:02:28 +01:00
Sean Coffey
6e905c8389 8214295: Populate handlers while holding streamHandlerLock
Reviewed-by: chegar
2018-11-27 11:09:53 +00:00
Roland Westrelin
efcfec81ce 8214189: test/hotspot/jtreg/compiler/intrinsics/mathexact/MulExactLConstantTest.java fails on Windows x64 when run with -XX:-TieredCompilation
Reviewed-by: kvn
2018-11-26 17:35:35 +01:00
Dean Long
787f8b320e 8213259: [AOT] AOTing java.base fails with "java.lang.AssertionError: no fingerprint for Ljdk/internal/event/Event"
Reviewed-by: iklam, kvn
2018-11-26 22:49:57 -08:00
Thomas Stuefe
abf1e47f29 8213834: JVMTI ResourceExhausted should not be posted in CompilerThread
Reviewed-by: dholmes, dcubed, jcbeyler, sspitsyn
2018-11-27 07:54:06 +01:00
Simon Tooke
5d725a98c8 8214059: Undefined behaviour in ADLC
Reviewed-by: shade, kbarrett
2018-11-26 09:36:30 +01:00
Jim Laskey
40d4ff864c 8203442: String::transform
Reviewed-by: smarks, sherman, alanb, darcy, forax, rriggs, scolebourne, dholmes, plevart
2018-11-26 12:20:06 -04:00
Harold Seigel
6d25f18bad 8204525: [TESTBUG] runtime/NMT/MallocStressTest.java ran out of java heap
Handle OutOfMemoryError exception to prevent test aborting

Reviewed-by: zgu, dholmes
2018-11-26 09:46:20 -05:00
Tobias Hartmann
dc6cabe8b7 8214242: compiler/arguments/TestScavengeRootsInCode.java fails because of missing UnlockDiagnosticVMOptions
Added missing UnlockDiagnosticVMOptions.

Reviewed-by: tschatzl
2018-11-26 12:16:23 +01:00
Jan Lahoda
06b1502892 8214113: Switch expressions may have constant type and may be skipped during write
Switch expressions should not be compile-time constants.

Reviewed-by: mcimadamore
2018-11-26 09:24:08 +01:00
Prasanta Sadhukhan
01267bb7ca Merge 2018-11-26 10:49:53 +05:30
Weijun Wang
b021bcb335 8214262: SunEC native code does not compile with debug on
Reviewed-by: jnimeh
2018-11-26 08:27:49 +08:00
Jesper Wilhelmsson
e398213df7 8214276: Problemlist compiler/intrinsics/mathexact/MulExactLConstantTest.java
Reviewed-by: kbarrett
2018-11-24 01:05:11 +01:00
Boris Ulasevich
b2cb5cee6d 8213845: ARM32: Interpreter doesn't call result handler after native calls
Reviewed-by: aph
2018-11-23 19:45:38 +03:00
Roland Westrelin
e530ca5cc2 8214206: Fix for JDK-8213419 is broken on 32-bit
Reviewed-by: mdoerr, shade
2018-11-22 17:25:47 +01:00
Stefan Johansson
bde8307cf9 8214118: HeapRegions marked as archive even if CDS mapping fails
Reviewed-by: tschatzl, jiangli
2018-11-23 10:57:07 +01:00
Robbin Ehn
751aa57f16 8214181: safepoint header cleanup
Reviewed-by: kbarrett, dholmes, coleenp
2018-11-23 11:07:54 +01:00
Robbin Ehn
72235f33c7 8212108: SafepointSynchronizer never ending counter (big enough)
Reviewed-by: dholmes, eosterlund
2018-11-23 10:43:18 +01:00
Markus Grönlund
954c14dc83 8214161: java.lang.IllegalAccessError: class jdk.internal.event.X509CertificateEvent (in module java.base) cannot access class jdk.jfr.internal.handlers.EventHandler (in module jdk.jfr) because module java.base does not read module jdk.jfr
Reviewed-by: egahlin, dholmes
2018-11-23 10:51:59 +01:00
Vyom Tewari
19e69dc84f 8203672: JNI exception pending in PlainSocketImpl.c
8203264: JNI exception pending in PlainDatagramSocketImpl.c:740
8203673: JNI exception pending in DualStackPlainDatagramSocketImpl.c:398

Reviewed-by: chegar, igerasim
2018-11-23 13:16:45 +05:30
Yasumasa Suenaga
4663065fad 8213015: Inconsistent settings between JFR.configure and -XX:FlightRecorderOptions
Reviewed-by: mgronlun, egahlin
2018-11-23 16:36:07 +09:00
Amy Lu
f684f2cff3 8214241: Problem list com/sun/jndi/ldap/LdapTimeoutTest.java for all platforms
Reviewed-by: vtewari, weijun
2018-11-23 12:45:47 +08:00
Michihiro Horie
dbf691d4a2 8214205: PPC64: Add instructions for counting trailing zeros
Reviewed-by: mdoerr, gromero
2018-11-22 21:43:37 -05:00
Mandy Chung
b2604123d3 8214223: tools/jdeps/listdeps/ListModuleDeps.java failed due to missing Lib2 file
Reviewed-by: lancea, alanb
2018-11-22 10:15:32 -08:00
Volker Simonis
faff794a88 8213698: Improve devkit creation and add support for linux/ppc64/ppc64le/s390x
Reviewed-by: erikj, ihse
2018-11-22 17:22:40 +01:00
Hannes Wallnöfer
c047c5cfcf 8200432: javadoc fails with ClassCastException on {@link byte[]}
Reviewed-by: jjg, sundar
2018-11-22 15:38:20 +01:00
Simon Tooke
710ecce7f7 8214108: [TESTBUG] Incorrect Function parameter lists in vmTestbase/nsk/jvmti/scenarios/extension/EX03/ex03t001
Reviewed-by: gadams, sspitsyn
2018-11-22 11:15:53 +01:00
Simon Tooke
fe3811d46a 8214105: [TESTBUG] Bit test is always false in serviceability/jvmti/StartPhase/AllowedFunctions
Reviewed-by: dcubed, dholmes, jcbeyler, gadams, sspitsyn
2018-11-22 10:11:58 +01:00
Erik Österlund
1379397c32 8213755: Let nmethods be is_unloading() outside of safepoints
Reviewed-by: rehn, coleenp, kvn
2018-11-22 10:01:38 +01:00
Erik Österlund
c9657d8dcf 8214056: Allow the GC to attach context information to CompiledMethod
Reviewed-by: shade, kvn, adinn
2018-11-22 09:55:44 +01:00
Erik Österlund
44b1ed07f5 8213486: SIGSEGV in CompiledMethod::cleanup_inline_caches_impl with AOT
Reviewed-by: kvn, dlong
2018-11-22 09:46:24 +01:00
Volker Simonis
62b2f0f5c9 8213944: Fix AIX build after the removal of Xrandr.h and add a configure check for it
Reviewed-by: shade, erikj, stuefe, ihse, goetz
2018-11-22 09:44:02 +01:00
Thomas Schatzl
fc8795984a 8213927: G1 ignores AlwaysPreTouch when UseTransparentHugePages is enabled
With UseTransparentHugePages we always need to pretouch on small page size as the underlying memory could currently be allocated as either small or large pages.

Reviewed-by: shade, sjohanss
2018-11-22 09:26:51 +01:00
Thomas Schatzl
0febdff79b 8213997: Remove G1HRRSUseSparseTable flag
Remove develop flag because it is not used anyway.

Reviewed-by: shade, manc
2018-11-22 09:25:19 +01:00
Roman Kennke
34a1c2e6bb 8214057: GC/C2 abstraction for Node::has_special_unique_user()
Reviewed-by: kvn, roland
2018-11-22 09:23:05 +01:00
Roman Kennke
4b528df402 8214055: GC/C2 abstraction for phaseX
Reviewed-by: kvn, roland
2018-11-22 09:22:54 +01:00
Liam Miller-Cushon
bddbbd85f9 8214026: Canonicalized archive paths appearing in diagnostics
Reviewed-by: vromero
2018-11-19 15:01:59 -08:00
Xue-Lei Andrew Fan
388e1ebbba 8210985: Update the default SSL session cache size to 20480
Reviewed-by: jnimeh, mullan
2018-11-29 08:43:12 -08:00
Roger Riggs
c03797a5d0 8214445: [test] java/net/URL/HandlerLoop has illegal reflective access
Reviewed-by: lancea, chegar, bpb
2018-11-29 09:19:16 -05:00
Sean Mullan
9f88ce2b1e 8214443: Remove TLS v1 and v1.1 from SSLContext required algorithms
Reviewed-by: xuelei
2018-11-29 08:50:25 -05:00
Thomas Stuefe
e58ebf3e7f 8214229: Enable ShowRegistersOnAssert by default
Reviewed-by: mdoerr, coleenp
2018-11-22 12:20:10 +01:00
Gustavo Romero
d6b70fa2ab 8214451: PPC64/s390: Clean up unused CRC32 prototype and function
Reviewed-by: mdoerr, lucy
2018-11-28 13:16:54 -05:00
Nils Eliasson
d92085431b 8214434: Disabling ZOptimizeLoadBarriers hits assert
Reviewed-by: kvn, pliden, eosterlund
2018-11-29 09:31:04 +01:00
Per Lidén
10526c99f9 8212748: ZGC: Add reentrant locking functionality
Reviewed-by: eosterlund, kbarrett
2018-11-09 14:08:01 +01:00
Per Lidén
7e500f1d72 8214068: ZGC crashes with vmTestbase/nsk/jdi/ReferenceType/instances/instances004/TestDescription.java
Reviewed-by: eosterlund, rehn, dcubed
2018-11-22 09:14:31 +01:00
Vyom Tewari
4444bac1b1 8046500: GetIpAddrTable function failed on Pure Ipv6 environment
Reviewed-by: chegar
2018-11-22 13:25:44 +05:30
Mandy Chung
0126fdbef0 8213909: jdeps --print-module-deps should report missing dependences
8168869: jdeps: localized messages don't use proper line breaks

Reviewed-by: sundar
2018-11-21 22:34:01 -08:00
Mandy Chung
9d7509e647 8211051: jdeps usage of --dot-output doesn't provide valid output for modular jar
Reviewed-by: sundar
2018-11-21 22:33:33 -08:00
Priya Lakshmi Muthuswamy
7de1b68d89 8213819: doclint should warn against {@index} inside <a> tag
Reviewed-by: jjg, hannesw
2018-11-22 10:25:44 +05:30
Amy Lu
59529caf8f 8211266: [TESTBUG] ZipFSTester.java failed intermittently in ZipFSTester.checkRead(): bound must be positive
Reviewed-by: lancea
2018-11-22 10:30:47 +08:00
Jesper Wilhelmsson
a90e7ef6d1 Added tag jdk-12+21 for changeset f8fb0c86f2b3 2018-11-22 02:32:36 +01:00
Doug Simon
4512750fbe 8213907: [JVMCI] avoid Class.getDeclared* methods when converting JVMCI objects to reflection objects
Reviewed-by: kvn, never
2018-11-21 22:02:17 +01:00
Jonathan Gibbons
1a6b429e9a 8214139: Remove wrapper methods from {Base,Html}Configuration
Reviewed-by: pmuthuswamy, hannesw
2018-11-21 12:36:16 -08:00
Adam Petcher
a5423f142c 8213202: Possible race condition in TLS 1.3 session resumption
Reviewed-by: jnimeh
2018-11-21 15:06:13 -05:00
Jean Christophe Beyler
937fe3be82 8214149: Move out assignments when not using NSK*VERIFY macros
Move out the assignments from ifs

Reviewed-by: sspitsyn, cjplummer
2018-11-21 10:46:45 -08:00
Nick Gasson
10cd386ac3 8214078: (fs) SecureDirectoryStream not supported on arm32
Reviewed-by: alanb
2018-11-21 18:44:11 +00:00
Jean Christophe Beyler
5639c70032 8213721: [Graal] Tests vmTestbase/nsk/stress/except/except* may be encountering SEGV during out-of-memory conditions
Add the exception handler only for the current thread

Reviewed-by: dholmes, sspitsyn, thartmann
2018-11-21 09:38:27 -08:00
Brian Burkhalter
a6f0e10fe8 8213235: java/nio/channels/SocketChannel/AsyncCloseChannel.java fails with threads that didn't exit
Reviewed-by: alanb, dfuchs
2018-11-21 08:16:25 -08:00
Sean Coffey
7b8898d03c 8213942: URLStreamHandler initialization race
Reviewed-by: alanb, chegar, prappo
2018-11-21 15:09:27 +00:00
Kim Barrett
d8e5d52deb 8214144: Remove confusing locking_enqueue_completed_buffer
Remove function.

Reviewed-by: tschatzl, manc
2018-11-21 09:40:19 -05:00
Volker Simonis
a4fb817366 8214120: [REDO] Fix sun.awt.nativedebug on X11 platforms
Reviewed-by: stuefe, ihse
2018-11-21 15:22:28 +01:00
Jan Lahoda
60b32f222f 8212982: Rule cases in switch expression accepted even if complete normally
Ensure an error is reported if switch expression does not correctly produce a value.

Reviewed-by: mcimadamore
2018-11-21 15:22:57 +01:00
Tobias Hartmann
9314c7f110 8214025: assert(t->singleton()) failed: must be a constant when ScavengeRootsInCode < 2
Added missing null checks and checks for pending exception.

Reviewed-by: kvn
2018-11-21 15:05:21 +01:00
Rachna Goel
f8518a2c05 8209923: Unicode 11.0.0
Updated JDK to support Unicode 11.0.0.

Reviewed-by: naoto
2018-11-21 14:24:31 +05:30
Roland Westrelin
11e54e0749 8213419: C2 may hang in MulLNode::Ideal()/MulINode::Ideal() with gcc 8.2.1
Reviewed-by: kvn, dlong, aph
2018-11-14 13:15:54 +01:00
Ioi Lam
6d269930fd 8213587: Speed up CDS dump time by using resizable hashtables
Reviewed-by: jiangli, coleenp, gziemski
2018-11-20 20:00:15 -08:00
Jean Christophe Beyler
6d3df94e5e 8214154: problem list HeapMonitorStatIntervalTest.java
Add the test to the problem list until solved

Reviewed-by: dholmes
2018-11-20 18:36:57 -08:00
Zhengyu Gu
44ddbe3370 8214124: [TESTBUG] Bugs in runtime/NMT/MallocStressTest.java
Fix possible negative size and index that can cause the test to fail

Reviewed-by: stuefe, shade
2018-11-20 20:09:11 -05:00
Aleksey Shipilev
a264dac26c 8213992: Rename and make DieOnSafepointTimeout the diagnostic option
Reviewed-by: dholmes, dcubed, coleenp, kvn
2018-11-20 22:59:27 +01:00
Roman Kennke
521da29e44 8213746: GC/C2 abstraction for C2 matcher
Reviewed-by: kvn, roland
2018-11-20 22:37:34 +01:00
Claes Redestad
4b45441ae9 8213033: Archive remaining primitive box caches
Reviewed-by: jiangli, alanb
2018-11-20 21:12:46 +01:00
Liam Miller-Cushon
4a235517f9 8213908: AssertionError in DeferredAttr at setOverloadKind
Reviewed-by: mcimadamore
2018-11-19 09:57:41 -08:00
Volker Simonis
2db81b4e13 8214125: [test] Fix comparison between pointer and integer in test_ptrQueueBufferAllocator.cpp
Reviewed-by: mdoerr, shade, stuefe, tschatzl
2018-11-20 19:06:34 +01:00
Joe Wang
fad3c52660 8210722: JAXP Tests: CatalogSupport2 and CatalogSupport3 generate incorrect messages upon failure
Reviewed-by: lancea
2018-11-20 09:22:13 -08:00
Srinivas Dama
e4f60a8489 8210742: compound var declaration type is not uniform for all variables
Make implicit type for all variables in compound declaration as null for which type inference happens at later phase

Reviewed-by: mcimadamore
2018-11-20 21:59:07 +05:30
Sean Coffey
73ad9c4a00 8148188: Enhance the security libraries to record events of interest
Reviewed-by: egahlin, mullan, weijun, xuelei
2018-11-20 13:12:48 +00:00
Erik Österlund
dc260a5369 8212992: Change mirror accessor in Klass::verify_on() to use AS_NO_KEEPALIVE
Reviewed-by: coleenp, pliden
2018-11-20 10:08:19 +01:00
Erik Österlund
8b1844626a 8212682: Avoid holding Compile_lock when blocking for GC in ObjArrayKlass::allocate_objArray_klass()
Reviewed-by: coleenp, dlong
2018-11-20 10:08:18 +01:00
Robbin Ehn
041946dcb0 8213560: gtests might hang
Reviewed-by: rwestberg, eosterlund
2018-11-20 09:35:15 +01:00
Per Lidén
a0c58fb8c6 8213623: ZGC: Let heap iteration walk all roots
Reviewed-by: eosterlund, kbarrett
2018-11-20 08:17:24 +01:00
Priya Lakshmi Muthuswamy
4acb8dd9c3 8184205: Captions on tabbed tables are squashed together
Reviewed-by: jjg
2018-11-20 10:50:54 +05:30
Priya Lakshmi Muthuswamy
470aaffd13 8213920: Use {@systemProperty} tag for properties listed in System.getProperties
Reviewed-by: mchung, alanb
2018-11-20 10:07:42 +05:30
Chris Yin
fb6de4b0b6 8129310: java/net/Socket/asyncClose/AsyncClose.java fails intermittently
Reviewed-by: dfuchs
2018-11-20 09:59:58 +08:00
Liam Miller-Cushon
4cdf0c4c1d 8214071: Broken msg.bug diagnostics when using the compiler API
Reviewed-by: jjg
2018-11-19 10:47:38 -08:00
Thomas Stuefe
03baf2db08 8214075: [BACKOUT] 8214007: Fix sun.awt.nativedebug on X11 platforms
Reviewed-by: shade, dholmes
2018-11-19 22:27:51 +01:00
Volker Simonis
eba7b5718f 8214007: Fix sun.awt.nativedebug on X11 platforms
Reviewed-by: erikj, ihse
2018-11-19 19:25:57 +01:00
Sergey Ustimenko
785e2aca39 8214062: JDK-8167368 Leftover: get_source.sh in build documentation
Reviewed-by: dholmes, erikj
2018-11-19 08:52:11 -08:00
Abdul Kolarkunnu
9380cf342b 8213168: Enable different look and feel tests in SwingSet3 demo test FileChooserDemoTest
Reviewed-by: serb
2018-11-05 18:53:51 -08:00
Krishna Addepalli
ee1a5e3c1e 8212882: links to tutorial should be updated to use https:
Reviewed-by: psadhukhan, pbansal
2018-11-20 16:40:40 +05:30
Jayathirth D V
8d8d2d8bdd 8211422: Reading PNG with corrupt CRC for IEND chunk throws IIOException
Reviewed-by: serb, kaddepalli
2018-11-20 15:53:54 +05:30
Jayathirth D V
b9bf598fe7 8211795: ArrayIndexOutOfBoundsException in PNGImageReader after JDK-6788458
Reviewed-by: serb, kaddepalli
2018-11-20 14:37:24 +05:30
Sergey Bylokhov
0044b55629 8213817: @return has already been specified (4 occurrences, in AWT and Swing)
Reviewed-by: prr
2018-11-15 14:14:31 -08:00
Shashidhara Veerabhadraiah
1b012e213d 6849922: java/awt/Choice/ChoiceKeyEventReaction/ChoiceKeyEventReaction.html fails
Reviewed-by: kaddepalli, serb
2018-11-15 11:25:13 +05:30
Alan Snyder
9516008ca0 8211301: [macos] support full window content options
Reviewed-by: serb
2018-11-14 20:47:57 -08:00
Ichiroh Takiguchi
a7a96c5f01 8213614: DnD operation change feature does not work with 64bit big endian CPU
Reviewed-by: serb
2018-11-14 18:04:54 -08:00
Alexey Ushakov
c3b47e556e 8213292: Input freezes after MacOS key-selector (press&hold) usage on macOS Mojave
Reviewed-by: serb
2018-11-14 13:52:33 -08:00
Matthias Baesken
faae1772c1 8213532: add missing LocalFree calls after using FormatMessage(A) [windows]
Reviewed-by: dmarkov, serb
2018-11-08 17:10:47 +01:00
Pankaj Bansal
4ed24b2a03 8213844: Typo in ProblemList updation under JDK-8213536
Reviewed-by: jdv
2018-11-14 18:27:51 +05:30
Jayathirth D V
53ed0c129a 8212116: IIOException "tEXt chunk length is not proper" on opening png file
Reviewed-by: serb
2018-11-14 01:29:34 +05:30
Prasanta Sadhukhan
3b27432323 Merge 2018-11-14 17:26:24 +05:30
Prasanta Sadhukhan
eafb5eb05e Merge 2018-11-14 17:16:44 +05:30
David Holmes
458e0b864a 8213767: Remove the -Xconcurrentio flag and associated code
Reviewed-by: lfoltan, rehn
2018-11-14 04:56:43 -05:00
Michal Vala
89b7212611 8213591: running bin/idea.sh in Cygwin: generated project cannot be imported
Reviewed-by: erikj, stuefe, mbaesken
2018-11-14 09:19:31 +01:00
Robbin Ehn
9a79d90cc6 8213574: Deadlock in string table expansion when dumping lots of CDS classes
Reviewed-by: jiangli, iklam, dholmes
2018-11-14 07:50:37 +01:00
Vicente Romero
61082e6b25 8213480: update internal ASM version to 7.0
Reviewed-by: dholmes, iignatyev, alanb
2018-11-13 23:33:17 -05:00
Sergey Bylokhov
ba913fe82d 8211833: Javadoc cleanup of java.applet package
Reviewed-by: prr
2018-11-13 16:35:58 -08:00
Alexandre Iline
a4b9ae8bb3 8186549: move ExtendedRobot closer to tests
Reviewed-by: serb
2018-11-13 07:11:50 -08:00
Jayathirth D V
5d603b77d9 8176556: java/awt/dnd/ImageTransferTest/ImageTransferTest.java fails for JFIF
Reviewed-by: serb
2018-11-13 09:39:57 +05:30
Anton Litvinov
8a5f5e0f34 8187364: Unable to enter zero width non-joiner (ZWNJ) symbol in Swing text component
Reviewed-by: serb, dmarkov
2018-11-12 22:28:08 +00:00
Pankaj Bansal
8ed1c25f6b 8213536: Update ProblemList for Linux
Reviewed-by: serb
2018-11-12 12:39:03 +05:30
Prasanta Sadhukhan
046262a0f5 Merge 2018-11-12 11:10:16 +05:30
Shashidhara Veerabhadraiah
fe6aa29326 8198624: java/awt/KeyboardFocusmanager/TypeAhead/SubMenuShowTest/SubMenuShowTest.html fails on mac
Reviewed-by: serb
2018-11-12 10:55:49 +05:30
Claes Redestad
eda5f09014 8213478: Reduce rebinds when applying repeated filters and conversions
Reviewed-by: vlivanov, jrose
2018-11-11 21:24:46 +01:00
Sergey Bylokhov
5a9a338c8e 8211435: Exception in thread "AWT-EventQueue-1" java.lang.IllegalArgumentException: null source
Reviewed-by: dmarkov, lbourges, kaddepalli, prr
2018-11-10 18:48:35 -08:00
Sergey Bylokhov
cc3756b342 8198321: javax/swing/JEditorPane/5076514/bug5076514.java fails
Reviewed-by: psadhukhan
2018-11-10 18:41:43 -08:00
Aleksey Shipilev
2df435e191 8211926: Catastrophic size_t underflow in BitMap::*_large methods
Reviewed-by: kbarrett, stuefe
2018-11-10 20:47:28 +01:00
Aleksey Shipilev
8f1a1b9cab 8213711: Zero build broken after JDK-8213199 (GC abstraction for Assembler::needs_explicit_null_check())
Reviewed-by: rkennke, stuefe
2018-11-10 19:27:52 +01:00
Sergey Bylokhov
bd9a9d591b 8199072: Test javax/swing/GroupLayout/6613904/bug6613904.java is unstable
Reviewed-by: prr, psadhukhan
2018-11-10 09:52:59 -08:00
Zhengyu Gu
83155e1ea6 8213707: [TEST] vmTestbase/nsk/stress/except/except011.java failed due to wrong class name
Fixed wrong class name in test

Reviewed-by: dholmes, jcbeyler
2018-11-10 09:06:33 -05:00
Sergey Bylokhov
96ebd03c09 8213568: Typo in java/awt/GraphicsEnvironment/LoadLock/GE_init5.java
Reviewed-by: prr
2018-11-09 22:25:40 -08:00
Ivan Gerasimov
9076a94dd4 8213383: Wrap up pthread_cond_wait into a loop to workaround potential spurious wakeups
Reviewed-by: dlong, sspitsyn, dholmes, rriggs
2018-11-09 16:21:28 -08:00
Daniel D. Daugherty
0f9e314cb5 8213704: increase default timeout for vmTestbase/metaspace/stressDictionary/StressDictionary.java
Reviewed-by: rehn
2018-11-09 15:19:33 -05:00
Man Cao
9d39cba453 8213113: Dead code related to UseAdaptiveSizePolicy in ParNewGeneration
Removed dead code related to UseAdaptiveSizePolicy for CMS

Reviewed-by: pliden, tschatzl
2018-11-09 12:13:20 -08:00
Dean Long
cc2fb36243 8213701: Add org.graalvm.compiler.debug.test.TimerKeyTest to problem list
Reviewed-by: kvn
2018-11-09 11:36:34 -08:00
Roger Riggs
29e742273e 8185496: Improve performance of system properties initialization in initPhase1
8213424: VersionProps duplicate and skipped initialization

Reviewed-by: mchung, redestad, dholmes
2018-11-09 13:28:16 -05:00
Xue-Lei Andrew Fan
1b20a6781f 8213694: Test Timeout.java should run in othervm mode
Reviewed-by: jnimeh
2018-11-09 10:15:43 -08:00
Dean Long
db0221089f 8213596: test failure with Graal when security manager and policy file are used
Reviewed-by: kvn
2018-11-09 09:59:05 -08:00
Dean Long
5e25c70198 8213588: compiler/graalunit/HotspotTest.java fails after 8213348 / 8211781 were pushed
Reviewed-by: kvn
2018-11-09 09:57:22 -08:00
Xue-Lei Andrew Fan
3e9941ea2b 8212261: Add SSLSession accessors to HttpsURLConnection and SecureCacheResponse
Reviewed-by: mullan, chegar
2018-11-09 08:24:38 -08:00
Thomas Stuefe
7e17764cd3 8213592: Misaligned code in globals.hpp after 8211845
Reviewed-by: dholmes
2018-11-09 16:08:14 +01:00
Martin Doerr
598f595947 8213604: Fix missing includes after JDK-8212673
Reviewed-by: tschatzl, roland
2018-11-09 15:19:11 +01:00
Ambarish Rapte
bc3c7c9b32 8198002: java/awt/Mixing/Validating.java debug assert on Windows
Reviewed-by: serb, kaddepalli
2018-11-09 18:35:25 +05:30
Roman Kennke
9e754390c6 8213489: GC/C2 abstraction for Compile::final_graph_reshaping()
Reviewed-by: kvn, roland
2018-11-09 10:38:07 +01:00
Roman Kennke
617ccd6b92 8213473: Replace testB_mem_imm matcher with testUB_mem_imm
Reviewed-by: kvn, roland
2018-11-09 10:38:07 +01:00
Amit Sapre
06383ba3a1 8211951: Broken links in java.management files
Corrected broken Javadoc links.

Reviewed-by: alanb, sspitsyn
2018-11-09 12:47:20 +05:30
Ambarish Rapte
3ec1c6f949 8198000: java/awt/List/EmptyListEventTest/EmptyListEventTest.java debug assert on Windows
Reviewed-by: prr, serb
2018-11-09 12:08:05 +05:30
Prasanta Sadhukhan
e40a70bce0 8213181: Updation of ProblemList.txt for removal of passing swing test
Reviewed-by: serb
2018-11-09 09:29:43 +05:30
Phil Race
bf7a30f5cf 8210776: Upgrade X Window System 6.8.2 to the latest XWD 1.0.7
Reviewed-by: serb
2018-11-08 10:34:49 -08:00
Prasanta Sadhukhan
b553485436 8213116: javax/swing/JComboBox/WindowsComboBoxSize/WindowsComboBoxSizeTest.java fails in Windows
Reviewed-by: prr
2018-11-08 12:09:06 +05:30
Ioi Lam
147fc3ed13 8213346: Re-implement shared dictionary using CompactHashtable
Reviewed-by: jiangli
2018-11-07 19:40:27 -08:00
Jakub Vanek
14b8e187e2 8213826: Disable ARMv6 memory barriers on ARMv5 processors
Reviewed-by: dholmes, bulasevich
2018-11-13 21:43:10 -05:00
Jamil Nimeh
acd81b508e 8212885: TLS 1.3 resumed session does not retain peer certificate chain
Reviewed-by: xuelei, wetmore
2018-11-13 18:22:52 -08:00
Weijun Wang
65dc116bf6 8213400: Support choosing group name in keytool keypair generation
Reviewed-by: apetcher, xuelei
2018-11-14 08:46:25 +08:00
Jonathan Gibbons
761710ffab 8213820: unknown tag: @returns
Reviewed-by: darcy
2018-11-13 16:17:24 -08:00
Mikael Vidstedt
e07d7a01c7 8213569: Bump minimum boot jdk to JDK 11
Reviewed-by: dholmes, tbell, erikj
2018-11-13 15:25:24 -08:00
David Holmes
ea22b27348 8213760: os::obsolete_option is obsolete and should be removed
Reviewed-by: jiangli, igerasim, stuefe
2018-11-13 16:49:58 -05:00
Serguei Spitsyn
a8a34764b2 8213814: build error in jtreg test jvmti/GetLocalVariable
Fix the build error by restoring the macro definitions for missed functions

Reviewed-by: dcubed
2018-11-13 13:42:39 -08:00
Ekaterina Pavlova
d32fed965b 8212221: GraalUnitTestLauncher should generate MX_SUBPROCESS_COMMAND_FILE
Reviewed-by: dlong
2018-11-13 12:52:37 -08:00
Mikhailo Seledtsov
a2cc912565 8213570: [TESTBUG] Update JFR sanity test set
Added tests to the jdk jfr sanity group

Reviewed-by: hseigel
2018-11-13 12:24:13 -08:00
Jiangli Zhou
c04f4b46b3 Merge 2018-11-13 15:13:36 -05:00
Jiangli Zhou
beb5b05d44 8213563: appcds/sharedStrings/SharedStringsStress.java fails with 'GC triggered before VM initialization completed' error
Move MetaspaceShared::read_extra_data() call to the main MetaspaceShared::preload_and_dump() operation.

Reviewed-by: iklam
2018-11-13 15:11:53 -05:00
Serguei Spitsyn
f285fe93ee 8213525: new unit test GetLocalVariable/LocalVars is not stable
Comment out unstable checks in the test

Reviewed-by: jcbeyler, cjplummer
2018-11-13 12:11:34 -08:00
Kim Barrett
0050cd5776 8213440: Lingering INCLUDE_ALL_GCS in test_oopStorage_parperf.cpp
Remove INCLUDE_ALL_GCS conditionalization.

Reviewed-by: tschatzl
2018-11-13 13:45:43 -05:00
Andrew Haley
53e8899129 8209415: Fix JVMTI test failure HS202
Fix test for static method in exception throw handler

Reviewed-by: adinn
2018-11-13 11:21:32 -05:00
Pavel Rappo
8c361a3e74 8213490: Networking area typos and inconsistencies cleanup
Reviewed-by: alanb, chegar, dfuchs
2018-11-13 12:24:34 +00:00
Thomas Schatzl
56db122656 8213307: G1 should clean up RMT with ClassUnloadingWithConcurrentMark
Re-enable cleanup of the ResolvedMethodTable after changes in JDK-8206423.

Reviewed-by: shade, coleenp
2018-11-13 11:45:16 +01:00
Claes Redestad
8a64d3bc3c 8213741: Consolidate Object and String Stringifiers
Reviewed-by: shade
2018-11-13 11:34:54 +01:00
David Holmes
90cf7a7d12 8213718: [TEST] Wrong classname in vmTestbase/nsk/stress/except/except002 and except003
Reviewed-by: zgu, jcbeyler
2018-11-12 16:36:05 -05:00
Jean Christophe Beyler
1d340e454c 8212939: Add space after if/while/for/switch and parenthesis
Add spaces where needed

Reviewed-by: cjplummer, sspitsyn
2018-11-12 13:13:00 -08:00
Roman Kennke
e3d65f1c12 8213745: Don't use memset to initialize array of RegMask in matcher.cpp
Reviewed-by: kvn, shade
2018-11-12 22:00:07 +01:00
Rob McKenna
d3ccf8a0ca 8160768: Add capability to custom resolve host/domain names within the default JNDI LDAP provider
Reviewed-by: alanb, dfuchs, chegar, mchung, vtewari
2018-11-12 08:33:59 -08:00
Goetz Lindenmaier
b33edbf1ec 8213527: [testbug] Fix PrintMetaspaceDcmd test using UseCompressedOops for 32-bit
Reviewed-by: dholmes, mdoerr
2018-11-12 16:40:25 +01:00
Pavel Rappo
cea9c21479 8210493: Bind to node- or linklocal ipv6 multicast address fails
Reviewed-by: alanb, chegar
2018-11-12 12:55:36 +00:00
Roland Westrelin
9429c17b35 8205574: Loop predication "assert(f <= 1 && f >= 0) failed Incorrect frequency"
Reviewed-by: kvn
2018-11-09 10:52:15 +01:00
Jan Lahoda
c963d543d2 8209055: c.s.t.javac.code.DeferredCompletionFailureHandler seems to use WeakHashMap incorrectly
Do not keep speculative Symbols in DeferredCompletionFailureHandler.

Reviewed-by: jjg, vromero
2018-11-12 09:35:23 +00:00
Rahul Raghavan
3bef8642a4 8210803: Compilation failure in codeBlob.cpp for Windows 32-bit
Added ordinary operator delete declaration within class

Reviewed-by: kvn, rlichten, thartmann
2018-11-12 01:15:16 -08:00
Priya Lakshmi Muthuswamy
50dc5ef396 5076751: System properties documentation needed in javadocs
Reviewed-by: jjg
2018-11-12 13:31:41 +05:30
Sergey Bylokhov
245a72938a 8211822: Some tests fail after JDK-8210039
8202886: [macos] Test java/awt/MenuBar/8007006/bug8007006.java fails on MacOS

Reviewed-by: prr, iignatyev, jdv, kaddepalli
2018-11-06 17:57:17 -08:00
Prasanta Sadhukhan
c03cdce50e 8213261: test javax/swing/plaf/nimbus/AllSwingComponentsBaselineTest.java fails
Reviewed-by: serb
2018-11-03 09:50:22 +05:30
Sergey Bylokhov
3656228787 8207070: Webstart app popup on wrong screen in a one-screen setup changing to multi-monitor
Reviewed-by: prr
2018-11-02 15:38:03 -07:00
Sergey Bylokhov
d418a15de7 8211992: GraphicsConfiguration.getDevice().getDisplayMode() causes JVM crash on Mac
Reviewed-by: prr
2018-11-02 12:15:37 -07:00
Ambarish Rapte
fa9ec805d9 8198001: java/awt/Menu/WrongParentAfterRemoveMenu/WrongParentAfterRemoveMenu.java debug assert on Windows
Reviewed-by: prr, serb
2018-11-02 23:05:47 +05:30
Phil Race
5fa252a52c 8213213: Remove src/java.desktop/unix/classes/sun/awt/X11/keysym2ucs.h
Reviewed-by: serb
2018-11-01 13:56:14 -07:00
Ioi Lam
b84cf61b08 8213250: CDS archive creation aborts due to metaspace object allocation failure
Reviewed-by: jiangli, ccheung
2018-11-01 10:59:05 -07:00
Amy Lu
836e02e1f1 8213576: Make test AsyncCloseChannel.java run in othervm
Reviewed-by: dholmes
2018-11-09 12:08:53 +08:00
Daniel D. Daugherty
6a9e3b9d29 8204529: gc/TestAllocateHeapAtMultiple.java fail with Agent 7 timed out
Increase default timeout to 360 seconds.

Reviewed-by: erikj, dholmes
2018-11-08 20:54:30 -05:00
Jiangli Zhou
a73856351a 8213439: Run class initialization for boot loader classes with registered subgraph archiving entry field during CDS dump time
Run class initialization for boot classes with registered subgraph archiving entry fieldi(s) at CDS dump time.

Reviewed-by: dholmes, iklam
2018-11-08 19:16:16 -05:00
Dean Long
9dbaf4936f 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
8211781: re-building fails after changing Graal sources

Reviewed-by: erikj, mchung
2018-11-08 15:19:14 -08:00
Vicente Romero
0ec4944be7 8211450: UndetVar::dup is not copying the kind field to the duplicated instance
Reviewed-by: mcimadamore
2018-11-08 18:23:52 -05:00
Roman Kennke
7c3f2b06f1 8213199: GC abstraction for Assembler::needs_explicit_null_check()
Reviewed-by: adinn, eosterlund
2018-11-08 23:31:08 +01:00
Martin Balao
7724fd6d9b 8213154: Update copyright headers of files in src tree that are missing Classpath exception
Reviewed-by: andrew
2018-11-08 18:10:15 -03:00
Mikael Vidstedt
f69921f2fc 8213436: Obsolete UseMembar
Reviewed-by: kvn, dholmes, mdoerr, adinn
2018-11-08 11:45:13 -08:00
Mikael Vidstedt
38a1e5ffbc 8213438: Remove ClearResponsibleAtSTW
Reviewed-by: dholmes, eosterlund, dcubed
2018-11-08 11:22:28 -08:00
Joe Wang
a567796533 8202285: (fs) Add a method to Files for comparing file contents
Reviewed-by: alanb, rriggs, smarks, bpb, dfuchs, weijun, igerasim
2018-11-08 09:50:54 -08:00
Richard Reingruber
e8fd8147a3 8212928: Assertion too strict in compiledVFrame::update_deferred_value on SPARC
Reviewed-by: kvn
2018-11-08 09:04:00 -08:00
Chris Hegarty
4187dff26a 8213418: Socket/ServerSocket supportedOptions does not work with custom SocketImpl
Reviewed-by: alanb, dfuchs
2018-11-08 16:16:57 +00:00
Vicente Romero
7d4e8d0e26 8210197: javac can't tell during speculative attribution if a diamond expression is creating an anonymous inner class or not
Reviewed-by: mcimadamore
2018-11-08 10:36:06 -05:00
Thomas Stuefe
3084a5290c 8211845: A new switch to control verbosity of hs-err files
Reviewed-by: goetz, mdoerr
2018-11-08 16:23:55 +01:00
Erik Österlund
c9e3ee1fbb 8213411: JDK-8209189 incorrect for Big Endian (JVM crashes)
Reviewed-by: kvn, mdoerr
2018-11-08 15:02:50 +01:00
Robbin Ehn
1ce3770481 8209139: globalCounter bootstrap issue
Reviewed-by: dcubed, dholmes
2018-11-08 15:31:23 +01:00
Bernard Blaser
1117fcb339 8213479: Missing x86_64.ad patterns for 8-bit logical operators with destination in memory
Reviewed-by: kvn
2018-11-08 15:11:32 +01:00
Robbin Ehn
e35e0ab165 8211403: Rename SafepointMechanism::poll(...)
Reviewed-by: mdoerr, dcubed, dholmes
2018-11-08 14:32:49 +01:00
Roland Westrelin
b2541f90e6 8212673: jtreg/applications/runthese/RunThese30M.java fails in C2 with "assert(!had_error) failed: bad dominance"
Reviewed-by: thartmann, kvn, shade
2018-11-08 10:08:52 +01:00
David Holmes
eac28d7fae 8213137: Remove static initialization of monitor/mutex instances
Moved to the global mutex list in mutexLocker

Reviewed-by: tschatzl, dcubed, rehn, eosterlund
2018-11-08 07:42:08 -05:00
Volker Simonis
fdfbfb2f8b 8213515: Improve freetype detection on linux/ppc64/ppc64le/s390x
Reviewed-by: shade, ihse, stuefe
2018-11-08 12:24:08 +01:00
Magnus Ihse Bursie
3cefdacdb2 8213338: Reduce the number of generated make targets
Reviewed-by: erikj
2018-11-08 12:03:18 +01:00
Serguei Spitsyn
bf16c3a479 8080406: VM_GetOrSetLocal doesn't check local slot type against requested type
Provide possible type checks when LVT is absent

Reviewed-by: jcbeyler, cjplummer
2018-11-08 00:07:48 -08:00
Jesper Wilhelmsson
f838846500 Added tag jdk-12+19 for changeset dc1f9dec2018 2018-11-08 02:47:50 +01:00
Erik Joelsson
7cc7927aab 8213428: Add a no precompiled header Linux build to builds-tier1 and jdk-submit
Reviewed-by: ihse, tbell
2018-11-07 15:57:50 -08:00
Roman Kennke
31cfeabc46 8213469: Remove/fix leftovers from JDK-8213384: Move G1/C2 barrier verification into G1BarrierSetC2
Reviewed-by: kvn, roland
2018-11-07 20:24:44 +01:00
Roman Kennke
bb792b0337 8213371: GC/C2 abstraction and cleanup to handle custom offset for GC memory accesses
Reviewed-by: kvn, roland
2018-11-07 20:21:35 +01:00
Gary Adams
bb0212400f 8213245: Restoring nsk/jvmti/scenarios/hotswap tests from ProblemList.txt
Reviewed-by: jcbeyler, cjplummer, amenkov
2018-11-01 11:42:59 -04:00
Gary Adams
0a01d37605 8213052: HTML errors in JPDA spec
Reviewed-by: sspitsyn, amenkov
2018-11-07 10:39:49 -05:00
Lois Foltan
9c5c6947cb 8212937: Parent class loader may not have a referred ClassLoaderData instance when obtained in Klass::class_in_module_of_loader
Fix to obtain the class loader's name from the java.lang.ClassLoader object instead of its ClassLoaderData.

Reviewed-by: coleenp, mbalao, sgehwolf
2018-11-07 13:54:22 -05:00
Joe Darcy
8872adab41 8213444: Missing emphasis for term being defined
Reviewed-by: mchung, jjg
2018-11-07 09:58:21 -08:00
Daniel D. Daugherty
ca1c6b93ac 8213487: [BACKOUT] 8213414 Fix incorrect copy constructors in hotspot
Reviewed-by: roland, rkennke, thartmann
2018-11-07 12:40:51 -05:00
Martin Doerr
e0369ea66f 8213464: Fix missing include after JDK-8212243
Reviewed-by: roland
2018-11-07 15:13:12 +01:00
Magnus Ihse Bursie
1165eb3afe 8213414: Fix incorrect copy constructors in hotspot
Reviewed-by: kbarrett
2018-11-07 10:12:43 +01:00
Doug Simon
b0a9871463 8213347: [JVMCI] remove use of reflection in JVMCI
Reviewed-by: kvn
2018-11-07 09:39:39 +01:00
Matthias Baesken
968f65c036 8213366: (fs) avoid handle leak in Java_sun_nio_fs_WindowsNativeDispatcher_FindFirstFile0
Reviewed-by: alanb, chegar
2018-11-07 09:13:37 +01:00
Dean Long
a9ae141836 8212605: Pure-Java implementation of AccessController.doPrivileged
Reviewed-by: dholmes, mullan, vlivanov, mchung, alanb, rriggs
2018-11-06 16:04:50 -08:00
Valerie Peng
c8c41d1444 8211049: Second parameter of "initialize" method is not used
Use the specified random object instead of system default

Reviewed-by: weijun
2018-11-07 01:04:26 +00:00
Roman Kennke
9ba72c0c2c 8213381: Hook to allow GC to inject Node::Ideal() calls
Reviewed-by: kvn, eosterlund, roland
2018-11-06 23:03:05 +01:00
Anthony Scarpino
f7fc720c9c 8211339: NPE during SSL handshake caused by HostnameChecker
Reviewed-by: xuelei
2018-11-06 10:10:18 -08:00
Mandy Chung
9ffe7e1205 8211122: Reduce the number of internal classes made accessible to jdk.unsupported
Reviewed-by: alanb, dfuchs, kvn
2018-11-06 10:01:16 -08:00
Roman Kennke
29f03ebf2c 8213384: Move G1/C2 barrier verification into G1BarrierSetC2
Reviewed-by: kvn, roland, eosterlund
2018-11-06 17:28:14 +01:00
Dmitry Chuyko
d95d55f801 8198294: AARCH64 - Set flags' optimal defaults for Cavium Thunder X2 CPU
Reviewed-by: adinn, drwhite
2018-11-06 15:14:10 +03:00
Roland Westrelin
8ab8d45552 8212243: More gc interface tweaks for arraycopy
Reviewed-by: kvn, eosterlund
2018-11-06 10:01:27 +01:00
Ying Zhou
0fade4897e 8210409: Refactor java.util.TimeZone:i18n shell tests to plain java tests
Reviewed-by: naoto
2018-11-06 15:23:52 +08:00
Dean Long
88fec44661 8204521: compiler/jsr292/RedefineMethodUsedByMultipleMethodHandles.java fails trying to delete temp file
Reviewed-by: kvn
2018-11-05 22:22:49 -08:00
Kim Barrett
1e9d3b5358 8210986: Add OopStorage cleanup to ServiceThread
Service thread performs cleanup when notified.

Reviewed-by: coleenp, rehn
2018-11-05 18:27:14 -05:00
Naoto Sato
a1029a4729 8213330: Fix legal headers in i18n tests
Reviewed-by: lancea
2018-11-05 13:55:41 -08:00
Joe Wang
32d4c852a9 8212876: ftp: links for character-sets require a login password
Reviewed-by: lancea
2018-11-05 13:45:01 -08:00
Joe Wang
f7a2a60f78 8212872: Broken link to Namespaces in XML Errata
Reviewed-by: lancea
2018-11-05 11:49:03 -08:00
Antonios Printezis
f131a8620c 8212883: Setting a double manageable flag with jcmd/jinfo crashes the JVM
Reviewed-by: dholmes, gziemski, stuefe
2018-11-05 14:00:52 -05:00
Gerard Ziemski
9b4393268d 8208519: Remove rehashable hashtable
Removed RehashableHashtable class

Reviewed-by: iklam, ccheung
2018-11-05 12:27:38 -06:00
Erik Joelsson
c8cb3978ba 8213227: Update jib src excludes to filter webrev and Jreg directories
Reviewed-by: dholmes, tbell, ihse
2018-11-05 09:10:57 -08:00
Roland Westrelin
8e57878e0a 8212610: Fix handling of memory in PhaseIdealLoop::clone_loop_predicates()
Reviewed-by: kvn, thartmann
2018-11-05 13:13:29 +01:00
Erik Gahlin
34d2e1ea70 8209960: -Xlog:jfr* doesn't work with the JFR
Reviewed-by: mgronlun
2018-11-05 14:40:16 +01:00
Lutz Schmidt
b9aa498282 8213196: [ppc] [s390]: prepare code for gcc7.3.1 warning (int-in-bool-context)
Reviewed-by: mdoerr, stuefe
2018-11-05 14:02:04 +01:00
Erik Österlund
3798a62adb 8212996: Use AS_NO_KEEPALIVE when accessing dead java.lang.invoke.CallSites during nmethod unloading
Reviewed-by: coleenp, pliden
2018-11-05 12:36:23 +01:00
Erik Österlund
364f0784a4 8212585: Clean up CompiledMethod::oops_reloc_begin()
Reviewed-by: kvn, pliden
2018-11-05 12:36:23 +01:00
Roland Westrelin
b5d2e875f6 8209835: Aarch64: elide barriers on all volatile operations
Reviewed-by: aph, adinn
2018-11-05 12:53:55 +01:00
Shashidhara Veerabhadraiah
6168452b9f 7124293: [macosx] VoiceOver reads percentages rather than the actual values for sliders
Reviewed-by: serb, kaddepalli
2018-11-01 18:13:25 +05:30
Phil Race
0bc7995de2 8210863: Remove Xrandr include files from JDK sources
Reviewed-by: serb
2018-10-31 16:58:37 -07:00
Phil Race
7613af50d9 Merge 2018-10-31 13:26:06 -07:00
Erik Joelsson
b0882f0ee6 8210837: Add libXrandr-devel to the Linux devkits
Reviewed-by: prr, mikael
2018-10-31 13:14:52 -07:00
Phil Race
e81c92234c 8210886: Remove references in xwindows.md to non-existent files
Reviewed-by: serb, dmarkov
2018-10-31 11:45:04 -07:00
Coleen Phillimore
d302072f50 8213211: [BACKOUT] Allow Klass::_subklass and _next_sibling to have unloaded classes
Reviewed-by: jiangli, jwilhelm
2018-10-31 14:38:14 -04:00
Sergey Bylokhov
e496d67042 8208702: javax/swing/reliability/HangDuringStaticInitialization.java may hang on macos
Reviewed-by: prr, denis
2018-10-31 10:01:23 -07:00
Pankaj Bansal
0e04de0f9c 8212903: [TestBug] Tests test/jdk/javax/swing/LookAndFeel/8145547/DemandGTK2.sh and DemandGTK3.sh fail on Ubuntu 18.04 LTS
Reviewed-by: prr, psadhukhan
2018-10-31 14:22:48 +05:30
Ichiroh Takiguchi
812a004bc9 8211810: X11 Time stamp data should be unsigned
Reviewed-by: serb
2018-10-30 15:51:10 -07:00
Manajit Halder
033a0df6ef 8208543: [macos] Support for apple.awt.documentModalSheet incomplete
Reviewed-by: dmarkov, kaddepalli
2018-10-30 17:06:32 +05:30
Prasanta Sadhukhan
2215c4c893 8213138: Update ProblemList.txt for mac
Reviewed-by: jdv
2018-10-30 15:43:37 +05:30
Jayathirth D V
04104ceaea 8213130: Update ProblemList after verification of jtreg tests in Win 7
Reviewed-by: psadhukhan
2018-10-26 22:20:19 +05:30
Sergey Bylokhov
b6be5030eb 8212790: Javadoc cleanup of java.awt.color package
Reviewed-by: prr, kaddepalli
2018-10-29 17:34:05 -07:00
Jayathirth D V
7f642e200b 8212865: Broken external link to TIFF6.pdf in ImageIO package-info.java
Reviewed-by: psadhukhan
2018-10-26 15:44:33 +05:30
Gauri Patil
413ac60a5f 8210057: Enable different look and feels in SwingSet3 demo test InternalFrameDemoTest
Reviewed-by: serb
2018-10-26 14:03:57 +05:30
Gauri Patil
d49ba47e9b 8211443: Enable different look and feels in SwingSet3 demo test SplitPaneDemoTest
Reviewed-by: serb
2018-10-26 13:52:08 +05:30
Prasanta Sadhukhan
a445441580 8212735: Compilation issue with javax.swing.InputVerifier example in javadoc section
Reviewed-by: serb
2018-10-25 13:09:58 +05:30
Prasanta Sadhukhan
b29bab7522 8192888: AllSwingComponentsBaselineTest fails with NullPointerException for NimbusLookAndFeel
Reviewed-by: serb
2018-10-25 13:07:42 +05:30
Thomas Stuefe
5dac22b8eb 8212913: (Nested)ThreadsListHandleInErrorHandlingTest need to disable ShowRegistersOnAssert
Reviewed-by: dholmes, mdoerr
2018-10-24 14:59:21 +02:00
Jayathirth D V
8cc75f412e Merge 2018-10-24 16:29:25 +05:30
Tobias Hartmann
18d4a423f9 8150552: Remove -XX:+AggressiveOpts
Removed the -XX:+AggressiveOpts flags and its usages.

Reviewed-by: ecaspole, sjohanss
2018-10-24 12:39:37 +02:00
Jayathirth D V
e41b1c19e9 Merge 2018-10-24 15:57:43 +05:30
Hamlin Li
533bd0a604 8210407: Refactor java.util.Calendar:i18n shell tests to plain java tests
Reviewed-by: naoto
2018-10-24 17:52:06 +08:00
Thomas Stuefe
2c208aa563 8212896: AIX build breaks after 8212611
Reviewed-by: simonis, dholmes
2018-10-24 10:42:12 +02:00
Jayathirth D V
66dc9c8301 Merge 2018-10-24 13:35:18 +05:30
David Holmes
c145bd0bd0 8199567: [Nestmates] Cleanup instanceKlass.cpp
Reviewed-by: lfoltan, coleenp
2018-10-23 17:01:48 -04:00
Joe Darcy
34397c4914 8212718: Refactor some annotation processor tests to better use collections
Reviewed-by: jlaskey, vromero
2018-10-23 10:32:39 -07:00
Doug Simon
272eb6824b 8212817: [JVMCI] ResolvedJavaMethod.isInVirtualMethodTable throws InternalError
Reviewed-by: never, iveresov
2018-10-23 18:49:32 +02:00
Jean Christophe Beyler
db6696837e 8212771: Remove remaining spaces before/after () for vmTestbase
Remove spaces around ()

Reviewed-by: phh, sspitsyn
2018-10-23 09:43:16 -07:00
Daniil Titov
c2bc749866 8211736: jdb doesn't print prompt when breakpoint is hit and suspend policy is STOP_EVENT_THREAD
Reviewed-by: cjplummer, amenkov, gadams, jcbeyler
2018-10-23 07:57:26 -07:00
Robbin Ehn
77ad5f6fa3 8212707: GlobalCounter padding is too optimistic
Reviewed-by: shade, redestad, mdoerr
2018-10-23 13:24:36 +02:00
Jayathirth D V
cfaf92f28b Merge 2018-10-23 15:29:10 +05:30
Claes Redestad
06a2bb5274 8212726: Replace some use of drop- and foldArguments with filtering argument combinator in StringConcatFactory
Reviewed-by: jlaskey, vlivanov
2018-10-23 11:03:51 +02:00
Aleksey Shipilev
a633b90085 8212754: Build failure: undefined JvmtiSampledObjectAllocEventCollector::object_alloc_is_safe_to_sample
Reviewed-by: jcbeyler, zgu, coleenp
2018-10-23 10:55:59 +02:00
Roland Westrelin
b4c401fa37 8212611: Small collection of simple changes from shenandoah
Reviewed-by: thartmann, kvn, eosterlund
2018-10-17 10:19:13 +02:00
Amy Lu
a0594bc138 8210353: Move java/util/Arrays/TimSortStackSize2.java back to tier1
Reviewed-by: forax, weijun
2018-10-23 13:47:17 +08:00
Nico Williams
10027304cd 8212216: JGSS: Fix leak in exception cases in getJavaOID()
Reviewed-by: mullan, weijun
2018-10-23 12:25:59 +08:00
Jean Christophe Beyler
e6d66056ab 8212535: Remove spaces before/after () for vmTestbase/[a-j]*
Remove white spaces from tests

Reviewed-by: amenkov, cjplummer, phh, sspitsyn
2018-10-22 19:31:41 -07:00
Mandy Chung
5e6d6b8642 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
Reviewed-by: dholmes, thartmann
2018-10-22 17:00:04 -07:00
Alex Menkov
fd8d1cd6bf 8212665: com/sun/jdi/DeferredStepTest.java: jj1 (line 57) - unexpected. lastLine=52, minLine=52, maxLine=55
Reviewed-by: jcbeyler, gadams, sspitsyn
2018-10-22 14:41:51 -07:00
Calvin Cheung
522608c0a7 8210990: [TESTBUG] Some CDS tests don't respect JVM variant being tested
Use CDSTestUtils.run() instead of CDSTestUtils.executeAndLog().

Reviewed-by: iklam
2018-10-22 14:31:10 -07:00
Jonathan Gibbons
81721a4b5f 8211876: Broken links in java.base files (ClassLoader.html#name)
Reviewed-by: lancea
2018-10-22 13:31:42 -07:00
Coleen Phillimore
932d2c6ba6 8212774: Remove dead code touching Klass::_lower_dimension
Found dead code removal while looking at usage of Compile_lock. This dead code doesn't have Compile_lock but other code touching Klass::_{upper,lower}_dimension do.

Reviewed-by: shade
2018-10-22 15:32:50 -04:00
Jean Christophe Beyler
a623db2148 8212148: Remove remaining NSK_CPP_STUBs
Remove remaining macros

Reviewed-by: amenkov, phh, iignatyev
2018-10-22 12:43:15 -07:00
Robert Field
dafc483475 8210959: JShell fails and exits when statement throws an exception whose message contains a '%'
Reviewed-by: jlahoda
2018-10-22 09:26:50 -07:00
Robert Field
749916b897 8210923: JShell: support for switch expressions
Reviewed-by: jlahoda
2018-10-22 08:30:39 -07:00
Erik Österlund
b3c1e4f663 8212663: Remove conservative at_safepoint assert when JFR writes type sets during class unloading
Reviewed-by: coleenp, dholmes, mgronlun
2018-10-22 12:13:29 +02:00
Chris Hegarty
cea4eef60a 8212695: Add explicit timeout to several HTTP Client tests
Reviewed-by: dfuchs, michaelm
2018-10-22 12:25:31 +01:00
Thomas Schatzl
5b925d80f5 8211853: Avoid additional duplicate work when a reference in the task queue has already been evacuated
Reviewed-by: kbarrett, sjohanss
2018-10-22 11:51:17 +02:00
Vyom Tewari
3bafe65a75 8212114: Reconsider the affect on closed streams resulting from 8189366
Reviewed-by: chegar, dfuchs
2018-10-22 15:20:43 +05:30
Jaikiran Pai
21341a37af 8212752: Typo in SSL log message related to inactive/disabled signature scheme
Reviewed-by: coffeys
2018-10-22 10:47:28 +01:00
Chris Yin
c4c6a0773b 8210339: Add 10 JNDI tests to com/sun/jndi/dns/FedTests/
Reviewed-by: vtewari, rriggs
2018-10-22 14:08:07 +08:00
Chris Yin
68a24bc4f1 8208542: Add 4 JNDI tests to com/sun/jndi/dns/ListTests/
Reviewed-by: vtewari, rriggs
2018-10-22 14:03:06 +08:00
Chris Yin
b2ce7f9ec6 8200151: Add 8 JNDI tests to com/sun/jndi/dns/ConfigTests/
Reviewed-by: vtewari, rriggs
2018-10-22 13:53:39 +08:00
Priya Lakshmi Muthuswamy
5f8d0a3080 8211879: Broken links in API overview
Reviewed-by: jjg, erikj
2018-10-22 10:16:34 +05:30
Igor Ignatyev
f1e1e1fe6f 8177709: Convert TestVirtualSpace_test to GTest
Reviewed-by: stuefe, jcbeyler
2018-10-19 16:29:45 -07:00
Kirill Zhaldybin
4c8b5f840c 8171097: Convert TestReservedSpace_test to Gtest
Reviewed-by: stuefe, jcbeyler, iignatyev
2018-10-19 16:29:43 -07:00
Jamil Nimeh
137e3161c4 8211806: TLS 1.3 handshake server name indication is missing on a session resume
Reviewed-by: xuelei, wetmore
2018-10-19 18:05:50 -07:00
Paul Hohensee
6beba541cd 8212698: Minor g1 #include changes and memoryService.hpp copyright date update
Fix #includes in g1FullGCOopClosures.inline.hpp, g1HeapVerifier.hpp + memoryService.hpp copyright date

Reviewed-by: tschatzl, jcbeyler
2018-10-19 17:54:21 -04:00
Alex Menkov
7fcee43b13 8212629: [TEST] wrong breakpoint in test/jdk/com/sun/jdi/DeferredStepTest
Reviewed-by: cjplummer, jcbeyler
2018-10-19 09:31:52 -07:00
Sean Mullan
d71882148b Merge 2018-10-19 09:32:46 -04:00
Sean Mullan
a675a48940 8195793: Remove GTE CyberTrust Global Root
Reviewed-by: rhalade
2018-10-19 09:31:57 -04:00
Michael McMahon
b9279ef850 8211437: java.net.http.HttpClient hangs on 204 reply without Content-length 0
Reviewed-by: chegar, dfuchs
2018-10-19 14:23:43 +01:00
Ioi Lam
4abb6861ec 8212642: Remove SystemDictionary::InitOption enum
Reviewed-by: dholmes, kvn, redestad
2018-10-18 23:05:01 -07:00
Roman Kennke
cb17e450b3 8212603: Need to step over GC barriers in Node::eqv_uncast()
Reviewed-by: shade, kvn, eosterlund
2018-10-18 21:14:49 +02:00
Ivan Gerasimov
f7393a59d1 8201355: Avoid native memory allocation in sun.security.mscapi.PRNG.generateSeed
Reviewed-by: weijun
2018-10-18 09:46:46 -07:00
Tobias Hartmann
21f57051c4 8212553: [TESTBUG] TestTrichotomyExpressions.java times out with Graal as JIT
Removed -Xcomp and increased timeout.

Reviewed-by: kvn
2018-10-18 17:50:49 +02:00
Andrew Luo
d54fa9e93d 8212662: Fix javadoc typo in java.lang.ref.Cleaner
Reviewed-by: lancea, rriggs
2018-10-18 10:45:05 -04:00
Harold Seigel
ef3c0a2458 8209087: Clean up runtime code that compares 'this' to NULL
Remove 'this' to NULL comparisons from methods and check if calling objects of these methods could be NULL.

Reviewed-by: lfoltan, gziemski
2018-10-18 10:35:58 -04:00
Sean Mullan
417d396b54 8210448: Copy Java XML Digital Signature API Specification into java.xml.crypto javadocs
Reviewed-by: weijun
2018-10-18 10:08:35 -04:00
Leo Korinth
d75f70d91c 8212595: Remove unused size_helper() in oop_oop_iterate* in instanceKlass.inline.hpp
Reviewed-by: shade, pliden
2018-10-18 11:23:54 +02:00
Dora Zhou
3c2c6bce02 8210406: Refactor java.util.PluggableLocale:i18n shell tests to plain java tests
Reviewed-by: naoto
2018-10-18 00:56:38 -07:00
Magnus Ihse Bursie
10b754ee85 8212587: equals in MakeBase does not handle empty strings correctly
Reviewed-by: erikj
2018-10-18 09:19:29 +02:00
Ioi Lam
c86ba29693 8212612: Add documentation about Arguments::_exit_hook
Reviewed-by: hseigel, dlong, dholmes
2018-10-17 21:51:00 -07:00
Jean Christophe Beyler
d63acb557c 8211899: Remove the NSK_CPP_STUB macros from vmTestbase for jvmti/scenarios/[E-M]
Remove the NSK_CPP_STUB macros from tests

Reviewed-by: amenkov, phh, sspitsyn
2018-10-17 21:28:11 -07:00
John Jiang
75489d717e 8210632: Add key exchange algorithm to javax/net/ssl/TLSCommon/CipherSuite.java
Javax/net/ssl/TLSCommon/CipherSuite.java supports key exchange algorithms

Reviewed-by: xuelei
2018-10-18 07:56:55 +08:00
Jesper Wilhelmsson
ab0baf86f7 Added tag jdk-12+16 for changeset 199658d1ef86 2018-10-18 00:50:14 +02:00
Aleksey Shipilev
00f3bbe51b 8212617: ARM32 build failures after JDK-7041262 (VM_Version should be called instead of Abstract_VM_Version so that overriding works)
Reviewed-by: hseigel
2018-10-17 22:47:59 +02:00
Aleksey Shipilev
b3d9f93363 8212616: x86_32 build failures after JDK-8210498 (nmethod entry barriers)
Reviewed-by: kvn, eosterlund
2018-10-17 22:42:31 +02:00
Roman Kennke
89d9a60caa 8212186: JVMTI lacks a few GC barriers/hooks
Reviewed-by: eosterlund, shade
2018-10-17 22:26:41 +02:00
Aleksey Shipilev
98fe69f3a2 8212608: Minimal VM build failure after JDK-8210498 (nmethod entry barriers)
Reviewed-by: eosterlund
2018-10-17 18:31:48 +02:00
Claes Redestad
b3b41df70f 8212597: Optimize String concatenation setup when using primitive operands
Reviewed-by: shade
2018-10-17 17:35:26 +02:00
John Jiang
da989adeb7 8212562: To remove lib/security from test/jdk/TEST.groups
Remove lib/security from test group jdk_security3

Reviewed-by: coffeys
2018-10-17 22:06:55 +08:00
Claes Redestad
b1c0737ad5 8212201: Classlist build tool should be built for the target JDK version
Reviewed-by: erikj, ihse
2018-10-17 14:19:21 +02:00
Priya Lakshmi Muthuswamy
4e1c510215 8211901: javadoc generates broken links on deprecated items page
Reviewed-by: jjg
2018-10-17 15:28:36 +05:30
Ying Zhou
05f0d11553 8210403: Refactor java.util.Locale:i18n shell tests to plain java tests
Reviewed-by: naoto
2018-10-17 16:37:41 +08:00
Gustavo Romero
84a22b6b36 8212481: PPC64: Enable POWER9 CPU detection
Reviewed-by: mdoerr, simonis
2018-10-16 16:26:28 -04:00
Aleksey Shipilev
307ba484e1 8213182: Minimal VM build failure after JDK-8212200 (assert when shared java.lang.Object is redefined by JVMTI agent)
Reviewed-by: dholmes, iklam
2018-10-31 19:00:59 +01:00
Volker Simonis
28362bdd93 8213151: [AIX] Some class library files are missing the Classpath exception
Reviewed-by: stuefe, rriggs, mbaesken
2018-10-31 16:02:43 +01:00
Bob Vandette
f161afb806 Merge 2018-10-31 10:48:13 -04:00
Martin Doerr
a241cf4367 8213086: Compiler thread creation should be bounded by available space in memory and Code Cache
Reviewed-by: kvn, thartmann
2018-10-31 14:48:36 +01:00
Thomas Schatzl
4da555c7a8 8213142: Use RAII to set the scanning source in G1ScanEvacuatedObjClosure
Reviewed-by: sangheki, kbarrett
2018-10-31 13:43:57 +01:00
Thomas Schatzl
28c9f22ebb 8212911: Unify and micro-optimize handling of non-in-collection set references in oop closures
Reviewed-by: kbarrett, sjohanss
2018-10-31 13:43:57 +01:00
Thomas Schatzl
0e622f29a2 8211388: Make OtherRegionsTable independent of the region it is for
Reviewed-by: sjohanss, sangheki
2018-10-31 13:43:57 +01:00
Thomas Schatzl
0d19f0bb51 6490394: G1: Allow heap shrinking / memory unmapping after reclaiming regions during Remark
Reviewed-by: sjohanss, sangheki
2018-10-31 13:43:57 +01:00
Thomas Schatzl
3a343a5681 8071913: Filter out entries to free/uncommitted regions during iteration
Reviewed-by: sjohanss, kbarrett
2018-10-31 13:43:57 +01:00
Coleen Phillimore
adb1dcdcc2 8213107: Make ClassLoaderDataGraph iterator skip unloaded CLDs
With concurrent class unloading, the CLDG could contain unloaded CLDs while iterating in a safepoint

Reviewed-by: lfoltan, eosterlund
2018-10-31 07:06:54 -04:00
Magnus Ihse Bursie
f66d1f3d9e 8213184: Revert change in jib-profiles.js from run-test-prebuilt to test-prebuilt
Reviewed-by: dholmes
2018-10-31 11:36:07 +01:00
Magnus Ihse Bursie
53ecc07aaa 8210958: Rename "make run-test" to "make test"
Reviewed-by: erikj
2018-10-31 09:30:24 +01:00
Robbin Ehn
80aa38305d 8212933: Thread-SMR: requesting a VM operation whilst holding a ThreadsListHandle can cause deadlocks
Reviewed-by: eosterlund, dcubed, sspitsyn, dholmes
2018-10-31 08:09:45 +01:00
Markus Grönlund
e4f5ffc403 8213172: CDS and JFR tests fail with assert(JdkJfrEvent::is(klass)) failed: invariant
Reviewed-by: egahlin, dholmes
2018-10-31 09:09:23 +01:00
Priya Lakshmi Muthuswamy
99621df489 8210244: {@value} should be permitted in module documentation
Reviewed-by: jjg, sundar
2018-10-31 10:29:59 +05:30
Joe Wang
7ce1436913 8212866: Broken link to schematron.com
Reviewed-by: lancea
2018-10-30 20:44:48 -07:00
Xue-Lei Andrew Fan
413d5e8c61 8212738: Incorrectly named signature scheme ecdsa_secp512r1_sha512
Reviewed-by: ascarpino
2018-10-30 19:47:16 -07:00
Daniil Titov
93021808e6 8195627: [Graal] nsk/jdi/VirtualMachine/redefineClasses/redefineclasses026 hangs with Graal in Xcomp mode
Reviewed-by: sspitsyn, kvn
2018-10-30 19:29:21 -07:00
Jiangli Zhou
b9f22907d3 8203953: Rename SystemDictionary::load_shared_class(Symbol*, Handle, TRAPS) to load_shared_boot_class()
Rename SystemDictionary::load_shared_class.

Reviewed-by: coleenp
2018-10-30 22:24:04 -04:00
Erik Gahlin
ba18b569ef 8203629: Produce events in the JDK without a dependency on jdk.jfr
Reviewed-by: mgronlun
2018-10-31 02:10:21 +01:00
Dean Long
7d2ac4cc31 8211743: [AOT] crash in ScopeDesc::decode_body() when JVMTI walks AOT frames
Reviewed-by: kvn
2018-10-30 15:17:58 -07:00
Kim Barrett
3185dcf0f2 8212827: GlobalCounter should support nested critical sections
Support nested critical sections.

Reviewed-by: eosterlund, rehn, tschatzl
2018-10-30 18:06:35 -04:00
Kuai Wei
dcb6e1dda8 8210853: JIT: C2 doesn't skip post barrier for new allocated objects
Skip copy Region node when look for last allocation

Reviewed-by: thartmann, kvn
2018-10-30 14:38:59 -07:00
Adam Petcher
0aa4581229 8205476: KeyAgreement#generateSecret is not reset for ECDH based algorithm
Clarify spec of generateSecret and modify ECDH in SunEC to conform to spec

Reviewed-by: mullan
2018-10-30 13:48:19 -04:00
Naoto Sato
02d6d9c259 8212941: Loosen the range of JapaneseEra
Reviewed-by: rriggs
2018-10-30 10:32:54 -07:00
Bob Vandette
05027c124c 8209093: JEP 340: One AArch64 Port, Not Two
Reviewed-by: dholmes, erikj, mikael, shade, avoitylov, bulasevich
2018-10-30 10:39:19 -04:00
Harold Seigel
0399760d7f 8213148: JDK build fails because of missing #includes
Add missing #includes

Reviewed-by: dcubed
2018-10-30 09:13:00 -04:00
Joe Darcy
7e19a09742 8212081: AnnotatedType.toString implementation don't print annotations on embedded types
Reviewed-by: jfranck, wmdietl
2018-10-29 11:31:25 -07:00
Calvin Cheung
e0911eacd6 8209566: [TESTBUG] runtime/appcds/jigsaw/modulepath/JvmtiAddPath.java timeout on tier6 on sparc
Increased the timeout from 120s (default) to 240s

Reviewed-by: dcubed, mseledtsov
2018-10-29 11:05:45 -07:00
Jiangli Zhou
0c554411b0 8205327: Clean up #if INCLUDE_CDS in classLoaderExt.cpp and classLoaderExt.hpp
Clean up #if INCLUDE_CDS in classLoaderExt.* files.

Reviewed-by: dholmes
2018-10-29 14:00:48 -04:00
Thomas Stuefe
d153c9c259 8213017: jspawnhelper: need to handle pipe write failure when sending return code
Reviewed-by: alanb
2018-10-26 16:49:18 +02:00
Claes Redestad
91a2c2e340 8213035: Pack MethodHandleInlineStrategy coder and length into a long
Reviewed-by: vlivanov, mchung
2018-10-30 09:34:50 +01:00
Tobias Hartmann
4b27547977 8177899: Tests fail due to code cache exhaustion on machines with many cores
Implemented upper limit on CICompilerCount based on code cache size.

Reviewed-by: kvn, mdoerr
2018-10-30 09:06:08 +01:00
Vicente Romero
d9d067369b 8212624: remove outdated entries from langtools problem list
Reviewed-by: darcy
2018-10-29 17:11:46 -04:00
Vicente Romero
d0696b538a 8213100: fix test OptionSmokeTest before removing it from the problem list
Reviewed-by: jlahoda
2018-10-29 17:09:44 -04:00
Igor Ignatyev
93c891c51b 8177710: Convert TestMetaspaceUtils_test to GTest
Reviewed-by: tschatzl
2018-10-29 14:04:44 -07:00
Kirill Zhaldybin
810ba0eb12 8157728: Convert GCTimer_test to GTest
Reviewed-by: tschatzl, jcbeyler, iignatyev
2018-10-29 14:04:42 -07:00
Calvin Cheung
efce2c0397 8212154: [TESTBUG] CheckArchivedModuleApp fails with NPE when JVMCI is absent
Added a null check on wb.getBooleanVMFlag("EnableJVMCI").

Reviewed-by: hseigel, jiangli
2018-10-29 13:58:29 -07:00
Ioi Lam
9a06fc3ea7 8212205: VM asserts after CDS archive has been unmapped
Reviewed-by: dholmes, jiangli, hseigel, stuefe
2018-10-25 11:23:43 -07:00
Robert Field
37ef084d73 8210808: jshell tool: only considers the first snippet of the external editor
Reviewed-by: jlahoda, sundar
2018-10-29 08:34:33 -07:00
Jim Laskey
7a9db013b7 8212694: Using Raw String Literals with align() and Integer.MIN_VALUE causes out of memory error
Reviewed-by: smarks, sherman
2018-10-29 12:31:49 -03:00
Coleen Phillimore
6a045adbed 8212958: Allow Klass::_subklass and _next_sibling to have unloaded classes
Don't return unloaded klasses. Make sure access is protected by Compile_lock.

Reviewed-by: eosterlund, dlong
2018-10-29 10:21:34 -04:00
Harold Seigel
71637b00c7 8212997: [TESTBUG] Remove defmeth tests for class file versions 50 and 51
Remove the unneeded tests.  Keep the tests for class file versions 49 and 52.

Reviewed-by: acorn, coleenp
2018-10-29 08:38:59 -04:00
Thomas Schatzl
f69c1407ae 8212766: TestPromotionEventWithG1.java failed due to "RuntimeException: PLAB size is smaller than object size."
Also send PLAB size in bytes, not in heap words.

Reviewed-by: shade, sjohanss
2018-10-29 08:55:03 +01:00
Thomas Schatzl
931c9cf86d 8212974: Update RS Skipped cards uses wrong enum to register to phase
Reviewed-by: kbarrett
2018-10-29 08:52:04 +01:00
Jonathan Gibbons
d797264488 8213056: Nested anchor tags in java.lang.module
Reviewed-by: darcy
2018-10-26 15:13:12 -07:00
Mandy Chung
890a8b7705 8213043: Add internal Unsafe xxxObject methods as jsr166 is broken
Reviewed-by: alanb
2018-10-26 13:59:02 -07:00
Lance Andersen
a655e6b52b 8212129: Remove finalize methods from java.util.zip.ZipFIle/Inflator/Deflator
Reviewed-by: rriggs, sherman, alanb, clanger
2018-10-26 14:02:31 -04:00
Gerard Ziemski
0108d754d7 8017061: os_bsd.cpp contains code for UseSHM and UseHugeTLBFS
Removed the code using unused flags.

Reviewed-by: dholmes, coleenp
2018-10-26 10:47:05 -05:00
Weijun Wang
ae77ef7d7a 8213007: Update the link in test/jdk/sun/security/provider/SecureRandom/DrbgCavp.java
Reviewed-by: mullan
2018-10-26 22:58:04 +08:00
Thomas Stuefe
e4f51809e4 8212173: Thread._stack_base/_stack_size initialized too late for new threads
Reviewed-by: dholmes, simonis
2018-10-19 09:39:29 +02:00
Harold Seigel
67d76fe937 8192864: defmeth tests can hide failures
Add a call to addFailureCount() to record previously hidden failures.

Reviewed-by: lfoltan, coleenp
2018-10-26 08:23:52 -04:00
Calvin Cheung
7c81535d46 8209598: Clean up how messages are printed when CDS aborts start-up
Added a new function vm_exit_during_cds_dumping() to java.cpp so that it can be used when an error condition is encountered during CDS dumping.

Reviewed-by: iklam, dholmes, jiangli
2018-10-25 21:40:17 -07:00
Weijun Wang
8dbea74827 8212867: Link to DRBG test vectors is redirected to a broken link
Reviewed-by: mullan
2018-10-26 11:11:13 +08:00
Tom Rodriguez
ff4cf4f40b 8212956: [JVCMI] SpeculationReason should maintain identity
Reviewed-by: kvn
2018-10-25 19:00:46 -07:00
Dean Long
c24f6506e7 8021335: Missing synchronization when reading counters for live threads and peak thread count
Reviewed-by: dholmes, mchung
2018-10-25 18:41:26 -07:00
Iris Clark
7533f9f78a 8212994: Links to Oracle websites should use "https:"
Reviewed-by: erikj, lancea
2018-10-25 17:06:40 -07:00
Erik Joelsson
8b98cc3722 8213005: Missing symbols in hs_err files on Windows after JDK-8212028
Reviewed-by: ctornqvi
2018-10-25 16:47:14 -07:00
David Holmes
3837f1abc1 8210242: vmTestbase/nsk/stress/jni/jnistress001.java crashes with EXCEPTION_ACCESS_VIOLATION on windows-x86
Non-NUL-terminated string was passed to %s - use %.*s to specify the actual length.

Reviewed-by: lfoltan, hseigel
2018-10-25 19:12:39 -04:00
Jean Christophe Beyler
589b596bec 8212884: Remove the assignments in ifs for vmTestbase/[a-s]
Extract assignments from if statements in vmTestbase

Reviewed-by: cjplummer, sspitsyn
2018-10-25 14:23:26 -07:00
Abdul Kolarkunnu
162e75f4a8 8212897: Some improvements in the EditorPaneDemotest
Reviewed-by: serb
2018-10-25 08:59:26 -07:00
Alex Menkov
b4cb7d6fc7 8212151: jdi/ExclusiveBind.java times out due to "bind failed: Address already in use" on Solaris-X64
Reviewed-by: sspitsyn, jcbeyler
2018-10-25 11:48:18 -07:00
Pavel Punegov
a7aa770b9a 8164546: Convert DirectivesParser_test to GTest
Reviewed-by: kvn, iignatyev, neliasso
2018-10-25 11:18:24 -07:00
Mandy Chung
0f44b453a3 Merge 2018-10-25 10:58:59 -07:00
Mandy Chung
d523a17e80 8212795: ThreadInfoCompositeData.toCompositeData fails to map ThreadInfo to CompositeData
Reviewed-by: dfuchs
2018-10-25 10:57:42 -07:00
Mandy Chung
85598bc90f 8212948: Remove unused jdk.internal.misc.VMNotification interface
Reviewed-by: alanb
2018-10-25 10:56:45 -07:00
Sean Mullan
7727e4ca2f 8211883: Disable anon and NULL cipher suites
Reviewed-by: jnimeh
2018-10-25 13:55:28 -04:00
Dean Long
fb3ab945a6 8212978: Add RedefineMethodUsedByMultipleMethodHandles.java to problem list
Reviewed-by: kvn
2018-10-25 09:20:54 -07:00
Jean Christophe Beyler
be312edc2a 8212770: Remove spaces before/after () for vmTestbase/jvmti/[s-u]
Remove spaces before/after ()

Reviewed-by: amenkov, cjplummer
2018-10-25 08:18:42 -07:00
Michael McMahon
ae21c81dd7 8212926: HttpClient does not retrieve files with large sizes over HTTP/1.1
Reviewed-by: chegar, dfuchs
2018-10-25 12:09:41 +01:00
Robert Field
0d815c2677 8211694: JShell: Redeclared variable should be reset
Reviewed-by: sundar
2018-10-24 21:17:30 -07:00
Amy Lu
f095a9ee49 8209768: Refactor java/util/prefs/CheckUserPrefsStorage.sh to plain java test
Reviewed-by: bchristi, weijun
2018-10-25 11:05:24 +08:00
Amy Lu
6ce0aeb00b 8210908: Refactor java/util/prefs/PrefsSpi.sh to plain java test
Reviewed-by: bchristi
2018-10-25 11:00:40 +08:00
Jesper Wilhelmsson
801895a09e Added tag jdk-12+17 for changeset eefa65e142af 2018-10-24 18:14:28 -07:00
Ioi Lam
93395f6a9e 8212200: assert when shared java.lang.Object is redefined by JVMTI agent
Reviewed-by: dholmes, jiangli, hseigel, lfoltan, sspitsyn
2018-10-17 15:57:10 -07:00
Jonathan Gibbons
02966a7b67 8213102: Oracle Unilinks are [301 Moved Permanently] to https://docs.oracle.com
Reviewed-by: lancea, mchung
2018-10-29 12:33:41 -07:00
Jayathirth D V
3e85467bc6 Merge 2018-10-16 23:21:05 +05:30
Sergey Bylokhov
550af18f08 8212213: All tests for splashscreen stopped worked in jdk12b13
Reviewed-by: ihse, prr
2018-10-19 11:15:57 -07:00
Ichiroh Takiguchi
3ee3988bfd 8211393: Memory leak issue on awt_InputMethod.c
Reviewed-by: naoto, clanger
2018-10-19 15:26:50 +01:00
Prasanta Sadhukhan
b64e7fc2bd 8211987: Menu bar gets input focus even if Alt-released event is consumed
Reviewed-by: serb
2018-10-19 12:50:25 +05:30
Prasanta Sadhukhan
667b323a89 8212098: Cleanup of ProblemList.txt for fixed swing tests
Reviewed-by: serb
2018-10-19 12:39:56 +05:30
Sergey Bylokhov
b3b647ef9a 8133713: [macosx] Accessible JTables always reported as empty
Reviewed-by: prr
2018-10-16 16:49:50 -07:00
Sergey Bylokhov
518f32791a 8210739: Calling JSpinner's setFont with null throws NullPointerException
Reviewed-by: psadhukhan
2018-10-16 15:47:53 -07:00
John Neffenger
0ed2c6c295 8212071: Need to set the FreeType LCD Filter to reduce fringing
Reviewed-by: prr, lbourges
2018-10-16 10:54:50 -07:00
Jayathirth D V
eb1b046a1d Merge 2018-10-16 14:26:22 +05:30
John Jiang
f507e3c9d1 8211971: Move security/cacerts/VerifyCACerts.java and security/CheckBlacklistedCerts.java
Move lib/security tests to sun/security/lib

Reviewed-by: weijun
2018-10-16 10:16:04 +08:00
Viktor Dukhovni
2a10506942 8212165: JGSS: Fix cut/paste error in NativeUtil.c
Reviewed-by: alanb, weijun
2018-10-16 09:19:32 +08:00
David Holmes
ffc26adbea 8048215: [TESTBUG] java/lang/management/ManagementFactory/ThreadMXBeanProxy.java Expected non-null LockInfo
Ensure the target thread has reached wait() before inspecting it

Reviewed-by: mchung, dfuchs, jcbeyler
2018-10-15 21:02:17 -04:00
Jean Christophe Beyler
7afa70096a 8212083: Handle remaining gc/lock native code and fix two strings
Migrate code to using wrapping JNI for exceptions

Reviewed-by: phh, tschatzl
2018-10-15 14:55:17 -07:00
Jean Christophe Beyler
d7c7ce19f1 8211980: Remove ThreadHeapSampler enable/disable/enabled methods
Remove methods from ThreadHeapSampler

Reviewed-by: dholmes, phh
2018-10-15 14:16:35 -07:00
Shashidhara Veerabhadraiah
ec5f10e6a2 8061359: [macosx] Checkbox toggles on Space press but does not spoken by Voice Over
Reviewed-by: mhalder, serb
2018-10-15 10:29:06 +05:30
Prasanta Sadhukhan
a7c90c5400 8212040: Compilation error due to wrong usage of NSPrintJobDispositionValue in mac10.12
Reviewed-by: jdv
2018-10-14 18:05:06 +05:30
Prasanta Sadhukhan
2491c32fcd 6828982: UIDefaults.getUI swallows original exception
Reviewed-by: kaddepalli, prr
2018-10-11 14:19:36 +05:30
Prasanta Sadhukhan
aa4584af89 8211886: Bad/broken link in synthFileFormat.html
Reviewed-by: serb
2018-10-10 16:20:52 +05:30
Tagir F. Valeev
e71caa9aae 8211693: Convert C-style array declarations in client demos and jdk.accessibility
Reviewed-by: serb
2018-10-09 18:25:57 -07:00
Brent Christian
6a9241a6a6 8211731: Reconsider default option for ClassPathURLCheck change done in JDK-8195874
Reviewed-by: alanb, mchung
2018-10-05 15:12:37 -07:00
Roland Westrelin
03ef2b0df5 8211320: Aarch64: unsafe.compareAndSetByte() and unsafe.compareAndSetShort() c2 intrinsics broken with negative expected value
Reviewed-by: adinn, aph
2018-10-04 09:24:27 +02:00
Daniel Fuchs
059682d681 8213301: Fix legal headers in jdk logging tests
Reviewed-by: chegar, mchung
2018-11-05 11:20:47 +00:00
Magnus Ihse Bursie
a836b891b8 8213339: Update precompiled.hpp with headers based on current frequency
Reviewed-by: shade, dholmes
2018-11-05 10:52:36 +01:00
Erik Österlund
f2fe71b186 8212989: Allow CompiledMethod ExceptionCache have unloaded klasses
Reviewed-by: kvn, pliden
2018-11-05 08:01:39 +01:00
Jan Lahoda
fdb010502b 8213103: RoundEnvironment.getElementsAnnotatedWith(Class) crashes with -source 8
Correct handling of missing annotation with -source 8.

Reviewed-by: darcy, jjg, vromero
2018-11-05 10:31:47 +01:00
Lance Andersen
87f243d539 8213328: Update test copyrights in test/java/util/zip and test/jdk/tools
Reviewed-by: joehw
2018-11-04 13:06:02 -05:00
Jiangli Zhou
80ad2c7e71 8212995: Placing the Integer.IntegerCache and cached Integer objects in the closed archive heap region
Support shareable archive object subgraphs in closed archive heap regions.

Reviewed-by: iklam, ccheung
2018-11-03 15:40:19 -04:00
Jean Christophe Beyler
e3a2417b63 8213246: Fix typo in vmTestbase failuire to failure
Fix failuire typo in two spots

Reviewed-by: mikael, dcubed, iignatyev
2018-11-03 12:37:55 -07:00
Ioi Lam
51f2d9801b 8211336: [TESTBUG] appcds tests with incorrect usage of -XX:+UseStringDeduplication
Reviewed-by: dholmes, ccheung, mseledtsov
2018-10-29 14:01:46 -07:00
Igor Ignatyev
bf800514ff 8213337: windows-x64-slowdebug build is broken by 8177708
Reviewed-by: dholmes
2018-11-02 23:44:45 -07:00
Joe Darcy
24d201cb54 8213256: Clarify runtime vs compile time annotations for RoundEnvironment.getElementsAnnotatedWith(Class)
Reviewed-by: jjg, jlahoda
2018-11-02 18:49:10 -07:00
Jiangli Zhou
4b813da8c8 8209564: runtime/appcds/CDSandJFR.java timeout on tier6 on sparc
Set timeout 500 in CDSandJFR.java

Reviewed-by: dcubed
2018-11-02 19:30:31 -04:00
Igor Ignatyev
35871a8ca1 8213058: remove ExecuteInternalVMTests and VerboseInternalVMTests flags
Reviewed-by: erikj, dholmes, ihse
2018-11-02 16:27:55 -07:00
Igor Ignatyev
de6f5b33ed 8177708: Convert TestReserveMemorySpecial_test to Gtest
Reviewed-by: gziemski, vlivanov
2018-11-02 16:26:11 -07:00
Kim Barrett
5f7a59f69c 6735527: Bitmap - speed up searches
New parameterized bitmap search routine, using ctz.

Reviewed-by: tschatzl, shade
2018-11-02 17:51:21 -04:00
Ekaterina Pavlova
49a3af9513 8152988: [AOT] Update test batch definitions to include aot-ed java.base module mode into hs-comp testing
Reviewed-by: kvn, erikj, ihse
2018-11-02 14:00:29 -07:00
Joe Wang
d6f958719d 8213321: Fix legal headers in test/jaxp
Reviewed-by: darcy, jjg, lancea
2018-11-02 12:33:28 -07:00
Hannes Wallnöfer
f8c4729c1b 8210405: Javadoc search doesn't always consider full input upon Enter
Reviewed-by: jjg
2018-11-02 18:35:30 +01:00
Brian Burkhalter
36ca4f5893 8213306: Fix legal headers in test/java/nio
Reviewed-by: chegar
2018-11-02 09:58:55 -07:00
Brian Burkhalter
e21d8fef64 8213305: Fix legal headers in test/java/math
Reviewed-by: darcy
2018-11-02 09:56:47 -07:00
Daniel D. Daugherty
d17f8229f7 8213308: ProblemList runtime/appcds/jigsaw/classpathtests/EmptyClassInBootClassPath.java
Reviewed-by: ccheung, darcy
2018-11-02 12:49:42 -04:00
Chris Hegarty
84d6099da9 8213296: Fix legal headers in test/jdk/java/net
Reviewed-by: alanb, dfuchs
2018-11-02 16:11:29 +00:00
Robbin Ehn
6e5e462e2a 8213236: A partial removed/deleted JavaThread cannot transition
Reviewed-by: dholmes, dcubed, eosterlund
2018-11-02 14:13:05 +01:00
Erik Österlund
25f14cd757 8209189: Make CompiledMethod::do_unloading more concurrent
Reviewed-by: kvn, coleenp
2018-11-02 08:33:59 +01:00
Erik Österlund
97d3dc7902 8212681: Refactor IC locking to use a fine grained CompiledICLocker
Reviewed-by: coleenp, rehn, kvn
2018-11-01 14:57:26 +01:00
Per Lidén
54d4acf73f 8212184: Incorrect oop ref strength used for referents in FinalReference
Reviewed-by: eosterlund, kbarrett
2018-11-02 07:58:22 +01:00
Per Lidén
ca91f514d8 8212921: ZGC: Move verification to after resurrection unblocked
Reviewed-by: eosterlund
2018-11-02 07:46:00 +01:00
Tom Rodriguez
a429adfa2d 8213203: [JVMCI] adopt formatting changes from jvmci 8
Reviewed-by: kvn
2018-11-02 00:26:25 -07:00
Joe Darcy
7a350b9474 6304578: (reflect) toGenericString fails to print bounds of type variables on generic methods
Reviewed-by: vromero, plevart, briangoetz, mcimadamore
2018-11-01 20:37:45 -07:00
Jonathan Gibbons
72bfdd96f1 8213265: fix missing newlines at end of files
Reviewed-by: darcy
2018-11-01 15:11:08 -07:00
Ichiroh Takiguchi
be00a3f7ee 8211382: ISO2022JP and GB18030 NIO converter issues
Reviewed-by: sherman, rriggs
2018-11-01 17:48:10 -04:00
Jonathan Gibbons
73fa99ae86 8213263: fix legal headers in test/langtools
Reviewed-by: darcy
2018-11-01 14:32:55 -07:00
Naoto Sato
0eda8a33bb 8213046: Define Japanese new Era character
Reviewed-by: lancea, rriggs
2018-11-01 14:07:59 -07:00
Sean Mullan
30745fe1a8 8212669: Add note to Cipher javadoc about using full transformation and not relying on defaults
Reviewed-by: xuelei
2018-11-01 16:53:54 -04:00
Robbin Ehn
9a043c50f9 8209495: NMethodSweeper::sweep_code_cache cause severe delays
Reviewed-by: thartmann, eosterlund
2018-11-01 17:56:01 +01:00
Ramanand Patil
3eef9c7997 8213085: (tz) Upgrade time-zone data to tzdata2018g
Reviewed-by: martin, naoto
2018-11-01 12:43:21 -04:00
Joe Wang
2c4392d433 8212871: Broken links give 401-Unauthorized
Reviewed-by: lancea
2018-11-01 09:41:04 -07:00
Brian Burkhalter
cb73851579 8213210: Change ServerSocket(SocketImpl impl) constructor to protected access
Reviewed-by: alanb, chegar
2018-11-01 09:34:59 -07:00
Nico Williams
58a340bcb1 8212217: JGSS: Don't dispose() of creds too eagerly
Reviewed-by: mullan, weijun
2018-11-01 22:41:32 +08:00
Tobias Hartmann
2fe0a0f20b 8213014: Crash in CompileBroker::make_thread due to OOM
Added missing null checks and checks for pending exception.

Reviewed-by: kvn, dholmes, mdoerr
2018-11-01 14:15:35 +01:00
Magnus Ihse Bursie
b77f937f7e 8213237: Remove test-compile-commands from jib-profiles.js
Reviewed-by: lancea
2018-11-01 11:28:02 +01:00
Doug Simon
3d2f28b540 8212934: [JVMCI] do not propagate resolution error in HotSpotResolvedJavaFieldImpl.getType
Reviewed-by: kvn
2018-11-01 11:23:12 +01:00
Gary Adams
ad6611f3ce 8211013: [TESTBUG] nsk/jdb/kill/kill002 wait for message and prompt
Reviewed-by: cjplummer, dtitov, jcbeyler
2018-10-23 14:23:46 -04:00
Gary Adams
426873751c 8206330: Revisit com/sun/jdi/RedefineCrossEvent.java
Reviewed-by: cjplummer, sspitsyn, amenkov
2018-10-23 11:51:03 -04:00
David M Lloyd
f853aebd9b 8212828: (process) Provide a way for Runtime.exec to use posix_spawn on linux
Reviewed-by: alanb, rriggs
2018-10-18 15:56:37 -05:00
Igor Ignatyev
0c061174b6 8177711: Convert TestVirtualSpaceNode_test to GTest
Reviewed-by: jwilhelm
2018-10-31 19:56:51 -07:00
Jesper Wilhelmsson
cadfdfd812 Added tag jdk-12+18 for changeset e38473506688 2018-11-01 02:12:13 +01:00
Calvin Cheung
fc19077b52 8213000: Obsolete the IgnoreUnverifiableClassesDuringDump vm option
Remove code referencing the IgnoreUnverifiableClassesDuringDump

Reviewed-by: dholmes, jiangli
2018-10-31 14:00:51 -07:00
Rajan Halade
b627cee532 8207059: Update test certificates in QuoVadisCA.java test
Reviewed-by: mullan, mbaesken
2018-10-31 13:58:15 -07:00
Bob Vandette
c656dde507 Merge 2018-10-31 16:27:31 -04:00
Bob Vandette
f7ebca2763 8213204: ReservedStackTest and ReservedStackTestCompiler tests fail on windows
Reviewed-by: fparain, dcubed, jwilhelm
2018-10-31 16:27:01 -04:00
Abdul Kolarkunnu
6352b5f64d 8209499: Create test for SwingSet EditorPaneDemo
Reviewed-by: serb
2018-10-03 23:00:32 -07:00
Alexandre Iline
afa8a8ff9b Merge 2018-10-15 13:44:31 -07:00
Aleksey Shipilev
a0e02d649c 8212178: Soft reference reclamation race in com.sun.xml.internal.stream.util.ThreadLocalBufferAllocator
Reviewed-by: rkennke, kbarrett, joehw
2018-10-15 22:30:32 +02:00
Jiangli Zhou
ace36f9ac3 8211956: AppCDS crashes for some uses with JRuby
Make sure FileMapInfo::verify_mapped_heap_regions only verifies 'num' of spaces.

Reviewed-by: iklam
2018-10-15 15:21:54 -04:00
Erik Joelsson
232912a6ca 8212028: Use run-test makefile framework for testing in Oracle's Mach5
Reviewed-by: ihse
2018-10-15 11:36:20 -07:00
Abdul Kolarkunnu
56847065af 8211139: Increase timeout value in all tests under jdk/sanity/client/SwingSet/src
Reviewed-by: serb
2018-10-11 07:22:53 -07:00
Zhengyu Gu
a0ce3d3f18 8212074: Add method to peek the remaining tasks in task queues
Add methods for implementing new task termination protocol

Reviewed-by: tschatzl, shade, rkennke
2018-10-15 11:53:15 -04:00
John Jiang
4fe2edae59 8211978: Move testlibrary/jdk/testlibrary/SimpleSSLContext.java and testkeys to network testlibrary
Move SimpleSSLContext.java and testkeys to test/lib/jdk/test/lib/net

Reviewed-by: chegar
2018-10-15 22:47:03 +08:00
Sean Coffey
497de20391 8209862: CipherCore performance improvement
Co-authored-by: Sergey Kuksenko <sergey.kuksenko@oracle.com>
Reviewed-by: apetcher, ascarpino
2018-10-15 14:42:31 +01:00
Leo Korinth
e898052f3b 8211447: Replace oop_pc_update_pointers with oop_iterate and closure
Reviewed-by: sjohanss, tschatzl
2018-10-12 12:14:01 +02:00
Leo Korinth
78fe66c3bb 8211446: Replace oop_pc_follow_contents with oop_iterate and closure
Reviewed-by: sjohanss, tschatzl
2018-10-12 12:13:06 +02:00
Leo Korinth
4bc903d17a 8201436: Replace oop_ps_push_contents with oop_iterate and closure
Reviewed-by: sjohanss, tschatzl
2018-10-12 12:10:34 +02:00
Priya Lakshmi Muthuswamy
ce05c7751d 8211957: Broken links to stylesheet in java.base/doc-files
Reviewed-by: alanb
2018-10-15 17:52:42 +05:30
Martin Doerr
e790d11666 8211852: inspect stack during error reporting
Reviewed-by: dholmes, goetz
2018-10-15 08:08:02 +02:00
Jean Christophe Beyler
e431f6a418 8212082: Remove the NSK_CPP_STUB macros for remaining vmTestbase/jvmti/[sS]*
Remove NSK_CPP_STUB macros from the tests

Reviewed-by: amenkov, phh
2018-10-14 19:07:34 -07:00
Chris Yin
285fca70b4 8187522: test/sun/net/ftp/FtpURLConnectionLeak.java timed out
Reviewed-by: chegar, vtewari
2018-10-15 09:34:18 +08:00
Kim Barrett
6330fc1cb6 8212023: Implicit narrowing in Solaris/sparc initializers
Explicitly narrow or fix destination types.

Reviewed-by: dholmes, tschatzl
2018-10-12 17:35:26 -04:00
Lance Andersen
1226dcbcfe 8212045: Add back tests removed from HashesTest.java and AddExportsTest.java
Reviewed-by: rriggs
2018-10-12 14:16:24 -04:00
Alex Menkov
24fb839864 8195703: BasicJDWPConnectionTest.java: 'App exited unexpectedly with 2'
Reviewed-by: sspitsyn, jcbeyler
2018-10-12 10:08:11 -07:00
Roman Kennke
7d7da8976b 8211955: GC abstraction for LAB reserve
Reviewed-by: pliden, shade
2018-10-10 23:05:15 +02:00
Naoto Sato
a3a7edbd4d 8211961: Broken link in java.util.Locale
Reviewed-by: mchung
2018-10-15 09:35:05 -07:00
Muthusamy Chinnathambi
cbe11130f5 8027434: "-XX:OnOutOfMemoryError" uses fork instead of vfork
Reviewed-by: dholmes, iklam
2018-10-09 16:08:07 +05:30
Severin Gehwolf
cfb6fb66c2 8212110: Build of saproc.dll broken on Windows 32 bit after JDK-8210647
Only add RTC1 compile flag for slowdebug builds.

Reviewed-by: mdoerr, erikj
2018-10-12 10:58:06 +02:00
Roman Kennke
f958e6642e 8212053: A few more missing object equals barriers
Reviewed-by: shade, zgu
2018-10-12 16:25:24 +02:00
Michael McMahon
96b43418b5 8203850: java.net.http HTTP client should allow specifying Origin and Referer headers
Reviewed-by: chegar, dfuchs
2018-10-12 11:12:51 +01:00
David Holmes
55692eb0ca 8211046: Forced data dependencies serve no purpose on x86
Reviewed-by: eosterlund, rehn
2018-10-12 03:51:02 -04:00
Vyom Tewari
f4df5cb4c3 8189366: SocketInputStream.available() should check for eof
Reviewed-by: chegar
2018-10-12 12:37:13 +05:30
Goetz Lindenmaier
1d8a27195c 8211931: [ppc][testbug] runtime/jni/terminatedThread/TestTerminatedThread.java fails as threads don't terminate immediately
Reviewed-by: dholmes, mdoerr
2018-10-12 08:33:18 +02:00
Hamlin Li
7014d0bdf8 8186610: move ModuleUtils to top-level testlibrary
Reviewed-by: alanb, iignatyev
2018-10-12 10:35:24 +08:00
Muthusamy Chinnathambi
b3de6ff3a6 8211714: Need to update vm_version.cpp to recognise VS2017 minor versions
Reviewed-by: dholmes
2018-10-11 15:49:23 -07:00
Roman Kennke
7ea2bd922b 8212054: Boilerplate to bind oopDesc::equals_raw() to actual raw implementation
Reviewed-by: shade, eosterlund
2018-10-11 23:48:55 +02:00
Jean Christophe Beyler
3eef363b69 8212025: Remove collector_present variable from ThreadHeapSampler
Remove unused variable from ThreadHeapSampler

Reviewed-by: tschatzl, pliden
2018-10-11 12:41:47 -07:00
Jean Christophe Beyler
b68500521e 8211432: [REDO] Handle JNIGlobalRefLocker.cpp
Adding a JNI verification wrapper for tests

Reviewed-by: amenkov, sspitsyn, phh
2018-10-11 09:30:10 -07:00
Harold Seigel
2e5653c166 8211821: PrintStringTableStatistics crashes JVM
During JVM exit, print the Symbol and String tables before current thread gets deleted.

Reviewed-by: iklam, dholmes
2018-10-11 11:31:37 -04:00
Harold Seigel
945623c998 8079784: Unexpected IllegalAccessError when trying access InnerClasses attribute
Prevent classes in the InnerClasses attribute from being loaded unless they are actually being accessed.

Reviewed-by: dholmes, lfoltan
2018-10-11 10:11:18 -04:00
Pavel Rappo
01a3fec4cb 8212001: Verify exported symbols in java.base (libjava)
Reviewed-by: chegar
2018-10-11 14:10:13 +01:00
Chris Hegarty
9701ffd293 8211922: Remove test/jdk/javax/naming/module/RunBasic.java from the ProblemList
Reviewed-by: lancea
2018-10-11 13:40:09 +01:00
Matthias Baesken
cd597d1dfd 8211317: avoid memory leak in Java_sun_awt_UNIXToolkit_load_1stock_1icon
Reviewed-by: clanger, goetz
2018-10-01 12:06:44 +02:00
Krishna Addepalli
0caefc787f 8014503: AWT Choice implementation should be made consistent across platforms
Reviewed-by: serb, aghaisas, sveerabhadra
2018-10-09 12:08:59 +05:30
Krishna Addepalli
995f6963b3 8182041: File Chooser Shortcut Panel folders under on JDK 9 8062648: FileSystemView.getDefaultDirectory() should check read access on Unix systems
Reviewed-by: serb, prr, psadhukhan
2018-10-05 14:35:24 +05:30
Tagir F. Valeev
fc807d0914 8211300: Convert C-style array declarations in JDK client code
Reviewed-by: prr, serb
2018-10-04 12:40:55 -07:00
Phil Race
c33f1a61de 8208595: [parfait] Better X11 font support
Reviewed-by: serb, psadhukhan
2018-10-04 11:07:30 -07:00
Prasanta Sadhukhan
9b0d241a16 8211055: Provide print to a file (PDF) feature even when printer was not connected
Reviewed-by: prr
2018-10-04 15:03:48 +05:30
Martin Mraz
0f45d2d52a 8203281: [Windows] JComboBox change in ui when editor.setBorder() is called
Reviewed-by: psadhukhan
2018-10-04 14:56:03 +05:30
Prasanta Sadhukhan
88a48fe2a6 Merge 2018-10-04 14:17:59 +05:30
Vikrant Agarwal
711edb0a65 8210910: Create test for FileChooserDemo
Reviewed-by: serb
2018-10-04 13:01:23 +05:30
Jesper Wilhelmsson
4cb40ea9f9 Added tag jdk-12+14 for changeset 8897e41b327c 2018-10-04 00:50:54 +02:00
Vladimir Kozlov
0899668970 8202359: [GRAAL] compiler/uncommontrap/TestDeoptOOM.java failed with OutOfMemoryError
Exclude this test from running with Java Graal

Reviewed-by: iveresov
2018-10-03 14:53:05 -07:00
Xueming Shen
78276f7b33 8211385: (zipfs) ZipDirectoryStream yields a stream of absolute paths when directory is relative
Reviewed-by: alanb, lancea
2018-10-03 12:54:54 -07:00
Poonam Bajaj
3ce24a0442 8211150: G1 Full GC not purging code root memory and hence causing memory leak
Reviewed-by: tschatzl, sjohanss
2018-10-03 19:30:49 +00:00
Phil Race
42ecae239b 8211031: Remove un-needed qualified export to java.desktop from java.base on macos
Reviewed-by: serb, mchung
2018-10-03 11:10:09 -07:00
Gary Adams
82ab90dbb3 8169718: nsk/jdb/locals/locals002: ERROR: Cannot find boolVar with expected value: false
Reviewed-by: cjplummer, amenkov
2018-10-03 07:41:28 -04:00
Vladimir Kozlov
daf3cd17c4 8211392: compiler/profiling/spectrapredefineclass_classloaders/Launcher.java times out in JDK12 CI
Use default compile threshold for these tests

Reviewed-by: thartmann
2018-10-03 10:38:30 -07:00
Gerard Ziemski
db646c699a 8204294: [REDO] - JVMFlag::printError missing ATTRIBUTE_PRINTF
Added ATTRIBUTE_PRINTF to JVMFlag::printError

Reviewed-by: kbarrett, coleenp
2018-10-03 12:34:22 -05:00
Aleksey Shipilev
5850a50781 8211375: Minimal VM build failures after JDK-8211251 (Default mask register for avx512 instructions)
Reviewed-by: kvn
2018-10-03 18:46:26 +02:00
Andrew Haley
989aa8a4fc Merge 2018-10-03 17:45:59 +01:00
Andrew Haley
1ef860cf09 8211163: UNIX version of Java_java_io_Console_echo does not return a clean boolean
Reviewed-by: shade, alanb
2018-10-03 17:29:47 +01:00
Rahul Raghavan
493b31ba91 8211168: Solaris-X64 build failure with error nreg hides the same name in an outer scope
Corrected nreg definition

Reviewed-by: dcubed, kvn, shade
2018-10-03 08:03:13 -07:00
Claes Redestad
08b8a3149b 8211384: Obsolete -XX:+/-MonitorInUseLists option
Reviewed-by: mikael, rkennke, shade, dcubed
2018-10-03 15:05:46 +02:00
Harold Seigel
221005a3d4 8209138: Symbol constructor uses u1 as the element type of its name argument
Maske u1 the type for Symbol values and add a function to return it as a char.

Reviewed-by: dholmes, coleenp
2018-10-03 09:46:46 -04:00
David Holmes
a3cd6a1a70 8188764: Obsolete AssumeMP and then remove all support for non-MP builds
Reviewed-by: mikael, mdoerr, bulasevich, eosterlund
2018-10-03 03:41:57 -04:00
Priya Lakshmi Muthuswamy
5cfc3bbdd4 8208531: -javafx mode should be on by default when JavaFX is available
Reviewed-by: jjg
2018-10-03 11:43:39 +05:30
Mikael Vidstedt
8e53d1b5dc 8211350: Remove jprt support
Reviewed-by: dholmes, erikj, mchung, alanb, jjg
2018-10-02 22:36:08 -07:00
Prasadrao Koppula
c55d60acf7 8211107: LDAPS communication failure with jdk 1.8.0_181
Reviewed-by: chegar, coffeys, vtewari
2018-10-02 21:38:54 +05:30
Calvin Cheung
40b75053e4 8211287: ClassPathTests.java fails due to "Unable to map MiscData shared space at required address."
Catch the InvocationTargetException and rethrow exception based on the cause

Reviewed-by: jiangli, iklam
2018-10-02 20:52:40 -07:00
Mikael Vidstedt
1cca59019b 8211364: Remove expired flags
Reviewed-by: dholmes, egahlin
2018-10-02 15:01:25 -07:00
Ioi Lam
568e8beda6 8209946: [TESTBUG] CDS tests should use "@run driver"
Reviewed-by: ccheung, jiangli, mseledtsov
2018-10-02 14:32:33 -07:00
David Holmes
d1d1c16f8c 8211175: Remove temporary clock initialization duplication
Reviewed-by: rehn, mikael
2018-10-02 17:12:13 -04:00
Alex Menkov
07815d0139 8209332: [TEST] test/jdk/com/sun/jdi/CatchPatternTest.sh is incorrect
Reviewed-by: jcbeyler, dtitov, cjplummer
2018-10-02 12:08:51 -07:00
Alex Menkov
d5062c82af 8203928: [Test] Convert non-JDB scaffolding serviceability shell script tests to java
Reviewed-by: jcbeyler, cjplummer
2018-10-02 12:06:29 -07:00
Ivan Gerasimov
2ae27da3bc 8200381: Typos in javadoc - missing verb "be" and alike
Reviewed-by: lancea, darcy, wetmore
2018-10-02 10:19:07 -07:00
Liam Miller-Cushon
c7e3654a5c 8211057: Gensrc step CompileProperties generates unstable CompilerProperties output
Reviewed-by: mcimadamore, vromero
2018-10-01 21:14:58 -07:00
Abdul Kolarkunnu
2aa950f8bd 8211160: Handle different look and feels in JInternalFrameOperator
Reviewed-by: serb
2018-10-01 18:03:19 -07:00
Prasanta Sadhukhan
added9caf6 6821316: comment in source code of SynthStyleFactory.java has a self-reference
Reviewed-by: serb
2018-09-29 09:43:33 +05:30
Prasanta Sadhukhan
61dc835d26 6994403: Grammatical error in documentation of javax.swing.GroupLayout.ParallelGroup
Reviewed-by: serb
2018-09-29 09:41:33 +05:30
Roland Westrelin
ce59b4b472 8210887: Tweak C2 gc api for arraycopy
Reviewed-by: kvn, thartmann
2018-09-28 10:42:40 +02:00
Christoph Langer
64c46dd029 8211218: remove double semicolon in src/java.desktop/macosx/classes/sun/font/CFont.java
Reviewed-by: serb
2018-09-28 06:39:52 +01:00
Prasanta Sadhukhan
2a43fc5a1b 8210306: Missing closing bracket in GridBagLayout gridwidth, gridheight description
Reviewed-by: serb
2018-09-28 09:17:24 +05:30
Phil Race
f7db806ed1 Merge 2018-09-27 11:46:28 -07:00
Phil Race
7f623d813a Merge 2018-09-27 11:39:45 -07:00
Phil Race
b18f1d282e Merge 2018-09-27 10:49:10 -07:00
Erik Joelsson
9d846aae1f 8211130: Change to Oracle Developer Studio 12.6 for building on Solaris at Oracle
Reviewed-by: tbell, prr, ihse
2018-09-27 08:49:12 -07:00
Roland Westrelin
2ab522db78 8211233: MemBarNode::trailing_membar() and MemBarNode::leading_membar() need to handle dying subgraphs better
Reviewed-by: kvn, thartmann
2018-09-27 17:46:01 +02:00
Roland Westrelin
b00f4560cb 8211231: BarrierSetC1::generate_referent_check() confuses register allocator
Reviewed-by: iveresov, kvn
2018-09-27 16:25:25 +02:00
Daniel Fuchs
bb0074a569 8211349: Bad HTML in {@link} for HttpResponse.BodyHandlers.ofPublisher
Fixed links by moving <> out of the link as was done elsewhere in the file.

Reviewed-by: chegar
2018-10-02 14:17:30 +01:00
Chris Hegarty
f1436a3b4d 8209454: [error-prone] TypeParameterUnusedInFormals in jdk.net
Reviewed-by: dfuchs
2018-10-02 10:40:58 +01:00
Chris Hegarty
0cb267ad1c 8211325: test/jdk/java/net/Socket/LingerTest.java fails with cleaning up
Reviewed-by: dfuchs
2018-10-02 09:05:07 +01:00
Weijun Wang
9452b88d93 8210821: Support dns_canonicalize_hostname in krb5.conf
Reviewed-by: valeriep
2018-10-02 16:02:35 +08:00
Man Cao
33c38f2ccb 8210716: Detailed GC logging request misses some
Changed log tags from (heap, ergo) to (gc, ergo, heap).

Reviewed-by: kbarrett, tschatzl
2018-10-01 20:16:55 -04:00
Igor Ignatyev
ab8c7f710c 8211171: move JarUtils to top-level testlibrary
Reviewed-by: alanb
2018-10-01 14:54:46 -07:00
Sandhya Viswanathan
b0ea3a49d2 8211251: Default mask register for avx512 instructions
Encode AVX 512 instructions as unmasked instruction where mask register is not specified.

Reviewed-by: kvn
2018-10-01 11:54:34 -07:00
Calvin Cheung
5985805474 8211278: Update ProblemList
Reviewed-by: iklam
2018-10-01 11:36:48 -07:00
Roman Kennke
b263449b15 8211129: compiler/whitebox/ForceNMethodSweepTest.java fails after JDK-8132849
Reviewed-by: eosterlund, thartmann
2018-10-01 20:23:56 +02:00
Volker Simonis
d35eda31e3 8211328: Different declaration and definition of ClassLoaderData::classes_do() leads to build failures
Reviewed-by: dcubed, coleenp
2018-10-01 19:08:14 +02:00
Lance Andersen
c925556ec4 8211295: DriverManager.getConnection fails when called from com.sun.rowset.JdbcRowSetImpl
Reviewed-by: mchung, alanb
2018-10-01 13:05:51 -04:00
Andrew Haley
4374820705 Merge 2018-10-01 12:30:33 -04:00
Pengfei Li
21af2af13e 8211333: AArch64: Fix another build failure after JDK-8211029
Reviewed-by: shade, aph
2018-10-01 12:29:47 -04:00
Roman Kennke
5910b521c4 8211071: unpack.cpp fails to compile with statement has no effect [-Werror=unused-value]
Reviewed-by: ihse, clanger
2018-10-01 17:47:26 +02:00
Aleksey Shipilev
5212f0bc11 8211239: Build fails without JFR: empty JFR events signatures mismatch
Reviewed-by: mgronlun, dholmes
2018-10-01 16:41:10 +02:00
Roman Kennke
f7b890ae5f 8211241: Missing obj equals in TemplateTable::fast_aldc
Reviewed-by: dcubed, coleenp
2018-10-01 16:34:22 +02:00
Lutz Schmidt
56e6f2cc1b 8211145: [ppc] [s390]: Build fails due to -Werror=switch (introduced with JDK-8211029)
Reviewed-by: shade, simonis
2018-10-01 12:07:15 +02:00
Gary Adams
c0fd523c05 8210984: [TESTBUG] hs203t003 fails with "# ERROR: hs203t003.cpp, 218: NSK_CPP_STUB2 ( ResumeThread, jvmti, thread)"
Reviewed-by: cjplummer, jcbeyler
2018-09-27 07:33:13 -04:00
Krishna Addepalli
c105cd5164 8208638: Instead of circle rendered in appl window, but ellipse is produced JEditor Pane
Reviewed-by: serb, psadhukhan
2018-09-27 14:36:33 +05:30
Anton Litvinov
ad74d2a16e 8211165: License header is absent in a few J2Ddemo source code files
Reviewed-by: prr, iris
2018-09-26 18:36:55 +01:00
Kevin Walls
23d457063d 8211124: HotSpot update for vm_version.cpp to recognise updated VS2017
Reviewed-by: dholmes, lfoltan
2018-09-26 06:28:48 -07:00
Jan Lahoda
17c3d1c333 8211102: Crash with -XDfind=lambda and -source 7
Disabling analyzers that cannot run in the given source level; lambdas in standalone positions should have erroneous type rather than the recovery type; avoiding crash in Flow for broken code.

Reviewed-by: mcimadamore
2018-09-27 10:24:12 +02:00
Martin Doerr
71a67b43fb 8211097: aix: fix build after JDK-8210919
Reviewed-by: shade, mbaesken, erikj
2018-09-27 09:29:52 +02:00
Priya Lakshmi Muthuswamy
54f929e9d6 8202628: javadoc generates bad links in TestModules.java
Reviewed-by: jjg
2018-09-27 10:10:47 +05:30
Calvin Cheung
5108d2e1dd 8202282: [TESTBUG] appcds TestCommon.makeCommandLineForAppCDS() can be removed
Removed the unnecessary makeCommandLineForAppCDS() method and its usage

Reviewed-by: iklam, jiangli
2018-09-26 18:21:26 -07:00
Jesper Wilhelmsson
6d6b22c277 Added tag jdk-12+13 for changeset 511a9946f83e 2018-09-27 01:25:42 +02:00
Jonathan Gibbons
db6295f8a2 8209963: source file mode for JVM should provide a hook to locate the source file
Reviewed-by: darcy
2018-09-26 16:23:31 -07:00
Jonathan Gibbons
065fdac559 8210555: create --source --target synonyms for -source -target
Reviewed-by: hannesw
2018-09-26 15:14:17 -07:00
Jonathan Gibbons
25ca76b4f9 8211180: SourceLauncherTest.java fails in JDK12 CI on Win*
Reviewed-by: mchung, darcy
2018-09-26 14:54:38 -07:00
Ekaterina Pavlova
b6fb9fccdd 8199885: [Graal] org.graalvm.compiler.core.test.CountedLoopTest fails with "ControlFlowAnchor should never be cloned in the same graph"
Reviewed-by: kvn
2018-09-26 12:47:38 -07:00
Coleen Phillimore
a5733f6349 Merge 2018-09-26 14:56:10 -04:00
Coleen Phillimore
06a1ea846a 8210856: Move InstanceKlass DependencyContext cleaning to SystemDictionary::do_unloading()
Already walk classes in ClassLoaderData::unload so generalize to also clean nmethod dependencies.

Reviewed-by: eosterlund, dlong, vlivanov
2018-09-26 14:01:48 -04:00
Liam Miller-Cushon
9c60728a28 8211138: Missing Flag enum constants
Reviewed-by: mcimadamore, vromero
2018-09-25 21:33:51 -07:00
Lance Andersen
d20eae2d31 8211121: Remove sun.reflect.ReflectionFactory::newInstanceForSerialization
Reviewed-by: mchung, alanb, darcy, dfuchs
2018-09-26 13:56:08 -04:00
Mikael Vidstedt
9d83c060db 8210892: Deprecate TLABStats
Reviewed-by: pliden, tschatzl
2018-09-26 10:37:50 -07:00
Sergey Bylokhov
9651df7696 8210286: Drop of sun.awt.HToolkit class
Reviewed-by: dmarkov, prr
2018-09-25 17:58:53 -07:00
Phil Race
c7f8499529 8210880: Remove HPKeysym.h from JDK sources
Reviewed-by: serb, dmarkov
2018-09-25 14:44:36 -07:00
Phil Race
5e3ea1b7e7 8211125: backout fix for 8210880 which was pushed under another ID
Reviewed-by: serb
2018-09-25 14:38:35 -07:00
Laurent Bourgès
60e6552bad 8210335: Clipping problems with complex affine transforms: negative scaling factors or small scaling factors
Fixed clipping rectangle to take into account the inverse transform (scale/shear)

Reviewed-by: prr, serb
2018-09-24 21:23:37 +02:00
Phil Race
7d0d9047ac 8209548: Unused and incorrect calls to FT_Get_Char_Index
Reviewed-by: psadhukhan, kaddepalli
2018-09-24 11:49:25 -07:00
Phil Race
3a2ece353b 8210866: Remove HPKeysym.h from JDK sources
Reviewed-by: serb, dmarkov
2018-09-24 11:46:40 -07:00
Phil Race
f605407e30 Merge 2018-09-24 10:59:26 -07:00
Brent Christian
3910193204 8072130: java/lang/instrument/BootClassPath/BootClassPathTest.sh fails on Mac OSX
Reviewed-by: sherman
2018-09-24 10:41:41 -07:00
Magnus Ihse Bursie
73e93bdd5d 8211029: Have a common set of enabled warnings for all native libraries
Reviewed-by: erikj
2018-09-24 19:26:48 +02:00
Daniel D. Daugherty
77ef6a21f1 8209019: Remove tests affected by JDK-8208690 from the ProblemList
Reviewed-by: dfuchs
2018-09-24 13:05:59 -04:00
David Holmes
bc6fb26d02 8211045: [Testbug] Fix for 8144279 didn't define a test case!
Add missing file from original commit

Reviewed-by: shade, sgehwolf
2018-09-24 12:18:51 -04:00
Abdul Kolarkunnu
e6149b08de 8210994: Create test for SwingSet3 FrameDemo
Reviewed-by: serb
2018-09-24 03:25:19 -07:00
Jonathan Gibbons
cad60d14a6 8210274: Source Launcher should work with a security manager
Reviewed-by: mchung, alanb
2018-09-26 11:41:08 -07:00
Sergey Bylokhov
00e4c5b778 8210692: The "com.sun.awt.SecurityWarning" class can be dropped
Reviewed-by: prr, mullan, mchung
2018-09-22 20:31:45 -07:00
Andrew Haley
768f091086 8210972: Add comment text to C1 patching code
Reviewed-by: kvn
2018-09-20 18:29:05 +01:00
Andrew Haley
08e1f72237 Merge 2018-10-01 09:56:45 +01:00
Jiangli Zhou
061c4d7a81 8210926: vmTestbase/nsk/jvmti/scenarios/allocation/AP11/ap11t001/TestDescription.java failed with JVMTI_ERROR_INVALID_CLASS in CDS mode
Reset InstanceKlass _init_state to 'allocated' before writing out shared classes at dump time.

Reviewed-by: dholmes, coleenp
2018-10-01 00:52:37 -04:00
Mikael Vidstedt
0746fffe5c 8211291: Backout JDK-8210842 Handle JNIGlobalRefLocker.cpp
Reviewed-by: kbarrett, iignatyev, jcbeyler
2018-09-28 14:53:41 -07:00
Mikael Vidstedt
f4b9613346 8211176: Initialize ObjectMonitor eagerly
Reviewed-by: dholmes, adinn, redestad
2018-09-28 14:11:21 -07:00
Coleen Phillimore
7ef28cb2bc 8209645: Split ClassLoaderData and ClassLoaderDataGraph into separate files
Reviewed-by: iklam, stuefe
2018-09-28 16:07:39 -04:00
Bo Zhang
3a0b2d59ad 8210810: Escaped character at specific position in argument file is not handled properly
Reviewed-by: alanb
2018-09-28 13:15:01 -07:00
Jean Christophe Beyler
cc4436e2b9 8210842: Handle JNIGlobalRefLocker.cpp
Add checking for JNI calls via a new ExceptionCheckingJniEnv

Reviewed-by: sspitsyn, amenkov, dholmes, mikael
2018-09-28 13:01:28 -07:00
Gary Adams
c45eacbd27 8208473: [TESTBUG] nsk/jdb/exclude/exclude001/exclude001.java is timing out on solaris-sparc again
Reviewed-by: cjplummer, amenkov
2018-09-28 14:31:36 -04:00
Daniil Titov
57d74285b0 8163083: SocketListeningConnector does not allow invocations with port 0
Reviewed-by: sspitsyn, amenkov, gadams, jcbeyler
2018-09-28 12:04:47 -07:00
Aleksey Shipilev
af7e126572 8211268: Disable unsupported GCs for Zero
Reviewed-by: sgehwolf, erikj
2018-09-28 18:28:49 +02:00
Aleksey Shipilev
feca06a183 8211274: x86_32 build failures after JDK-8211029 (Have a common set of enabled warnings for all native libraries)
Reviewed-by: dholmes, tschatzl
2018-09-28 18:28:49 +02:00
Aleksey Shipilev
e2baf30529 8211272: x86_32 build failures after JDK-8210764 (Update avx512 implementation)
Reviewed-by: rkennke, kvn
2018-09-28 18:28:48 +02:00
Doug Lea
deb0e6503d 8207003: Miscellaneous changes imported from jsr166 CVS 2018-09
Reviewed-by: martin, chegar
2018-09-28 08:45:46 -07:00
Doug Lea
0b431957a5 8210971: Add exception handling methods to CompletionStage and CompletableFuture
Reviewed-by: martin, chegar
2018-09-28 08:45:46 -07:00
Matthias Baesken
5d3b3156e8 8211208: make AllocateHeapAt an unsupported option on AIX
Reviewed-by: shade, tschatzl
2018-09-27 17:13:07 +02:00
Aleksei Voitylov
52780f275c 8211212: ARM: -Werror=switch build failure
Reviewed-by: shade
2018-09-28 15:39:31 +03:00
Chris Hegarty
20f6faa030 8211092: test/jdk/sun/net/www/http/HttpClient/MultiThreadTest.java fails intermittently when cleaning up
Reviewed-by: dfuchs
2018-09-28 12:47:09 +01:00
Sharath Ballal
1570028352 8207745: serviceability/sa/TestJmapCore.java times out parsing a 4GB hprof file
Reviewed-by: dholmes, jgeorge
2018-09-28 14:31:58 +05:30
Roman Kennke
3f09f0f79c 8211269: Make declaration of Allocation protected in MemAllocator
Reviewed-by: shade
2018-09-28 10:57:31 +02:00
John Jiang
afe05800ac 8209546: Make sun/security/tools/keytool/autotest.sh to support macosx
Refactor autotest.sh to java test and remove standard.sh

Reviewed-by: weijun
2018-09-28 15:42:20 +08:00
Matthias Baesken
f8d007dbf0 8211149: fix potential memleak in getJavaIDFromLangID after failing SetupI18nProps call [windows]
Reviewed-by: naoto, lucy
2018-09-27 15:37:55 +02:00
Matthias Baesken
36f62aa6c0 8210964: add more ld preloading related info to hs_error file on Linux
Reviewed-by: clanger, stuefe
2018-09-28 09:20:46 +02:00
Jean Christophe Beyler
b20e2cd963 8211036: Remove the NSK_STUB macros from vmTestbase for non jvmti
Remove the NSK_STUB macros from code outside of the jvmti subfolder

Reviewed-by: iignatyev, amenkov, dholmes
2018-09-27 15:56:40 -07:00
Jim Laskey
c30dffb388 8211080: RawStringLiteralLangAPI.java test times out by default
Reviewed-by: jjg
2018-09-27 15:47:33 -03:00
Andrew Haley
08828a5a4f 8211170: AArch64: Warnings in C1 and template interpreter
Reviewed-by: adinn
2018-09-26 18:11:00 +01:00
Sergey Bylokhov
38660e9460 8170937: Swing apps are slow if displaying from a remote source to many local displays
Reviewed-by: prr, aivanov
2018-09-18 18:32:03 -07:00
Roland Westrelin
03e4400864 8210885: Convert left over loads/stores to access api
Reviewed-by: thartmann, rkennke
2018-09-18 20:49:44 +02:00
Roland Westrelin
17f301f734 8210389: C2: assert(n->outcnt() != 0 || C->top() == n || n->is_Proj()) failed: No dead instructions after post-alloc
Reviewed-by: kvn, thartmann
2018-09-18 20:41:17 +02:00
Aleksey Shipilev
2b21c73b2d 8212005: Epsilon elastic TLAB sizing may cause misalignment
Reviewed-by: rkennke, tschatzl
2018-10-11 10:42:17 +02:00
Matthias Baesken
e2d7983ab8 8211929: hotspot/share/opto/parse2.cpp compile error with gcc 7.3.1
Reviewed-by: kvn, stuefe
2018-10-10 16:56:18 +02:00
Kim Barrett
47e7b141c0 8211962: Implicit narrowing in MacOSX java.desktop jsound
Cast value to needed type.

Reviewed-by: serb
2018-10-10 23:47:36 -04:00
Peter Levart
2d7d9b8380 8152910: Get performance improvement with Stable annotation
Reviewed-by: darcy
2018-10-10 17:53:22 -07:00
Jesper Wilhelmsson
635a875123 Added tag jdk-12+15 for changeset f8626bcc1698 2018-10-11 00:43:09 +02:00
Mandy Chung
5a36050cfd 8211921: AssertionError in MethodHandles$Lookup.defineClass
Reviewed-by: alanb
2018-10-10 15:19:34 -07:00
Abdul Kolarkunnu
99ca4f3497 8210055: Enable different look and feel tests in SwingSet3 demo tests
Reviewed-by: serb
2018-10-05 05:03:15 -07:00
Sean Mullan
d9731f0c54 8191053: Provide a mechanism to make system's security manager immutable
Make System.setSecurityManager optional to support and add new disallow and allow options to the java.security.manager system property

Reviewed-by: alanb, mchung, rriggs, smarks
2018-10-10 16:25:40 -04:00
Sean Mullan
dde89f72df 8211878: Bad/broken links in docs/api/java.xml.crypto/javax/xml/crypto/dsig/Reference.html
Reviewed-by: jjg
2018-10-10 15:23:38 -04:00
Christian Tornqvist
b35e7feb5a 8212008: Use of TREAT_EXIT_CODE_1_AS_0 hide problems with jtreg Java
Reviewed-by: erikj
2018-10-10 11:47:01 -07:00
Jean Christophe Beyler
efa175f20e 8211801: Remove the NSK_CPP_STUB macros from vmTestbase for jvmti/scenarios/[A-E]
Remove the NSK_CPP_STUB macros

Reviewed-by: amenkov, sspitsyn
2018-10-10 11:20:21 -07:00
Ivan Gerasimov
3cc36e427d 8211396: Broken link in javadoc for private java.util.regex.Pattern#normalize()
Reviewed-by: jjg, sherman
2018-10-10 10:56:24 -07:00
Joe Darcy
ab0128ca51 8058202: AnnotatedType implementations don't override toString(), equals(), hashCode()
Reviewed-by: jfranck
2018-10-10 10:28:33 -07:00
Jonathan Gibbons
706a5b9558 8211952: Broken links in java.time API
Reviewed-by: lancea
2018-10-10 10:00:25 -07:00
Jean Christophe Beyler
6ca3b39823 8211950: Deprecate the check if a JVMTI collector is present assertion
Deprecate assertion that a collector is there; it is now a nop

Reviewed-by: eosterlund, phh, pliden
2018-10-10 08:26:49 -07:00
Harold Seigel
8c62c2e33a 8207689: Remove perfCounter _load_instance_class_failCounter used by deleted flag UnsyncloadClass
Delete the perfCounter

Reviewed-by: lfoltan, acorn, dholmes
2018-10-10 10:18:52 -04:00
Weijun Wang
1e887a901e 8211969: test/jdk/lib/security/CheckBlacklistedCerts.java searching for wrong paths
Reviewed-by: mullan
2018-10-10 22:13:30 +08:00
Roland Westrelin
a2d1b6b720 8211232: GraphKit::make_runtime_call() sometimes attaches wrong memory state to call
Reviewed-by: kvn
2018-09-28 14:24:22 +02:00
Pavel Rappo
a9efcea778 8212000: Verify exported symbols in java.base (libnet, libnio/ch)
Reviewed-by: alanb, chegar
2018-10-10 14:13:32 +01:00
Michihiro Horie
df92fc0954 8211908: PPC64: Enable SuperWordLoopUnrollAnalysis by default
Reviewed-by: mdoerr, goetz
2018-10-10 14:28:35 +02:00
Roman Kennke
5de31861b2 8211270: GC abstraction to get real object and headers size
Reviewed-by: shade, zgu, eosterlund
2018-10-10 10:58:48 +02:00
Roman Kennke
3085a89f13 8211279: Verify missing object equals barriers
Reviewed-by: pliden, shade, zgu
2018-10-03 15:22:16 +02:00
Ralf Schmelter
a9f9385ced 8211332: Space for stub routines (code_size2) is too small on new Skylake CPUs
Increase code_size2 for new Skylake CPUs.

Reviewed-by: kvn, stuefe, thartmann
2018-10-10 08:36:31 +02:00
Daniil Titov
f2d02897e1 8193879: Java debugger hangs on method invocation
Reviewed-by: sspitsyn, amenkov, gadams
2018-10-09 19:11:09 -07:00
David Holmes
468b69240e 8211394: CHECK_ must be used in the rhs of an assignment statement within a block
Replace "return foo(CHECK_X);" with "return foo(THREAD);"

Reviewed-by: iklam, phh, stuefe, lfoltan
2018-10-09 20:38:13 -04:00
David Holmes
8351e4db3e 8211065: Private method check in linkResolver is incorrect
Reviewed-by: acorn, lfoltan
2018-10-09 20:19:22 -04:00
Erik Joelsson
d3458328a2 8211724: Change mkdir -p to MakeDir macro where possible
Reviewed-by: ihse, asemenyuk
2018-10-09 14:57:23 -07:00
Gary Adams
a59b517d2a 8211324: Link to java.lang.ThreadGroup in JDWP spec is broken
Reviewed-by: sspitsyn, chegar, alanb
2018-10-09 07:33:15 -04:00
Jean Christophe Beyler
11da699d9e 8211905: Remove multiple casts for EM06 file
Remove multiple casts for EM06 file

Reviewed-by: sspitsyn, cjplummer
2018-10-09 13:22:19 -07:00
Jiangli Zhou
a2ad8f419f 8206009: Move CDS java heap object archiving code to heapShared.hpp and heapShared.cpp
Restructure and cleanup java heap object archiving code.

Reviewed-by: coleenp, iklam
2018-10-09 15:58:07 -04:00
Xueming Shen
4f4a2385c5 8211880: Broken links in java.util.jar
Reviewed-by: alanb, mchung, martin
2018-10-09 12:36:51 -07:00
Chris Hegarty
856f4fe28b 8211927: Add additional diagnostic information to java/net/BindException/Test.java
Reviewed-by: dfuchs
2018-10-09 20:32:24 +01:00
Alex Menkov
8891582e9f 8211292: [TEST] convert com/sun/jdi/DeferredStepTest.sh test
Reviewed-by: sspitsyn, jcbeyler
2018-10-09 12:26:29 -07:00
Roman Kennke
fe3bd4703e 8211792: Fix misplaced BarrierSet forward declarations
Reviewed-by: shade, zgu
2018-10-05 23:45:02 +02:00
Gary Adams
7b7315dbed 8201603: MonitorContendedEnter failure in nsk/jvmti/scenarios/contention/TC02/tc02t001
Reviewed-by: cjplummer
2018-10-08 14:57:07 -04:00
Goetz Lindenmaier
182a991df2 8211856: [ppc, s390] ProblemList some failing tests
Reviewed-by: kvn, mdoerr
2018-10-09 16:03:56 +02:00
Gunter Haug
a6cbbcf334 8211768: [s390] Implement JFR profiling
Reviewed-by: simonis, mdoerr
2018-10-09 15:06:27 +02:00
Claes Redestad
02a3be9920 8211859: Avoid initializing AtomicBoolean from RandomAccessFile
Reviewed-by: alanb
2018-10-09 14:30:06 +02:00
Chris Hegarty
1ac444ad87 8211902: broken link in java.net.http.WebSocket.Builder
Reviewed-by: alanb, dfuchs
2018-10-09 13:31:50 +01:00
Chris Hegarty
e61252dc27 8211920: Close server socket and cleanups in test/jdk/javax/naming/module/RunBasic.java
Reviewed-by: dfuchs
2018-10-09 11:44:00 +01:00
Andrew Haley
2db7ed1895 8211387: [Zero] atomic_copy64: Use ldrexd for atomic reads on ARMv7
Reviewed-by: dholmes, aph
2018-10-02 17:17:43 +02:00
Alan Bateman
cb3fe46b95 8211825: ModuleLayer.defineModulesWithXXX does not setup delegation when module reads automatic module
Reviewed-by: mchung
2018-10-09 07:06:32 +01:00
Jean Christophe Beyler
61f453edf7 8211782: Remove the NSK_CPP_STUB macros from vmTestbase for jvmti/[I-S]*
Remove the NSK_CPP_STUB macros

Reviewed-by: amenkov, sspitsyn
2018-10-08 19:44:44 -07:00
Kim Barrett
51be7db96f 8211804: Constant AO_UNUSED_MBZ uses left shift of negative value
Use unsigned shift.

Reviewed-by: alanb
2018-10-08 20:01:39 -04:00
Ioi Lam
2f82ed4f1d 8210388: Use hash table to store archived subgraph_info records
Reviewed-by: jiangli
2018-10-08 16:29:10 -07:00
Xueming Shen
859d376494 8211728: JarFile::versionedStream() does not filter META-INF resources in versioned stream
Reviewed-by: alanb
2018-10-08 14:14:52 -07:00
Jean Christophe Beyler
85c6642e38 8211131: Remove the NSK_CPP_STUB macros from vmTestbase for jvmti/[G-I]*
Remove the NSK_CPP_STUB macros

Reviewed-by: amenkov, sspitsyn
2018-10-08 13:56:28 -07:00
Jean Christophe Beyler
57622ed115 8211261: Remove the NSK_CPP_STUB macros from vmTestbase for jvmti/[A-G]*
Remove the NSK_CPP_STUB macros

Reviewed-by: amenkov, cjplummer
2018-10-08 13:54:43 -07:00
Jonathan Gibbons
f8d8a72a27 8211407: Bad links to non-existent entries on serialized-form page
Reviewed-by: jlahoda
2018-10-08 11:14:59 -07:00
Gary Adams
40d81d4bcc 8036026: nsk/jvmti/scenarios/capability/CM02/cm02t001 fails intermittently
Reviewed-by: cjplummer, dcubed
2018-10-08 07:18:40 -04:00
Chris Hegarty
a95d0ac2d1 8211863: Problem list test/jdk/javax/naming/module/RunBasic.java
Reviewed-by: lancea
2018-10-08 18:29:41 +01:00
Claes Redestad
d5d74f0e26 8211860: Avoid reading security properties eagerly on Manifest class initialization
Reviewed-by: mullan, alanb
2018-10-08 18:16:03 +02:00
Volker Simonis
8791ea8dc0 8211837: Creation of the default CDS Archive should depend on ENABLE_CDS
Reviewed-by: shade, goetz, mdoerr, iklam
2018-10-08 17:41:44 +02:00
Vicente Romero
1ed6b88a99 8209407: VerifyError is thrown for inner class with lambda
Reviewed-by: mcimadamore
2018-10-08 06:52:41 -07:00
Erik Österlund
b658954d7e 8211718: Supporting multiple concurrent OopStorage iterators
Reviewed-by: pliden, kbarrett
2018-10-08 14:48:12 +02:00
Roland Westrelin
90d6bbd01a 8211776: 8210887 broke arraycopy optimization when ZGC is enabled
Reviewed-by: kvn
2018-10-05 16:47:27 +02:00
Weijun Wang
5cf91fc60e 8210395: Add doc to SecurityTools.java
Reviewed-by: mullan
2018-10-08 13:25:39 +08:00
Jaikiran Pai
4cd9401815 8211765: JarFile constructor throws undocumented exception
Reviewed-by: lancea, sherman, alanb, chegar
2018-10-07 14:35:00 -04:00
Doug Simon
548eb6860a 8208686: [AOT] JVMTI ResourceExhausted event repeated for same allocation
Reviewed-by: never, kvn, sspitsyn
2018-10-05 20:03:14 +02:00
Vaibhav Choudhary
2223e083ba 8210376: [TESTBUG] @requires vm.cds should be replaced by @requires vm.cds.archived.java.heap and documentation is required for vm.gc==null
@requires vm.cds should be replaced by @requires vm.cds.archived.java.heap and documentation is required for vm.gc==null

Reviewed-by: iklam, jiangli
2018-10-05 18:25:15 +01:00
Roman Kennke
e77e2d1df8 8211219: Type inconsistency in LIRGenerator::atomic_cmpxchg(..)
Reviewed-by: eosterlund, iveresov
2018-09-27 13:56:09 +02:00
Jiangli Zhou
57b516dd0e 8202951: Implementation of JEP 341: Default CDS Archives
8210592: Convert CDS-mode test sets in tier5 and tier6 to non-CDS-mode tests
8209739: [TESTBUG] javax/imageio/plugins/png/ItxtUtf8Test.java fails with OutOfMemoryError when running in CDS mode

Generate the default CDS archive at JDK build time.

Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Reviewed-by: erikj, ihse, dholmes, iklam, ccheung, mseledtsov
2018-10-05 18:56:11 -04:00
Vladimir Kozlov
ec0cbd58f4 8206963: [AOT] bug with multiple class loaders
AOT should not support custom class loaders.

Reviewed-by: dlong, iveresov
2018-10-05 15:46:47 -07:00
Brian Burkhalter
9a1fbb653c 8211794: Remove jdk/java/nio/channels/Selector/RacyDeregister.java from problem list
Reviewed-by: bchristi
2018-10-05 15:37:46 -07:00
Jean Christophe Beyler
a87e8e52ea 8211123: GC Metaspace printing after full gc
Move GC printing to after usage is calculated

Co-authored-by: Jiapeng Li <nijiaben@perfma.com>
Reviewed-by: tschatzl, stuefe
2018-10-05 13:38:03 -07:00
Kim Barrett
cd95f5a933 8211296: Remove HotSpot deprecation warning suppression for Mac/clang
Removed deprecation warning suppression, fixed uses of deprecated functions.

Reviewed-by: dholmes, mikael
2018-10-05 14:28:44 -04:00
Coleen Phillimore
432605be5c 8209889: RedefineStress tests crash
Create CompileTaskWrapper before potential safepoint

Reviewed-by: mdoerr, dlong
2018-10-05 09:15:52 -04:00
Harold Seigel
d872314ef3 8211438: [Testbug] runtime/XCheckJniJsig/XCheckJSig.java looks for libjsig in wrong location
Remove the os_arch string and JRE path from the test.  Also add JNIEXPORT to libjsig symbols so dlsym can find them

Reviewed-by: dholmes, lfoltan
2018-10-05 08:50:49 -04:00
Michael McMahon
e8f90125d2 8211420: com.sun.net.httpserver.HttpServer returns Content-length header for 204 response code
Reviewed-by: chegar
2018-10-05 11:28:23 +01:00
Robin Westberg
a5c9fa14f1 8210459: Add support for generating compile_commands.json
Reviewed-by: erikj, ihse
2018-10-05 07:54:28 +02:00
Naoto Sato
271e3be381 8211398: Square character support for the Japanese new era
Reviewed-by: rriggs
2018-10-04 14:12:34 -07:00
Mandy Chung
46f0fa8c20 8206240: java.lang.Class.newInstance() is causing caller to leak
Reviewed-by: alanb
2018-10-04 13:02:58 -07:00
Vicente Romero
609d90e98a 8210789: langtools/tools/javac/T8152616.java missing @modules
Reviewed-by: jjg
2018-10-04 10:19:01 -07:00
Erik Joelsson
2c88ce1b89 8211677: Java resource copy and clean should use MakeTargetDir macro
Reviewed-by: tbell, ihse
2018-10-04 09:43:49 -07:00
Prasanta Sadhukhan
1b25f7242c 8191178: [macos] Problem with input of yen symbol
Reviewed-by: dmarkov, mhalder
2018-09-18 18:12:40 +05:30
Liam Miller-Cushon
d9095c4a72 8198945: Invalid RuntimeVisibleTypeAnnotations for annotation on anonymous class type parameter
Reviewed-by: wmdietl, abuckley, martin
2018-09-17 11:09:43 -07:00
Joe Darcy
566bfeb438 8212880: Cannot access ftp: site for fdlibm.tar
Reviewed-by: jjg, lancea, bpb
2018-10-24 15:45:09 -07:00
Serguei Spitsyn
4904980886 8024368: private methods are allocated vtable slots
Stop allocating vtable slots for  private methods

Reviewed-by: dholmes, acorn, lfoltan
2018-10-24 13:11:54 -07:00
Ekaterina Pavlova
8636d3f9a5 8212877: Restore JTREG_VERBOSE value for mach5 testing
Reviewed-by: dholmes
2018-10-24 09:56:03 -07:00
Daniel D. Daugherty
ad9de2a83a Merge 2018-10-24 11:05:22 -04:00
Daniel D. Daugherty
daf4ad38ab 8212220: add code to verify results to metaspace/stressDictionary/StressDictionary.java
Also change the test's default timeout to 5 minutes.

Reviewed-by: dholmes, stuefe
2018-10-24 11:04:25 -04:00
Eric Caspole
5d9ffc2d03 8212706: nmethod jvmci_installed_code_name need to be XML escaped
Call text instead of print to escape chars properly

Reviewed-by: thartmann
2018-10-24 11:02:55 -04:00
Thomas Schatzl
3a48e68b1a 8212753: Improve oopDesc::forward_to_atomic
Avoid multiple unnecessary reloads of the mark oop in oopDesc::forward_to_atomic

Reviewed-by: kbarrett, mdoerr
2018-10-24 16:22:34 +02:00
Phil Race
d92c6042fe Merge 2018-09-17 09:36:33 -07:00
Jean Christophe Beyler
fddc4b8ccb 8210726: Fix up a few minor nits forgotten by JDK-8210665
Minor changes to 4 tests to make one-liners

Reviewed-by: cjplummer, iignatyev, sspitsyn
2018-09-17 09:07:40 -07:00
Robert Field
f4e1502e03 8210596: jshell does not support raw string literals
Reviewed-by: jlahoda, jlaskey
2018-09-17 08:37:47 -07:00
Severin Gehwolf
b1375858c6 8210416: [linux] Poor StrictMath performance due to non-optimized compilation
Compile fdlibm with -O2 -ffp-contract=off on gcc/clang arches.

Reviewed-by: aph, erikj, dholmes, darcy, ihse
2018-09-17 10:53:56 +02:00
Jan Lahoda
ee0ac147a2 8193561: Cyclic hierarchy causes a NullPointerException when setting DEFAULT flag
When marking interface as having default methods, use .owner as it is always defined.

Reviewed-by: mcimadamore
2018-09-17 11:49:20 +02:00
Rachna Goel
36873c3c7b 8210490: TimeZone.getDisplayName given Locale.US doesn't always honor the Locale
Specified locale for formatting..

Reviewed-by: naoto
2018-09-17 14:16:31 +05:30
Phil Race
98221ae93f 8210766: Remove obsolete qualified export sun.net.www to java.desktop
Reviewed-by: mchung
2018-09-15 14:03:07 -07:00
Severin Gehwolf
6b8fd447cc 8210647: libsaproc is being compiled without optimization
Compile with high optimization instead of none.

Reviewed-by: erikj, jgeorge, sballal
2018-09-14 14:47:50 +02:00
Weijun Wang
3cbb33f0e9 8210736: jdk/javax/xml/crypto/dsig/GenerationTests.java slow on linux
Reviewed-by: alanb
2018-09-17 14:52:44 +08:00
Chris Yin
46159b4d04 8210695: Create test to cover JDK-8205330 InitialDirContext ctor sometimes throws NPE if the server has sent a disconnection
Reviewed-by: vtewari, dfuchs, chegar
2018-09-17 13:49:55 +08:00
Ivan Gerasimov
27e26fbdd7 8210786: Typo s/overriden/overridden/ in several places
Reviewed-by: weijun
2018-09-15 22:02:08 -07:00
Ivan Gerasimov
a07102bc7f 8210787: Object.wait(long, int) throws inappropriate IllegalArgumentException
Reviewed-by: martin, rriggs
2018-09-15 13:53:43 -07:00
Bernard Blaser
8ef50b1dc3 8183548: Comma-expressions shouldn't use any temporary variable
Uses enhanced let-expressions allowing multiple statements

Reviewed-by: vromero
2018-09-15 22:16:16 +02:00
Mikael Vidstedt
12bac3a02d 8210676: Remove some unused Label variables
Reviewed-by: kvn, dholmes, njian, aph
2018-09-14 22:35:44 -07:00
Jaikiran Pai
2e5e01b53c 8210785: Trivial typo fix in X509ExtendedKeyManager javadoc
Reviewed-by: xuelei
2018-09-14 20:30:28 -07:00
Igor Ignatyev
8b28ad6efe 8210732: remove jdk.testlibrary.Utils
Reviewed-by: alanb, jcbeyler
2018-09-14 14:02:57 -07:00
Gustavo Romero
a6d0d07957 8209972: [GRAAL] Don't run RTM tests with Graal
Reviewed-by: kvn, goetz
2018-09-14 15:32:22 -04:00
Man Cao
05ed45cef1 8210724: Change the verbosity threshold of logging for [oopstorage,ref]
Improve logging verbosity levels in oopStorage.cpp

Reviewed-by: kbarrett, sjohanss
2018-09-14 08:48:36 -07:00
Roman Kennke
0055586b61 8210752: Remaining explicit barriers for C2
Reviewed-by: roland, shade
2018-09-14 14:43:40 +02:00
Severin Gehwolf
ba0203b2d5 8210761: libjsig is being compiled without optimization
Reviewed-by: erikj, ihse
2018-09-21 16:58:36 +02:00
Aleksei Voitylov
94679309a4 8209697: ARM: Explicit barriers for C1/assembler
Reviewed-by: dsamersoff
2018-09-24 16:54:42 +03:00
Aleksei Voitylov
6c596e1c31 8209695: ARM: Explicit barriers for interpreter
Reviewed-by: dsamersoff
2018-09-24 16:52:12 +03:00
Aleksei Voitylov
973f70c6d2 8210466: Modularize allocations in assembler
Reviewed-by: rkennke, dsamersoff
2018-09-24 16:44:24 +03:00
Aleksei Voitylov
5fa8dfe0f8 8210465: ARM: Object equals abstraction for BarrierSetAssembler
Reviewed-by: rkennke, dsamersoff
2018-09-24 16:39:02 +03:00
Jamil Nimeh
fa1ced20b5 8210918: Add test to exercise server-side client hello processing
Reviewed-by: xuelei
2018-09-24 00:13:02 -07:00
Gary Adams
db61465761 8208471: nsk/jdb/unwatch/unwatch002/unwatch002.java fails with "Prompt is not received during 300200 milliseconds"
Reviewed-by: cjplummer, amenkov
2018-09-21 08:13:55 -04:00
Chris Plummer
7dd0aaa430 8210987: Extra newlines on Windows when running nsk jdb tests
Fix skipping over newlines

Reviewed-by: dholmes, jcbeyler, amenkov
2018-09-22 14:12:48 -07:00
Jonathan Gibbons
8edf8e2b03 8210275: Source Launcher should fail if --source is used without a source file
Reviewed-by: mchung, alanb, mcimadamore
2018-09-21 15:38:43 -07:00
Igor Ignatyev
82ed2a5fc0 8210894: remove jdk/testlibrary/Asserts
Reviewed-by: serb
2018-09-21 14:50:06 -07:00
Magnus Ihse Bursie
09a967ab81 8210988: Improved handling of compiler warnings in the build
Reviewed-by: erikj
2018-09-21 21:35:12 +02:00
Tim Bell
60466e5741 8190985: .jcheck/conf files contain 'project=jdk10'
Reviewed-by: mr, iris, erikj
2018-09-21 12:08:13 -07:00
Alex Menkov
450675ba81 8210760: [TEST] rewrite com/sun/jdi shell tests to java version - step4
Reviewed-by: jcbeyler, sspitsyn, cjplummer
2018-09-21 11:28:14 -07:00
Alex Menkov
b0a7fa474f 8210725: com/sun/jdi/RedefineClearBreakpoint.java fails with waitForPrompt timed out after 60 seconds
8210748: [TESTBUG] lib.jdb.Jdb.waitForPrompt() should clarify which output is the pending reply after a timeout

Reviewed-by: jcbeyler, gadams, sspitsyn
2018-09-21 10:18:12 -07:00
Thomas Schatzl
159a4de4c8 8210557: G1 next bitmap verification at the end of concurrent mark sometimes fails
Removed unnecessary verification that can cause spurious false alarm.

Reviewed-by: sjohanss, kbarrett
2018-09-21 15:11:09 +02:00
Matthias Baesken
2c33f148bb 8210961: [aix] enhance list of environment variables reported in error log file on AIX
Reviewed-by: clanger, simonis
2018-09-20 13:59:39 +02:00
Jan Lahoda
3f43390b8b 8209058: Cannot find annotation method 'value()' in type 'Profile+Annotation'
Correct detection of the Profile+Annotation synthetic annotation for classes that are not from the java.base module.

Reviewed-by: jjg
2018-09-21 12:29:46 +02:00
Jan Lahoda
c1033edca8 8209865: Incorrect 'multiple elements' notes with Elements#getTypeElement and --release
Changing ct.sym to be module-path oriented, rather than class-path oriented.

Reviewed-by: jjg
2018-09-21 12:29:31 +02:00
Chris Yin
33c9c89bf0 8169246: java/net/DatagramSocket/ReportSocketClosed.java fails intermittently with BindException
Reviewed-by: chegar
2018-09-21 16:13:49 +08:00
Chris Yin
f367eb8965 8199931: java/net/MulticastSocket/UnreferencedMulticastSockets.java fails with "incorrect data received"
Reviewed-by: chegar
2018-09-21 15:49:59 +08:00
Xue-Lei Andrew Fan
89a4157528 8210974: No extensions debug log for ClientHello
Reviewed-by: jnimeh, wetmore
2018-09-20 14:19:53 -07:00
Manajit Halder
565df5aa5b 8206392: [macosx] Cycling through windows (JFrames) does not work with keyboard shortcut
Reviewed-by: dmarkov, kaddepalli
2018-09-14 17:53:58 +05:30
Phil Race
b1b0ceb210 7017058: Malayalam glyph substitution is failing for Malayalam with Windows Kartika font
8191130: Sinhala text rendering problem with C+VIRAMA+ZWJ+RA/YA+V
8195836: opentype:Bengali: "Khanda Ta" shaping issue with U+09A4 TA, U+09CD virama, U+200D ZWJ

Reviewed-by: serb, psadhukhan
2018-09-13 11:31:59 -07:00
Phil Race
0bed87dccd Merge 2018-09-13 10:54:11 -07:00
Jiangli Zhou
989d55d3ed 8210193: [TESTBUG]gc/g1/mixedgc/TestOldGenCollectionUsage.java fails intermittently with OutOfMemoryError in CDS mode
Increase java heap size in TestOldGenCollectionUsage. Catch OOM in tests.

Reviewed-by: phh, iklam
2018-09-13 13:30:07 -04:00
Jim Laskey
734a258afb 8210674: Need to add examples for use of javac properties introduced by Raw String Literals
Reviewed-by: vromero, jjg
2018-09-13 14:15:27 -03:00
Gary Adams
18199b887f 8208468: [TESTBUG] nsk/jdb/locals/locals002: fails with "Prompt is not received during ... milliseconds"
Reviewed-by: cjplummer, amenkov
2018-09-13 07:46:41 -04:00
Calvin Cheung
fcc414655b 8190737: use unicode version of the canonicalize() function to handle long path on windows
Also calling CreateFileW in zip_util.c to handle long path

Reviewed-by: sherman, iklam
2018-09-14 11:17:25 -07:00
Michael McMahon
b5fb6b3566 8210311: IllegalArgumentException in CookieManager - Comparison method violates its general contract
Reviewed-by: chegar, dfuchs
2018-09-13 12:07:01 +01:00
Magnus Ihse Bursie
b395d380e8 8210704: Remove dead build tools
Reviewed-by: alanb
2018-09-13 12:41:42 +02:00
Igor Ignatyev
ebc04911eb 8210699: Problem list tests which times out in Xcomp mode
Reviewed-by: kvn
2018-09-12 21:56:59 -07:00
Roland Westrelin
04c961659f 8210390: C2 still crashes with "assert(mode == ControlAroundStripMined && use == sfpt) failed: missed a node"
Reviewed-by: thartmann, kvn
2018-09-12 16:38:13 +02:00
Vicente Romero
29fec64583 8209022: Missing checkcast when casting to type parameter bounded by intersection type
Reviewed-by: mcimadamore
2018-09-20 12:49:58 -07:00
Aleksey Shipilev
1194d162cb 8210963: Build failures after "8210829: Modularize allocations in C2"
Reviewed-by: rkennke, thartmann
2018-09-20 21:14:38 +02:00
Magnus Ihse Bursie
aa16ed8006 8210931: JLI and launchers normalization and cleanup
Reviewed-by: alanb, erikj
2018-09-20 21:05:00 +02:00
Magnus Ihse Bursie
4c400d2372 8210962: Deprecate jdk-variant
Reviewed-by: shade, erikj
2018-09-20 20:54:19 +02:00
Ioi Lam
6c59cb232f 8210875: Refactor CompactHashtable
Reviewed-by: ccheung, jiangli
2018-09-18 21:47:14 -07:00
Magnus Ihse Bursie
a32f8e382d 8210960: Allow --with-boot-jdk-jvmargs to work during configure
Reviewed-by: erikj
2018-09-20 18:39:53 +02:00
Magnus Ihse Bursie
02fe542c3f 8210941: Stop filtering out -xregs=no%appl for libsunec
Reviewed-by: erikj
2018-09-20 18:38:34 +02:00
Magnus Ihse Bursie
854798f378 8210944: Stop replacing -MD with -MT in libwindowsaccessbridge
Reviewed-by: erikj
2018-09-20 18:37:25 +02:00
Magnus Ihse Bursie
aeef5fba0b 8210949: Stop filtering out -xc99=%none for liblcms
Reviewed-by: erikj
2018-09-20 18:33:19 +02:00
Per Lidén
62ecb73e35 8210883: ZGC: Parallel retire/resize/remap of TLABs
Reviewed-by: eosterlund
2018-09-20 14:04:44 +02:00
Per Lidén
c0d0cbc4f1 8210857: Allow retiring TLABs and collecting statistics in parallel
Reviewed-by: sjohanss, eosterlund
2018-09-20 14:04:43 +02:00
Coleen Phillimore
92575fc3f0 8202201: All oop stores in the x64 interpreter are treated as volatile when using G1
Ran out of registers, generated volatile and non-volatile branches.

Reviewed-by: eosterlund, dholmes
2018-09-20 08:11:21 -04:00
Patric Hedlin
b9c5932fdd 8210284: "assert((av & 0x00000001) == 0) failed: unsupported V8" on Solaris 11.4
Sanity checks on V8 legacy properties removed.

Reviewed-by: neliasso, eosterlund, kvn
2018-09-12 14:08:15 +02:00
Magnus Ihse Bursie
481a045635 8210920: Native C++ tests are not using CXXFLAGS
Reviewed-by: tbell, erikj
2018-09-20 08:59:03 +02:00
Kim Barrett
ea9331f871 8210889: Some service thread cleanups can be starved
Do all available work on each iteration.

Reviewed-by: pliden, tschatzl, coleenp
2018-09-19 20:07:02 -04:00
Jamil Nimeh
a24c991cd3 8210846: TLSv.1.3 interop problems with OpenSSL 1.1.1 when used on the client side with mutual auth
Reviewed-by: wetmore
2018-09-19 16:07:03 -07:00
Magnus Ihse Bursie
fe67f09af3 8210924: Remove PACKAGE_PATH
Reviewed-by: tbell
2018-09-20 00:19:46 +02:00
Jesper Wilhelmsson
3c7b577a89 Added tag jdk-12+12 for changeset 15094d12a632 2018-09-20 00:16:23 +02:00
Zhengyu Gu
cf8469cceb 8210879: ClassLoaderStatsClosure does raw oop comparison
Uses oopDesc::equals() for comparing oop equality

Reviewed-by: shade
2018-09-19 16:51:22 -04:00
Magnus Ihse Bursie
3fd4c462cb 8210919: Remove statically linked libjli on Windows
Reviewed-by: erikj
2018-09-19 22:42:34 +02:00
Coleen Phillimore
fce43c0c36 8198717: Remove compute_optional_offset
Remove optional_offset computation and related unused code from javaClasses for reflection.

Reviewed-by: redestad, lfoltan
2018-09-19 15:25:05 -04:00
Roman Kennke
8ce9db9ed5 8210829: Modularize allocations in C2
Reviewed-by: kvn, roland
2018-09-19 21:31:33 +02:00
Arthur Eubanks
977a178e0c 8209817: stack is executable when building with Clang on Linux
Reviewed-by: dholmes, martin, mikael, ihse
2018-09-19 10:51:06 -07:00
Per Lidén
ebfb84c1fe 8210884: ZGC: Remove insertion of filler objects
Reviewed-by: eosterlund
2018-09-19 19:12:20 +02:00
Per Lidén
85e31a838e 8210881: ZGC: Introduce ZRootsIteratorClosure
Reviewed-by: eosterlund
2018-09-19 19:12:18 +02:00
Mikael Vidstedt
a69f014ad7 8210912: Build error in src/jdk.crypto.cryptoki/share/native/libj2pkcs11/p11_convert.c after JDK-8029661
Reviewed-by: mullan
2018-09-19 09:24:40 -07:00
Per Lidén
a8703f9803 8210713: Let CollectedHeap::ensure_parsability() take care of TLAB statistics gathering
Reviewed-by: eosterlund, sjohanss
2018-09-19 14:09:11 +02:00
Martin Balao
aafb2b0474 8029661: Support TLS v1.2 algorithm in SunPKCS11 provider
TLS v1.2 algorithms for key and MAC derivation added to SunPKCS11 crypto provider.

Reviewed-by: valeriep
2018-09-12 13:09:51 +02:00
Jan Lahoda
52ba129b0a 8207954: Data for --release 11
Adding support for --release 11

Reviewed-by: erikj, ihse, jjg
2018-09-19 10:50:25 +02:00
Alan Bateman
9c70e26c14 8210496: Improve filtering for classes with security sensitive fields
Reviewed-by: plevart, mchung
2018-09-19 08:49:07 +01:00
Priya Lakshmi Muthuswamy
a17816f881 8210047: some pages contain content outside of landmark region
Reviewed-by: jjg
2018-09-19 12:14:53 +05:30
Ioi Lam
1619cbd14b 8210864: Reduce the use of metaspaceShared.hpp
Reviewed-by: coleenp, lfoltan
2018-09-18 21:46:17 -07:00
Xueming Shen
f0108ea40c 8210899: (zipfs) ZipFileSystem.EntryOutputStreamCRC32 mistakenly set the crc32 value into size field
Reviewed-by: bpb
2018-09-18 19:44:27 -07:00
Per Lidén
4aa926a9eb 8210753: Make ThreadLocalAllocBuffer::resize() public
Reviewed-by: eosterlund, jcbeyler
2018-09-18 22:46:35 +02:00
Coleen Phillimore
a3931a76f6 8210861: Move assert to help diagnose rare RedefineStress crash
Assert that Method being marked on stack hasn't been missed by previous metadata walk

Reviewed-by: lfoltan
2018-09-18 16:11:36 -04:00
Doug Simon
d31e1ca5a4 8210793: [JVMCI] AllocateCompileIdTest.java failed to find DiagnosticCommand.class
Reviewed-by: thartmann, kvn
2018-09-18 22:32:25 +02:00
Joe Wang
d6dc55de47 8210874: Test for JDK-8209615
Reviewed-by: lancea
2018-09-18 13:31:30 -07:00
Brian Burkhalter
29a20e13c4 8210817: Minor typo in java.nio.file.attribute package summary
Reviewed-by: dfuchs, alanb
2018-09-18 13:18:54 -07:00
Naoto Sato
e71557a2d9 8209880: tzdb.dat is not reproducibly built
Reviewed-by: erikj, rriggs
2018-09-18 12:42:40 -07:00
Jini George
794a0e072d 8210836: Build fails with warn_unused_result in openjdk/src/jdk.hotspot.agent/linux/native/libsaproc/ps_core.c
Read in and process the return value of pread() while dealing with the PT_INTERP segment

Reviewed-by: stuefe, jcbeyler
2018-09-18 23:20:17 +05:30
Xueming Shen
196c20c0d1 8034802: (zipfs) newFileSystem throws UOE when the zip file is located in a custom file system
Reviewed-by: xiaofeya, clanger
2018-09-18 10:43:01 -07:00
Joe Wang
9ed646a020 8207760: SAXException: Invalid UTF-16 surrogate detected: d83c ?
Reviewed-by: lancea, dfuchs
2018-09-18 09:44:20 -07:00
Jiangli Zhou
b6180e668e 8210237: [TESTBUG]gc/stress/TestStressIHOPMultiThread.java fails with 'Unexpected exit from test [exit code: 1]' in CDS mode
Fix TestStressIHOPMultiThread to handle possible OutOfMemoryError.

Reviewed-by: ccheung, gziemski
2018-09-18 11:55:33 -04:00
Coleen Phillimore
cba1e9458b 8203466: intermittent crash at jdk.internal.misc.Unsafe::getObjectVolatile (native)
Store rsi, rdi on thread local memory, store r15 in r9, for the stubs that have gc barriers

Reviewed-by: dlong, eosterlund
2018-09-18 08:27:01 -04:00
Magnus Ihse Bursie
165a8b22b4 8210729: Clean up macosx static library handling
Reviewed-by: erikj
2018-09-18 13:32:40 +02:00
Matthias Baesken
be56cc5bf3 8207768: Improve exception messages during manifest parsing of jar archives
Reviewed-by: clanger, mullan, weijun
2018-09-12 11:13:09 +02:00
Matthias Baesken
19ca9280a6 8211146: fix problematic elif-tests after recent gcc warning changes Werror=undef
Reviewed-by: stuefe, clanger, dholmes, chegar, alanb
2018-09-26 14:28:37 +02:00
Leo Korinth
b31408a667 8196341: Add JFR events for parallel phases of G1
Reviewed-by: tschatzl, sangheki
2018-09-21 18:57:18 +02:00
Igor Ignatyev
ffe7832042 8211134: problem list compiler/whitebox/ForceNMethodSweepTest.java
Reviewed-by: kvn
2018-09-25 18:26:46 -07:00
Pengfei Li
f10ce48bc6 8210413: AArch64: Optimize div/rem by constant in C1
Remove div-by-zero check for non-zero divisor and generate cheap instructions if divisor is power-of-2

Reviewed-by: aph
2018-09-26 06:26:54 +08:00
Naoto Sato
ff3f48d69f 8210633: Cannot parse JapaneseDate string with DateTimeFormatterBuilder Mapped-values
Reviewed-by: scolebourne, rriggs
2018-09-25 13:57:24 -07:00
Joe Darcy
9d95755584 8211127: TestNewLanguageFeatures.java fails after JDK-8173730
Reviewed-by: jjg
2018-09-25 13:31:51 -07:00
Joe Darcy
ce3ef2bc2c 8173730: Stop including enhanced for-loop tip for enum values() method
Reviewed-by: jjg
2018-09-25 11:31:55 -07:00
Jonathan Gibbons
59fd35292e 8210839: Improve interaction between source launcher and classpath
Reviewed-by: alanb, mchung
2018-09-25 10:30:32 -07:00
Jean Christophe Beyler
64099fc1cc 8210689: Remove the multi-line old C style for string literals
Remove the multi-line old C style and prefer C++ multi-line

Reviewed-by: amenkov, cjplummer
2018-09-25 09:34:51 -07:00
Daniel D. Daugherty
9af302152c 8211103: ProblemList runtime/XCheckJniJsig/XCheckJSig.java on MacOS X
Reviewed-by: mikael, dholmes
2018-09-25 11:31:55 -04:00
Roman Kennke
001dbe273b 8211061: Tests fail with assert(VM_Version::supports_sse4_1()) on ThreadRipper CPU
Reviewed-by: thartmann, roland
2018-09-25 16:41:25 +02:00
Chris Hegarty
b1cb88da26 8211099: ProblemList two networking tests until jtreg b14 is promoted
Reviewed-by: alanb
2018-09-25 15:35:31 +01:00
Andrey Petushkov
f32e401b0d 8211064: [AArch64] Interpreter and c1 don't correctly handle jboolean results in native calls
Reviewed-by: aph
2018-09-24 18:19:46 +01:00
Roman Kennke
c87e7672a6 8132849: Increased stop time in cleanup phase because of single-threaded walk of thread stacks in NMethodSweeper::mark_active_nmethods()
Reviewed-by: eosterlund, zgu, thartmann
2018-09-24 18:44:39 +02:00
Tagir Valeev
7c9ab50d06 8205461: Create Collector which merges results of two other collectors
Reviewed-by: briangoetz, smarks, plevart
2018-09-25 14:23:37 +02:00
Pengfei Li
dd4961b5aa 8210152: Optimize integer divisible by power-of-2 check
Integer conditional negation operation before zero check is eliminated

Reviewed-by: kvn, thartmann
2018-09-25 14:16:33 +02:00
Priya Lakshmi Muthuswamy
f8ba78868d 8202462: {@index} may cause duplicate labels
Reviewed-by: jjg
2018-09-25 13:58:54 +05:30
Priya Lakshmi Muthuswamy
4b47d2c9e7 8205593: Javadoc -link makes broken links if module name matches package name
Reviewed-by: jjg
2018-09-25 12:36:45 +05:30
Mikael Vidstedt
25295df059 8210848: Obsolete SyncKnobs
Reviewed-by: redestad, coleenp, dholmes, dcubed
2018-09-24 22:12:07 -07:00
Frank Yuan
3edf95fc44 8210934: Move sun/net/www/protocol/http/GetErrorStream.java to OpenJDK
Repalce internet website dependency with a built-in http server

Reviewed-by: chegar
2018-09-25 11:24:59 +08:00
Dan Zhou
5e8e18c05d 8210443: Migrate Locale matching tests to JDK Repo
Reviewed-by: naoto
2018-09-25 11:18:36 +08:00
Sandhya Viswanathan
092fe55fb1 8210764: Update avx512 implementation
Reviewed-by: kvn
2018-09-24 16:37:28 -07:00
Erik Joelsson
e5b9edac53 8211037: Load jib jars dynamically from JibArtifactManager
Reviewed-by: ihse
2018-09-24 13:51:22 -07:00
Magnus Ihse Bursie
6d9cf91bf0 8210705: Stop exporting all symbols on macosx
Reviewed-by: erikj
2018-09-24 20:45:06 +02:00
Vikrant Agarwal
4508402c6e 8210052: Enable testing for all the available look and feels in SwingSet3 demo tests
Reviewed-by: shurailine, serb
2018-09-12 11:51:39 +05:30
Abdul Kolarkunnu
d4612426ce 8210056: Enable different look and feel tests in SwingSet3 demo test TextFieldDemoTest
Reviewed-by: serb
2018-09-11 22:16:47 -07:00
Roger Riggs
71b9664abb 8098798: Thread.join(ms) on Linux still affected by changes to the time-of-day clock
8210004: Thread.sleep(millis, nanos) timeout returns early

Reviewed-by: martin, igerasim
2018-09-14 12:53:07 -04:00
Coleen Phillimore
bad4a92e55 8210559: ClassLoaderData Symbols can leak
Unrefcount the symbol names when the CLD is destroyed

Reviewed-by: lfoltan, jiangli, iklam
2018-09-14 12:10:28 -04:00
Brian Burkhalter
b16e5584ab 8210741: Typo in Java API documentation of java.nio.file.Paths
Reviewed-by: alanb, rriggs
2018-09-14 09:00:22 -07:00
Alan Bateman
73cda6e99e 8208780: (se) test SelectWithConsumer.testReadableAndWriteable(): failure
Reviewed-by: bpb
2018-09-14 16:56:09 +01:00
Per Lidén
0f8cbbc54c 8210714: ZGC: ZWeakRootsIterator should no longer call reset/finish_dead_counter()
Reviewed-by: eosterlund
2018-09-14 14:44:11 +02:00
Per Lidén
26af771191 8210711: Remove unused offset getters in ThreadLocalAllocBuffer
Reviewed-by: rkennke, tschatzl, mdoerr
2018-09-14 14:44:11 +02:00
Per Lidén
97f10c27d8 8210710: Rename ThreadLocalAllocBuffer::myThread() to thread()
Reviewed-by: rkennke, tschatzl
2018-09-14 14:44:11 +02:00
Per Lidén
fd2acd9284 8209163: SA: Show Object Histogram asserts with ZGC
Reviewed-by: ysuenaga, jcbeyler
2018-09-14 14:44:11 +02:00
Hannes Wallnöfer
9a9df3cd76 8209914: javadoc search sometimes generates bad URIs
Reviewed-by: jjg
2018-09-14 14:45:31 +02:00
Dmitrij Pochepko
8eb4ba001c 8210461: AArch64: Math.cos intrinsic gives incorrect results
Reviewed-by: aph
2018-09-14 14:24:00 +03:00
Severin Gehwolf
ee43c985d4 8210703: vmStructs.cpp compiled with -O0
Reviewed-by: erikj, ihse
2018-09-13 11:07:40 +02:00
Magnus Ihse Bursie
99eee041ba 8210731: PropertiesParser does not produce reproducible output
Reviewed-by: mchung, jjg, erikj
2018-09-14 09:16:51 +02:00
Igor Veresov
acb7acc64f 8210478: Update Graal
Reviewed-by: kvn
2018-09-13 22:45:12 -07:00
Amy Lu
07392d976a 8209772: Refactor shell test java/util/ServiceLoader/basic/basic.sh to java
Reviewed-by: alanb
2018-09-14 13:18:52 +08:00
Liam Miller-Cushon
8b3c1810d2 8193037: package-info annotations are not reported when annotation processing is enabled
Reviewed-by: jjg
2018-09-13 15:29:44 -07:00
Xue-Lei Andrew Fan
5de8b5c59a 8209916: NPE in SupportedGroupsExtension
Reviewed-by: jnimeh, wetmore
2018-09-13 17:11:04 -07:00
Gary Adams
f2b9a3e5b9 8210252: com/sun/jdi/DebuggerThreadTest.java fails with NPE
Reviewed-by: cjplummer, sspitsyn
2018-09-13 07:54:38 -04:00
Vladimir Kozlov
7f806d6abd 8210220: [AOT] jdwp test cases are failing with error # ERROR: TEST FAILED: Cought IOException while receiving event packet
Don't register AOT method if corresponding java method has breakpoints.

Reviewed-by: dlong
2018-09-13 15:27:21 -07:00
Naoto Sato
009cd15a1b 8209167: Use CLDR's time zone mappings for Windows
Reviewed-by: erikj, rriggs, ihse
2018-09-13 13:41:17 -07:00
Jean Christophe Beyler
85b57de9ce 8210665: Clean up JNI_ENV_ARG and factorize the macros for vmTestbase/jvmti[R-U] tests
Remove JNI_ENV and JVMTI_ENV macros from jvmti/[R-U] tests

Reviewed-by: cjplummer, sspitsyn
2018-09-13 13:03:50 -07:00
Magnus Ihse Bursie
26ff7d58db 8207264: solaris-sparcv9-cmp-baseline fails
Reviewed-by: erikj, prr
2018-09-13 21:14:04 +02:00
Magnus Ihse Bursie
c611ad6fb9 8210702: Remove dtrace mapfiles
Reviewed-by: erikj
2018-09-13 21:12:22 +02:00
Severin Gehwolf
d778b4cd2b 8210425: [x86] sharedRuntimeTrig/sharedRuntimeTrans compiled without optimization
Compile with -O2 and -ffp-contract=off as for fdlibm.

Reviewed-by: erikj, lucy, aph
2018-09-11 18:18:51 +02:00
Magnus Ihse Bursie
0504b6cbb5 8210750: Clean up compare.sh exceptions
Reviewed-by: erikj
2018-09-18 10:35:42 +02:00
Magnus Ihse Bursie
9cbe59f983 8210723: Better information in configure for invalid Xcode
Reviewed-by: erikj
2018-09-18 10:29:56 +02:00
Mandy Chung
89efb9a78f 8210841: test/jdk/vm/runtime/ReflectStackOverflow.java fails with NoClassDefFoundError
Reviewed-by: dholmes, mikael
2018-09-17 22:56:31 -07:00
Hamlin Li
1adaa503bb 8210802: temp files left by tests in jdk/java/net/httpclient
Reviewed-by: chegar, clanger
2018-09-18 13:24:25 +08:00
Michihiro Horie
d70db363eb 8210660: PPC64: Mapping floating point registers to vsx registers in ppc.ad
Reviewed-by: mdoerr, gromero
2018-09-17 23:35:00 -04:00
Frank Yuan
c1bbf898e4 8210819: Update the host name in CNameTest.java
Reviewed-by: chegar
2018-09-18 11:09:18 +08:00
Jean Christophe Beyler
bdf78f557a 8210700: Clean up JNI_ENV_ARG and factorize the macros for vmTestbase/jvmti/unit tests
Remove JNI_ENV macros from the remaining vmTestbase tests

Reviewed-by: amenkov, sspitsyn, dholmes, cjplummer
2018-09-17 19:48:35 -07:00
Jean Christophe Beyler
510336c210 8210481: Remove #ifdef cplusplus from vmTestbase
Remove all cplusplus ifdefs from vmTestbase

Reviewed-by: dholmes, iignatyev, cjplummer, sspitsyn
2018-09-17 19:36:09 -07:00
Jamil Nimeh
962e755c3a 8140466: ChaCha20 and Poly1305 TLS Cipher Suites
Reviewed-by: xuelei, mullan
2018-09-17 15:25:42 -07:00
Mandy Chung
b72ab42e49 8210721: Replace legacy serial exception field with Throwable::cause
Reviewed-by: dfuchs, lancea
2018-09-17 15:22:46 -07:00
Anthony Scarpino
b27f471bdd 8209031: SSLSocket should throw an exception when configuring DTLS
Reviewed-by: xuelei
2018-09-17 14:04:46 -07:00
Vladimir Kozlov
7069bb6a72 8209574: [AOT] breakpoint events are generated in different threads does not meet expected count
Disable AOT when debugger is attached.

Reviewed-by: dlong
2018-09-17 13:43:22 -07:00
Igor Ignatyev
3521fc392e 8210779: 8182404 and 8210732 haven't updated copyright years
Reviewed-by: bchristi
2018-09-17 11:50:39 -07:00
Iris Clark
ba8f6e211c 8210775: JVM TI Spec missing copyright
Reviewed-by: dholmes, mchung, sspitsyn
2018-09-17 10:14:31 -07:00
Liam Miller-Cushon
7afa8e42b6 8210483: AssertionError in DeferredAttr at setOverloadKind caused by JDK-8203679
Reviewed-by: mcimadamore, vromero
2018-09-10 16:59:41 -07:00
Ioi Lam
4e74846da8 8210523: runtime/appcds/cacheObject/DifferentHeapSizes.java crash
Reviewed-by: jiangli, ccheung
2018-09-12 17:45:22 -07:00
Vicente Romero
cf26c4cc5c 8207160: ClassReader::adjustMethodParams can potentially return null if the args list is empty
Reviewed-by: mcimadamore, cushon
2018-09-12 16:28:06 -07:00
Jesper Wilhelmsson
996ee09ca8 Added tag jdk-12+11 for changeset f0f5d23449d3 2018-09-13 01:41:24 +02:00
Jim Laskey
d2b04cb964 8210671: CheckExamples.java fail after Raw String Literals checkin
Reviewed-by: vromero, darcy
2018-09-12 17:14:08 -03:00
Alex Menkov
0b3f46efe1 8210560: [TEST] convert com/sun/jdi redefineClass-related tests
Reviewed-by: jcbeyler, sspitsyn
2018-09-12 12:29:40 -07:00
Jean Christophe Beyler
6a2e4311f5 8210593: Clean up JNI_ENV_ARG and factorize the macros for vmTestbase/jvmti[N-R] tests
Remove JNI_ENV/JVMTI_ENV macros from N to R jvmti tests

Reviewed-by: amenkov, dholmes
2018-09-12 10:27:03 -07:00
Jim Laskey
12dad310bb 8200434: String::align, String::indent
Reviewed-by: abuckley, smarks, sherman, rriggs, jrose, sundar, igerasim, briangoetz, darcy, jjg
2018-09-12 14:19:36 -03:00
Jim Laskey
2065ebd890 8206981: Compiler support for Raw String Literals
Reviewed-by: mcimadamore, briangoetz, abuckley, jjg, vromero, jlahoda
2018-09-12 14:19:36 -03:00
Erik Joelsson
4508c9908b 8210519: build/releaseFile/CheckSource.java failed additional sources found
Reviewed-by: mikael, dholmes, ihse
2018-09-12 08:46:25 -07:00
Michihiro Horie
f263f6113e 8208171: PPC64: Enrich SLP support
Reviewed-by: mdoerr, gromero
2018-09-12 14:24:17 +02:00
Martin Doerr
63abf144aa 8210497: [PPC64] Vector registers not saved across safepoint
Reviewed-by: goetz, lucy
2018-09-12 12:54:16 +02:00
Magnus Ihse Bursie
0820376744 8059019: sdp.conf.template should be copied on linux too
Reviewed-by: alanb, erikj
2018-09-12 12:23:58 +02:00
Thomas Schatzl
7c7a5976d3 8209843: Optimize oop scan closure closures wrt to reference processing in G1
Set more appropriate reference iteration mode for G1 closures.

Reviewed-by: kbarrett, pliden
2018-09-12 11:08:42 +02:00
Andrew Dinn
ef320b7a99 8210578: AArch64: Invalid encoding for fmlsvs instruction
Sub_op code for fmslvs should be 1 not 0

Reviewed-by: roland
2018-09-12 09:12:42 +01:00
Tobias Hartmann
8e0e188abd 8210387: C2 compilation fails with "assert(node->_last_del == _last) failed: must have deleted the edge just produced"
Refresh iterator and start from the beginning while there is progress when removing dead regions.

Reviewed-by: kvn
2018-09-12 09:23:36 +02:00
Sergey Bylokhov
cd38b8562f 8205537: Drop of sun.applet package
Reviewed-by: prr
2018-09-09 19:07:34 -07:00
Phil Race
222c1eb393 8210384: SunLayoutEngine.isAAT() font is expensive on MacOS
Reviewed-by: dmarkov, kaddepalli
2018-09-09 11:19:57 -07:00
Sergey Bylokhov
5178c24a45 8207150: Clip.isRunning() may return true after Clip.stop() was called
Reviewed-by: prr
2018-09-08 12:32:51 -07:00
Phil Race
2cabb5a6c9 Merge 2018-09-05 10:17:02 -07:00
Xueming Shen
5d1d4eb155 8210394: (zipfs) jdk/nio/zipfs/ZFSTests.java rootdir.zip: The process cannot access the file because it is being used by another process
Reviewed-by: alanb, jlaskey
2018-09-05 09:12:50 -07:00
Ralf Schmelter
22de84454c 8209942: [epsilon] range function for EpsilonTLABElasticity causes compiler warning
Reviewed-by: shade, simonis
2018-09-05 12:48:51 +02:00
Magnus Ihse Bursie
9e1adc7e73 8182733: aarch64 build documentation misleading
Reviewed-by: shade, dholmes
2018-09-05 14:00:36 +02:00
Prasanta Sadhukhan
75ec02926c 8202013: JEditorPane shows large HTML unordered list bullets
8201925: JEditorPane unordered list bullets look pixelated

Reviewed-by: prr, pbansal
2018-09-05 15:56:49 +05:30
Erik Österlund
1c727102ab 8210158: Accessorize JFR getEventWriter() intrinsics
Reviewed-by: kvn, neliasso, roland, rbackman
2018-09-05 10:11:42 +02:00
Alan Bateman
f1202dc4dc 8209152: (so) ServerSocketChannel::supportedOptions includes IP_TOS
Reviewed-by: chegar
2018-09-05 11:52:08 +01:00
John Paul Adrian Glaubitz
e7a2c9d679 8165440: Add Zero support for x86_64-linux-gnux32 target
Reviewed-by: erikj, ihse
2018-09-05 11:15:28 +02:00
Priya Lakshmi Muthuswamy
e2eab3c1b7 8209052: Low contrast in docs/api/constant-values.html
Reviewed-by: jjg
2018-09-05 11:52:15 +05:30
Amy Lu
dc356698b8 8209832: Refactor jdk/internal/reflect/Reflection/GetCallerClassTest.sh to plain java test
Reviewed-by: alanb, mchung
2018-09-05 12:34:08 +08:00
Xueming Shen
de35357cf5 8197398: (zipfs) Files.walkFileTree walk indefinitelly while processing JAR file with "/" as a directory inside
Reviewed-by: alanb
2018-09-04 17:04:10 -07:00
Igor Ignatyev
315e71f87e 8210039: move OSInfo to top level testlibrary
Reviewed-by: serb, chegar, alanb, dfuchs
2018-09-04 14:35:59 -07:00
Calvin Cheung
3c810ce261 8209736: runtime/RedefineTests/ModifyAnonymous.java fails with NullPointerException when running in CDS mode
Add logging of class names in the allLoadedClasses array; throw RuntimeException upon encountering of a null class.

Reviewed-by: jiangli
2018-09-04 15:00:08 -07:00
Man Cao
b116f2cf13 8210192: Hsperf counter ParNew::CMS should be ParNew:CMS
Rename the counter back to ParNew:CMS and added a test

Reviewed-by: sjohanss, tschatzl
2018-09-04 14:17:45 -07:00
Jean Christophe Beyler
d0560a2860 8210182: Remove macros for C compilation from vmTestBase but non jvmti
Remove the macros and update the code

Reviewed-by: sspitsyn, cjplummer, amenkov
2018-08-31 22:55:34 -07:00
Vladimir Kozlov
6f8114227c 8209594: guarantee(this->is8bit(imm8)) failed: Short forward jump exceeds 8-bit offset
Replace short jumps and fix other issues when generated code exceed expected range.

Reviewed-by: dlong, rasbold
2018-09-04 12:44:02 -07:00
Daniel Fuchs
595a45041b 8210366: Typo in MethodHandles.Lookup: must be either be
Reviewed-by: rriggs
2018-09-04 18:32:28 +01:00
Alan Bateman
9141fa4e52 8210087: Classes in jdk.unsupported not accessible from jconsole plugin
Reviewed-by: erikj
2018-09-04 18:03:44 +01:00
Brian Burkhalter
ba1d068078 8210279: (bf) Remove unused package private method java.nio.Buffer.truncate()
Reviewed-by: alanb
2018-09-04 09:07:06 -07:00
Gustavo Romero
e8b551eac9 8210320: PPC64: Fix uninitialized variable in C1 LIR assembler code
Reviewed-by: mbaesken, shade, mdoerr
2018-09-04 11:46:23 -04:00
Aleksey Shipilev
aee7d4f600 8210357: Zero builds fail after JDK-8207343 (Automate vtable/itable stub size calculation)
Reviewed-by: thartmann
2018-09-04 13:19:38 +02:00
Aleksey Shipilev
c7c0863c86 8210355: Minimal and Zero non-PCH builds fail after JDK-8207343 (Automate vtable/itable stub size calculation)
Reviewed-by: thartmann
2018-09-04 13:19:37 +02:00
Alan Bateman
81af5289e9 8210341: (fs) Typos in PosixFileAttributeView javadoc
Reviewed-by: dfuchs
2018-09-04 11:35:35 +01:00
Thomas Schatzl
db7b4e20e1 8207200: Committed > max memory usage when getting MemoryUsage
Make sure that modification of memory usage variables are synchronized with returning them to Java.

Reviewed-by: sangheki, mchung
2018-09-04 12:18:35 +02:00
Thomas Schatzl
a7d4df53fa 8210265: Crash in HSpaceCounters::update_used()
Guard call to update HSpaceCounters with flag

Reviewed-by: shade, sjohanss, kbarrett
2018-09-04 12:17:23 +02:00
Weijun Wang
a5f7028279 8210338: Better output for GenerationTests.java
Reviewed-by: xuelei
2018-09-04 14:47:55 +08:00
Thomas Stuefe
96e71f7836 8210307: 8210246 broke NMT jtreg tests
Reviewed-by: goetz, iklam
2018-09-04 08:06:31 +02:00
Thomas Stuefe
23635d7d6f 8210314: [aix] NMT does not show "Safepoint" memory type
Reviewed-by: goetz, mbaesken
2018-09-03 14:27:03 +02:00
Boris Ulasevich
d2e84521c0 8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
Reviewed-by: rkennke
2018-09-03 13:42:58 +03:00
Aleksei Voitylov
bf7cd96146 8207247: AARCH64: Enable Minimal and Client VM builds
Reviewed-by: aph
2018-09-03 13:39:35 +03:00
Lutz Schmidt
f36874335d 8207343: Automate vtable/itable stub size calculation
Reviewed-by: kvn, mdoerr
2018-09-03 09:43:08 +02:00
Ioi Lam
d08c6c824d 8210246: NMTUtil::_memory_type_names should be in sync with MemoryType
Reviewed-by: ccheung, jiangli, coleenp
2018-09-01 12:02:07 -07:00
Goetz Lindenmaier
73537725b1 8210259: [testbug] IncompatibleOptions.java fails if VM configured without ZGC
Reviewed-by: pliden, kbarrett
2018-09-01 18:15:27 +02:00
Alan Snyder
78eb57c7a6 8146310: [macosx] com.apple.eawt.Application.setDefaultMenuBar does not initialize screen menu bar
Reviewed-by: serb
2018-08-31 18:05:38 -07:00
Jonathan Gibbons
c8d641d148 8208608: Update --module-source-path to allow explicit source paths for specific modules
Reviewed-by: jlahoda
2018-08-31 14:54:42 -07:00
Kim Barrett
53ac5e7fed 8210235: JvmtiTrace::safe_get_current_thread_name is unsafe in debug builds
Use Thread::current_or_null and handle NULL result.

Reviewed-by: coleenp
2018-08-31 16:29:49 -04:00
Daniil Titov
4d57252ee0 8209585: [Graal] vmTestbase/nsk/jvmti/scenarios/sampling tests fail with "Too small stack of resumed thread"
Reviewed-by: sspitsyn, amenkov, cjplummer, jcbeyler
2018-08-31 11:56:43 -07:00
Maurizio Cimadamore
4871d9935e 8210226: Add support for multiple project folders to idea.sh
Overhaul templating logic for idea.sh; add support for -o option

Reviewed-by: erikj, ihse
2018-08-31 18:01:47 +01:00
Alex Menkov
3a37a5d219 8067354: com/sun/jdi/GetLocalVariables4Test.sh failed
Reviewed-by: jcbeyler, sspitsyn
2018-08-31 09:53:37 -07:00
Roman Kennke
a9f2e04d54 8210187: Explicit barriers for C2
Reviewed-by: eosterlund, shade, roland, pliden
2018-08-31 16:28:52 +02:00
Mikael Vidstedt
72797db95b 8210513: Obsolete SyncFlags
Reviewed-by: coleenp, dcubed, dholmes
2018-09-11 20:37:47 -07:00
Ivan Gerasimov
475d422094 8210347: Combine subsequent calls to Set.contains() and Set.add()
Reviewed-by: smarks, bpb
2018-09-11 14:51:45 -07:00
Mikael Vidstedt
9118c4c28b 8210514: Obsolete SyncVerbose
Reviewed-by: coleenp, dcubed
2018-09-11 13:54:34 -07:00
Ioi Lam
e80b128db4 8210289: ArchivedKlassSubGraphInfoRecord is incomplete
Reviewed-by: jiangli, ccheung
2018-09-05 18:14:45 -07:00
Patricio Chilano Mateo
891765ee5e 8210300: runtime/MemberName/MemberNameLeak.java fails with RuntimeException
Added flag -XX:+UnlockDiagnosticVMOptions to tests failing in product builds

Reviewed-by: dcubed, dholmes
2018-09-11 13:34:13 -04:00
Jean Christophe Beyler
fe326ad022 8210385: Clean up JNI_ENV_ARG and factorize the macros for vmTestbase/jvmti[A-N] tests
Remove JNI_ENV and JVMTI_ENV macros for part of the jvmti tests

Reviewed-by: amenkov, dholmes
2018-09-11 10:12:50 -07:00
Coleen Phillimore
bbf5c1ca8d 8210422: runtime/modules/ModuleStress/ExportModuleStressTest.java - assertion failed: address not aligned: 0x00000008baadbabe
CLDG_lock caused safepoint in inconsistent state

Reviewed-by: lfoltan, eosterlund, kbarrett
2018-09-11 09:42:27 -04:00
Harold Seigel
18bbeb53e6 8210470: Remove unused Verifier::verify() Verifier::Mode argument
Remove the unused argument.

Reviewed-by: coleenp, jiangli
2018-09-11 09:53:41 -04:00
Vyom Tewari
edef78fbe1 8205330: InitialDirContext ctor sometimes throws NPE if the server has sent a disconnection
Reviewed-by: chegar, dfuchs
2018-09-11 17:48:24 +05:30
Thomas Schatzl
a19321464c 8210467: Remove unused G1CollectedHeap::_max_heap_capacity
Reviewed-by: sjohanss, phh
2018-09-11 09:14:36 +02:00
Thomas Schatzl
093c837c85 8210463: Recalculate_used() always sets time taken in G1GCPhaseTimes
Reviewed-by: phh, sjohanss
2018-09-11 09:13:37 +02:00
Chris Yin
694380add3 8209773: Refactor shell test javax/naming/module/basic.sh to java
Reviewed-by: vtewari, alanb
2018-09-11 09:27:47 +08:00
Weijun Wang
623caa5bbf 8205507: jdk/javax/xml/crypto/dsig/GenerationTests.java timed out
Reviewed-by: mullan
2018-09-11 08:48:26 +08:00
Dean Long
6724b59873 8210434: [Graal] 8209301 prevents GitHub Graal from compiling with latest JDK
Reviewed-by: dnsimon, kvn
2018-09-10 16:33:05 -07:00
Kim Barrett
efe6ad59e8 8210511: TestSingleWriterSynchronizer can deadlock
Check for safepoints in test loops.

Reviewed-by: coleenp, eosterlund
2018-09-10 19:18:04 -04:00
David Holmes
1f30060cbb 8210512: [Testbug] vmTestbase/nsk/jdi/ObjectReference/referringObjects/referringObjects002/referringObjects002.java fails with unexpected size of ClassLoaderReference.referringObjects
Account for the self-reference that every class has in the constant pool

Reviewed-by: sspitsyn, jcbeyler
2018-09-10 18:57:44 -04:00
Jiangli Zhou
4baa5b10d1 8210515: [TESTBUG]CheckArchivedModuleApp.java needs to check if EnableJVMCI is set
System module objects are not archived when EnableJVMCI is set to true.

Reviewed-by: iklam, ccheung
2018-09-10 18:30:24 -04:00
Igor Ignatyev
2702b5c299 8182404: remove jdk.testlibrary.JDKToolFinder and JDKToolLauncher
Reviewed-by: amenkov, jcbeyler, alanb
2018-09-10 14:23:37 -07:00
Coleen Phillimore
7445ebf02b 8208697: vmTestbase/metaspace/stressHierarchy/stressHierarchy012/TestDescription.java fails with OutOfMemoryError: Metaspace
Remove timeoutHandler class and let Stresser handle timeout, remove 30 threads filling metaspace, and remove related unused files.

Reviewed-by: lfoltan, mseledtsov
2018-09-10 16:33:55 -04:00
Mandy Chung
cfb0662ff6 8210502: jdeps does not handle properly on analyzing a mixture of MR JARs and non-MR JARs
Reviewed-by: alanb
2018-09-10 12:48:57 -07:00
Lutz Schmidt
d36dddddab 8210319: [s390]: Use of shift operators not covered by cpp standard
Reviewed-by: mdoerr, goetz
2018-09-10 16:40:59 +02:00
Amy Lu
6c7a19d52f 8209930: Refactor java/util/zip/ZipFile/deletetempjar.sh to plain java test
Reviewed-by: alanb
2018-09-10 20:17:26 +08:00
Erik Österlund
c8be228513 8210321: Create NO_KEEPALIVE CLD holder accessor
Reviewed-by: coleenp, kbarrett
2018-09-10 13:07:42 +02:00
Erik Österlund
842bc09b01 8210233: Prepare Klass::is_loader_alive() for concurrent class unloading
Reviewed-by: coleenp, pliden
2018-09-10 13:07:42 +02:00
Erik Österlund
a602e0b80c 8210236: Prepare ciReceiverTypeData::translate_receiver_data_from for concurrent class unloading
Reviewed-by: coleenp, roland
2018-09-10 11:24:26 +02:00
Magnus Ihse Bursie
4db2b90f44 8056217: Remove awt_makecube.cpp
Reviewed-by: erikj, serb
2018-09-10 10:02:48 +02:00
Magnus Ihse Bursie
db72e03e12 8081858: make dist-clean does not delete all log files
Reviewed-by: erikj
2018-09-10 09:59:27 +02:00
Magnus Ihse Bursie
6b2d1c9834 8200609: Proper fix for mapfile removal for libjsig
Reviewed-by: erikj, dholmes
2018-09-10 09:58:23 +02:00
Erik Joelsson
26f801426d 8210283: Support git as an SCM alternative in the build
Reviewed-by: ihse, ehelin
2018-09-07 14:54:15 -07:00
Igor Ignatyev
21a0458422 8210112: remove jdk.testlibrary.ProcessTools
Reviewed-by: alanb, sspitsyn, jcbeyler
2018-09-07 14:01:52 -07:00
Jiangli Zhou
bd77f790c3 8209971: TestOptionsWithRanges.java crashes in CDS mode with G1UpdateBufferSize=1
Fixup archive heap regions before restoring any archived java object at runtime.

Reviewed-by: iklam, ccheung
2018-09-07 15:18:14 -04:00
Kim Barrett
8b1bdf579c 8210131: vmTestbase/nsk/jvmti/scenarios/allocation/AP10/ap10t001/TestDescription.java failed with ObjectFree: GetCurrentThreadCpuTimerInfo returned unexpected error code
Expanded permitted threads to include all NamedThreads.

Reviewed-by: dcubed, sspitsyn
2018-09-07 14:44:52 -04:00
Jean Christophe Beyler
d90f0a51c2 8210429: Clean up JNI_ENV_ARG for vmTestbase/jvmti/Get[G-Z] tests
Remove the JNI_ENV_ARG for the rest of the Get[G-Z]

Reviewed-by: dholmes, sspitsyn, cjplummer
2018-09-07 09:50:02 -07:00
Xueming Shen
23ec584fda 8210345: The Japanese message of FileNotFoundException garbled
Reviewed-by: alanb
2018-09-07 10:17:49 -07:00
Maurizio Cimadamore
c0d51dc514 8210495: compiler crashes because of illegal signature in otherwise legal code
Disable strict verification of compiler signatures when they do not affect generated bytecode

Reviewed-by: vromero
2018-09-07 15:56:21 +01:00
Andrew Leonard
660f6b448b 8209786: JDK12 fails to build on s390x with gcc 7.3
Reviewed-by: ihse, goetz
2018-09-07 11:24:59 +02:00
David Holmes
b66c67675d 8210486: Unused code in check_nest_attributes function
Reviewed-by: mikael, sspitsyn
2018-09-07 08:14:47 -04:00
Sean Mullan
59d3b2ccfa 6899533: SecureClassLoader and URLClassLoader have unnecessary check for createClassLoader permission
Remove code that is no longer necessary now that pre-JDK 1.2 SecurityManager methods are not supported.

Reviewed-by: mchung
2018-09-07 08:02:51 -04:00
Roland Westrelin
052a740695 8209544: AES encrypt performance regression in jdk11b11
Reviewed-by: kvn, vlivanov
2018-09-06 16:27:07 +02:00
Dean Long
25280e30d4 8209361: [AOT] Unexpected number of references for JVMTI_HEAP_REFERENCE_CONSTANT_POOL [111-->111]: 0 (expected at least 1)
Reviewed-by: coleenp, dholmes
2018-09-06 17:45:15 -07:00
Chris Yin
334d64e9a0 8042902: Test java/net/Inet6Address/serialize/Inet6AddressSerializationTest.java fails intermittently
Reviewed-by: chegar
2018-09-07 09:09:31 +08:00
Mikael Vidstedt
0f68e5221f 8210381: Obsolete EmitSync
Reviewed-by: kvn, dcubed, mdoerr, mbaesken, shade
2018-09-06 18:06:24 -07:00
Jonathan Gibbons
84cf73f2a5 8210009: Source Launcher classloader should support getResource and getResourceAsStream
Reviewed-by: mchung, plevart
2018-09-06 16:15:32 -07:00
Ivan Gerasimov
1c9dfca05b 8210285: CharsetDecoder/Encoder's constructor does not reject NaN
Reviewed-by: sherman, smarks, alanb, martin, darcy
2018-09-06 12:10:59 -07:00
Naoto Sato
d1958eeed1 8210142: java.util.Calendar.clone() doesn't respect sharedZone flag
Reviewed-by: rriggs
2018-09-06 10:49:17 -07:00
Calvin Cheung
9d6230fe4e 8185145: AppCDS custom loader support on Mac OS X
Reviewed-by: dholmes, gziemski
2018-09-06 09:30:47 -07:00
Vicente Romero
d0f7d4e374 8210435: don't add local variable spots if they are DCE'ed by the compiler
Reviewed-by: mcimadamore
2018-09-06 05:44:47 -07:00
Maurizio Cimadamore
66288b8c6c 8210318: idea.sh script doesn't work on Mac
Remove usage non-portable sed options

Reviewed-by: erikj, ihse
2018-09-06 13:13:35 +01:00
David Holmes
0d9f615e92 8199874: [TESTBUG] runtime/Thread/ThreadPriorities.java fails with "expected 0 to equal 10"
Reviewed-by: lfoltan, ccheung
2018-09-06 02:01:20 -04:00
Rajan Halade
c201a7f8c9 8210432: Add additional TeliaSonera root certificate
Reviewed-by: mullan
2018-09-05 21:06:01 -07:00
Xue-Lei Andrew Fan
b7fdc4943f 8210334: TLS 1.3 server fails if ClientHello doesn't have pre_shared_key and psk_key_exchange_modes
Reviewed-by: ascarpino, wetmore
2018-09-05 21:01:39 -07:00
Jean Christophe Beyler
d256eb923b 8210198: Clean up JNI_ENV_ARG for vmTestbase/jvmti/Get[A-F] tests
Remove JNI_ENV macros from the Get[A-F] tests

Reviewed-by: sspitsyn, amenkov, cjplummer
2018-09-05 19:40:52 -07:00
Jesper Wilhelmsson
bac1c9b8fb Added tag jdk-12+10 for changeset 8f594f75e054 2018-09-06 02:50:04 +02:00
Jean Christophe Beyler
14e4479ca7 8208352: Merge HeapMonitorTest and HeapMonitorGCTest code
Merged the code that enables sampling and allocates

Reviewed-by: cjplummer, sspitsyn, amenkov
2018-09-05 11:12:15 -07:00
Patricio Chilano Mateo
16b92a561c 8206424: Use locking for cleaning ProtectionDomainTable
ServiceThread is now in charge of cleaning ProtectionDomainTable entries

Reviewed-by: coleenp, iklam
2018-08-31 10:22:04 -04:00
Coleen Phillimore
98242123a3 8207793: [TESTBUG] runtime/Metaspace/FragmentMetaspace.java fails: heap needs to be increased
Reduce test time and allow OOM.

Reviewed-by: iklam, hseigel
2018-08-31 09:10:27 -04:00
Coleen Phillimore
eb9259138f 8210155: Lock ClassLoaderDataGraph
In preparation for concurrent class unloading.

Reviewed-by: hseigel, eosterlund
2018-08-31 07:03:46 -04:00
Hannes Wallnöfer
71479d029a 8176453: Javadoc search: there are issues with generics in parameters
Reviewed-by: jjg, sundar
2018-08-31 12:41:00 +02:00
Doug Simon
c131915d0a 8210066: [JVMCI] iterateFrames uses wrong GrowableArray API for appending
Reviewed-by: dlong, twisti
2018-08-31 11:43:06 +02:00
Magnus Ihse Bursie
8cc7ce2c18 6657100: Rename sparcWorks to solstudio in HotSpot
Reviewed-by: erikj, dcubed
2018-08-31 09:37:03 +02:00
Matthias Baesken
45fb620218 8210205: build fails on AIX in hotspot cpp tests (for example getstacktr001.cpp)
Reviewed-by: mdoerr, stuefe
2018-08-30 13:12:38 +02:00
John Jiang
1f3d71b620 8209362: sun/security/ssl/SSLSocketImpl/ReuseAddr.java failed due to "BindException: Address already in use (Bind failed)"
Refactor this test with SSLSocketTemplate

Reviewed-by: xuelei
2018-08-31 10:32:47 +08:00
Hamlin Li
36f2d56823 8208280: java/nio/channels/Selector/RegisterDuringSelect.java fails with "key not removed from key set"
Reviewed-by: alanb
2018-08-31 10:00:22 +08:00
Chris Plummer
7a55cb8954 8210118: better jdb test diagnostics when getting "Prompt is not received during ... milliseconds" failures
Print pending reply when prompt is not recieved

Reviewed-by: dholmes, gadams, sspitsyn, jcbeyler
2018-08-30 17:59:40 -07:00
Kim Barrett
6a0bb0955e 8209975: Some GCThreadLocalData not initialized
Perform deferred BarrierSet initializations for NonJavaThreads too.

Reviewed-by: eosterlund, pliden
2018-08-30 17:03:46 -04:00
Aleksei Voitylov
26560a934d 8210164: building Minimal VM fails with error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]
Conditionalize compare with serial_phase_count.

Reviewed-by: kbarrett, shade
2018-08-30 16:33:14 -04:00
Kim Barrett
75a8e7d4e2 8210119: Rename SubTasksDone::is_task_claimed
Renamed to try_claim_task and inverted result.

Reviewed-by: coleenp, sjohanss
2018-08-30 16:16:19 -04:00
Brian Burkhalter
67b2c6fc66 8207744: Clean up inconsistent use of opendir/closedir versus opendir64/closedir64
Reviewed-by: bsrbnd, mbaesken, bchristi, simonis
2018-08-30 12:39:26 -07:00
Alex Menkov
091aff1178 8209604: [TEST] rewrite com/sun/jdi shell tests to java version - step2
Reviewed-by: jcbeyler, sspitsyn, cjplummer
2018-08-30 11:53:49 -07:00
Abdul Kolarkunnu
d56ff9a452 8209993: Create a test for SwingSet3 ToolTipDemo
Reviewed-by: serb
2018-08-30 03:01:49 -07:00
Jean Christophe Beyler
b9b522a7ad 8203356: VM Object Allocation Collector can infinite recurse
VM Event callback do not provoke a VM alloc event

Reviewed-by: sspitsyn, phh, amenkov, cjplummer
2018-08-30 09:47:12 -07:00
Ioi Lam
3c135ae705 8210194: [TESTBUG] jvmti_FollowRefObjects.cpp missing initializer for member _jvmtiHeapCallbacks::heap_reference_callback
Reviewed-by: sspitsyn, iignatyev
2018-08-30 08:01:13 -07:00
Harold Seigel
d36066fdad 8210168: JCK test .vm.classfmt.ins.code__002.code__00201m1.code__00201m1 hangs with -noverify
Check for 'bc_length > 0' to handle lengths of -1.

Reviewed-by: coleenp
2018-08-30 09:08:23 -04:00
Lutz Schmidt
af1ce0a659 8209950: SIGBUS in CodeHeapState::print_names()
Reviewed-by: thartmann, kvn
2018-08-30 09:34:10 +02:00
Erik Österlund
05b8f66dff 8210065: ZGC: Remove mode for treating weaks as strong
Reviewed-by: kbarrett, pliden
2018-08-30 09:25:38 +02:00
Matthias Baesken
149be4bad1 8210147: adjust some WSAGetLastError usages in windows network coding
Reviewed-by: clanger, stuefe
2018-08-29 10:11:51 +02:00
Erik Österlund
af545969be 8210063: ZGC: Enable load barriers for IN_NATIVE runtime barriers
Reviewed-by: pliden
2018-08-30 09:12:07 +02:00
Erik Österlund
dd02aad6be 8210061: ZGC: Remove STW weak processor mode
Reviewed-by: pliden, kbarrett
2018-08-30 08:59:23 +02:00
Magnus Ihse Bursie
a75b0f74fa 8210160: Remove deprecated configure arguments
Reviewed-by: erikj
2018-08-30 08:19:13 +02:00
Magnus Ihse Bursie
f6471ab3aa 8210150: Allow custom-hook.m4 to include files from CUSTOM_CONFIG_DIR
Reviewed-by: erikj
2018-08-30 08:15:10 +02:00
Chris Plummer
77921f8a38 8199811: com/sun/jdi/ProcessAttachTest.java fails intermittently: Remote thread failed for unknown reason
Give attach listener thread a chance to finish starting

Reviewed-by: dholmes, gadams
2018-08-29 20:13:53 -07:00
Gary Adams
b984ecc438 8170089: nsk/jdi/EventSet/resume/resume008: ERROR: suspendCounts don't match for : Common-Cleaner
Reviewed-by: cjplummer, sspitsyn
2018-08-28 08:06:59 -04:00
Leo Jiang
0852cfcc52 8210153: localized currency symbol of VES
Reviewed-by: naoto
2018-08-29 19:14:08 -07:00
Jesper Wilhelmsson
ad8e665844 Added tag jdk-12+9 for changeset 31b159f30fb2 2018-08-30 03:49:23 +02:00
Mikael Vidstedt
c41e1d3f3a 8210167: ProblemList vmTestbase/nsk/jvmti/scenarios/allocation/AP10/ap10t001/TestDescription.java
Reviewed-by: coleenp
2018-08-29 13:50:55 -07:00
Mikael Vidstedt
f5e624c0b3 8209856: Obsolete error reporter
Reviewed-by: coleenp, stuefe
2018-08-29 13:04:50 -07:00
Roman Kennke
296002fe50 8180193: Make marking bitmap code available to other GCs
Reviewed-by: shade, stefank
2018-08-29 20:15:09 +02:00
Jesper Wilhelmsson
d40735db17 Merge 2018-08-29 19:48:28 +02:00
Adam Petcher
c3cc65bd08 8201317: X25519/X448 code improvements
Minor code/comment improvements

Reviewed-by: xuelei
2018-08-29 12:00:47 -04:00
Gunter Haug
00eb34a943 8209996: [PPC64] Fix JFR profiling
Reviewed-by: mdoerr, simonis
2018-08-28 14:55:06 +02:00
Patricio Chilano Mateo
ff17347f8f 8209844: MemberNameLeak.java fails when ResolvedMethod entry is not removed
Fixed MemberNameLeak.java due to intermittent failure after 8206423

Reviewed-by: coleenp, lfoltan
2018-08-29 10:46:59 -04:00
Phil Race
d0a60f53ee Merge 2018-08-27 10:54:58 -07:00
Anton Litvinov
41f4dbaae7 8201818: [macosx] Printing attributes break page size set via "java.awt.print.Book" object
Reviewed-by: prr, psadhukhan
2018-08-27 18:29:07 +01:00
Abdul Kolarkunnu
13ce063178 8209789: Synchronize test/jdk/sanity/client/lib/jemmy with code-tools/jemmy/v2
Reviewed-by: serb
2018-08-27 03:46:44 -07:00
Xue-Lei Andrew Fan
8b373393e6 8209965: The "supported_groups" extension in ServerHellos
Reviewed-by: ascarpino
2018-08-27 09:46:24 -07:00
Weijun Wang
882e54cb05 8209995: java.base does not need to export sun.security.ssl to java.security.jgss
Reviewed-by: xuelei, alanb
2018-08-27 23:14:17 +08:00
Bernd Eckenfels
c5299d49f4 8209987: Minor cleanup in Level.java
Reviewed-by: dfuchs
2018-08-27 12:33:03 +01:00
Jini George
b4530e2447 8204308: SA: serviceability/sa/TestInstanceKlassSize*.java fails when running in CDS mode
Use longs instead of ints while computing the identity hash of klass symbols

Reviewed-by: coleenp, lfoltan
2018-08-27 10:25:13 +05:30
Coleen Phillimore
fd9fa38d21 8209821: Make JVMTI GetClassLoaderClasses not walk CLDG
And also added function with KlassClosure to remove the hacks.

Reviewed-by: lfoltan, sspitsyn
2018-08-25 11:10:21 -04:00
Jaikiran Pai
e6c0c9dde7 7033681: Arrays.asList methods needs better documentation
Reviewed-by: smarks
2018-08-25 20:16:43 +05:30
Aleksey Shipilev
51c04f947f 8209911: More blob types in hs_err printout
Reviewed-by: simonis, kvn
2018-08-25 14:23:21 +02:00
Ivan Gerasimov
852e131c61 6474858: CardChannel.transmit(CommandAPDU) throws unexpected ArrayIndexOutOfBoundsException
Reviewed-by: valeriep
2018-08-24 18:56:41 -07:00
Sergey Bylokhov
5cdafcf43e 8039082: [TEST_BUG] Test java/awt/dnd/BadSerializationTest/BadSerializationTest.java fails
Reviewed-by: prr
2018-08-24 16:29:04 -07:00
Sergey Bylokhov
05ed80075a 8209340: The code which avoids synthetic accessors has become outdated
Reviewed-by: psadhukhan, kaddepalli
2018-08-23 23:12:16 -07:00
Ioi Lam
8f87784420 8208658: Make CDS archived heap regions usable even if compressed oop encoding has changed
Move different execution modes to IncompatibleOptions_stringDedup.java and IncompatibleOptions_noCompactStrings.java

Reviewed-by: jiangli, coleenp
2018-08-23 21:16:45 -07:00
Vicente Romero
b2ebbe6460 8209173: javac fails with completion exception while reporting an error
Reviewed-by: mcimadamore
2018-08-24 13:30:56 -07:00
Mikael Vidstedt
83d8bf86a6 8209915: Fix license headers
Reviewed-by: kvn, pliden
2018-08-24 13:23:39 -07:00
Zhengyu Gu
af8a3d61b5 8209841: [REDO] Refactor G1ParallelCleaningTask into shared
Refactored ParallelCleaningTask to share with other GCs

Reviewed-by: tschatzl, shade
2018-08-24 15:49:21 -04:00
Jiangli Zhou
7a51b4a8fa 8208061: runtime/LoadClass/TestResize.java fails with "Load factor too high" when running in CDS mode
Allow resizing for all system dictionaries except for the shared dictionary at runtime.

Reviewed-by: iklam, gziemski
2018-08-24 15:33:28 -04:00
Dean Long
347b95d500 8209825: guarantee(false) failed: wrong number of expression stack elements during deopt
Reviewed-by: kvn, thartmann
2018-08-24 11:56:14 -07:00
Jesper Wilhelmsson
37115c8ea4 Added tag jdk-11+28 for changeset 76072a077ee1 2018-08-22 21:50:12 +02:00
Roland Westrelin
7135605c6f 8209691: Allow MemBar on single memory slice
Reviewed-by: kvn, vlivanov
2018-08-22 10:29:17 +02:00
Maurizio Cimadamore
d91630f948 8209064: Make intellij support more robust after changes for 2018.2
Do not treat build.xml wrapper as a template file

Reviewed-by: erikj, ihse
2018-08-29 11:25:51 +01:00
Jan Kalina
13c1bb691b 8176553: LdapContext follows referrals infinitely ignoring set limit
Reviewed-by: chegar
2018-08-29 14:10:19 +05:30
Jan Lahoda
b3b644438e 8206986: Compiler support for Switch Expressions (Preview)
8207405: Compiler Tree API support for Switch Expressions (Preview)

Support for switch expression, switch with rules and multiple constants for cases.

Reviewed-by: jjg, mcimadamore, vromero
2018-08-29 09:36:17 +02:00
Matthias Baesken
3f4b55c4df 8209994: windows: Java_java_net_NetworkInterface_getAll misses releasing interface-list
Reviewed-by: bpb, chegar, simonis
2018-08-28 09:01:54 +02:00
Leo Jiang
232804b8ab 8208746: ISO 4217 Amendment #168 update
8209775: ISO 4217 Amendment #169 update

Reviewed-by: naoto
2018-08-28 20:05:41 -07:00
Per Lidén
16263ca90c 8210045: Allow using a subset of worker threads even when UseDynamicNumberOfGCThreads is not set
Reviewed-by: eosterlund, kbarrett
2018-08-29 08:00:00 +02:00
Jean Christophe Beyler
3de7598a3f 8210035: Fix copyrights for files created for the HeapMonitor work
Added the Oracle copyright to newly created files

Reviewed-by: sspitsyn, cjplummer
2018-08-28 21:25:37 -07:00
Ioi Lam
6c65a9f193 8210040: TestOptionsWithRanges.java is very slow
Added -Xmx1024m -XX:-ZapUnusedHeapArea; split into 10 smaller tests

Reviewed-by: kvn, coleenp
2018-08-28 16:01:12 -07:00
Ioi Lam
4c58f6768a 8210043: Invalid assert(HeapBaseMinAddress > 0) in ReservedHeapSpace::initialize_compressed_heap
Removed the assert

Reviewed-by: ccheung, jiangli
2018-08-28 16:01:01 -07:00
Calvin Cheung
f7bbf4f43c 8209743: [TESTBUG] java/lang/management/MemoryMXBean/LowMemoryTest2.sh fails with OutOfMemoryError running in CDS mode
Increase the MaxMetaspaceSize from 16m to 32m

Reviewed-by: jiangli, iklam, mchung
2018-08-28 16:18:58 -07:00
Coleen Phillimore
8324ab4661 Merge 2018-08-28 18:31:14 -04:00
Christian Thalinger
30a16dc69c 8210008: custom extension for make/SourceRevision.gmk
Reviewed-by: erikj
2018-08-28 15:17:52 -07:00
Coleen Phillimore
3559b6be76 8209958: Clean up duplicate basic array type statics in Universe
Reviewed-by: lfoltan, zgu
2018-08-28 18:17:01 -04:00
Coleen Phillimore
cea6e54978 8210088: ProblemList gc/epsilon/TestMemoryMXBeans.java
Reviewed-by: kbarrett, jiangli
2018-08-28 18:03:33 -04:00
Igor Ignatyev
8c47dc4a94 8209611: use C++ compiler for hotspot tests
Reviewed-by: vlivanov, ihse, erikj, jcbeyler
2018-08-28 14:37:34 -07:00
Igor Ignatyev
86c476b5e5 8210108: sun/tools/jstatd test build failures after JDK-8210022
Reviewed-by: cjplummer, jcbeyler, mikael
2018-08-28 14:33:18 -07:00
Gary Adams
fc61b1abfb 8019927: [TESTBUG] nsk/jvmti/GetThreadInfo/thrinfo001 intermittently fails with 'invalid thread group' when running with JFR
Reviewed-by: amenkov, cjplummer, sspitsyn
2018-08-28 07:30:36 -04:00
Kim Barrett
e1059f1301 8209976: Improve iteration over non-JavaThreads
Add NonJavaThread and move NamedThread iteration to new class.

Reviewed-by: eosterlund, coleenp, rkennke
2018-08-28 16:04:54 -04:00
Jiangli Zhou
1ddabdf0dc 8209534: [TESTBUG]runtime/appcds/cacheObject/ArchivedModuleCompareTest.java fails with EnableJVMCI
Use TestCommon.execOff().

Reviewed-by: ccheung
2018-08-28 14:45:34 -04:00
Kim Barrett
1b02e70184 8072498: Multi-thread JNI weak reference processing
Add parallel processing support to WeakProcessor.

Reviewed-by: tschatzl, sjohanss
2018-08-28 12:57:40 -04:00
Jean Christophe Beyler
49b859b9d3 8201224: Make string buffer size dynamic in mlvmJvmtiUtils.c
Calculate the string size for the buffer first

Reviewed-by: amenkov, sspitsyn, iklam
2018-08-22 09:33:18 -07:00
Goetz Lindenmaier
51f697962c 8209939: [testbug][ppc] Test SafepointPollingPages fails after 8208499 with UseSIGTRAP on
Reviewed-by: mdoerr, ghaug
2018-08-28 17:03:16 +02:00
Harold Seigel
eb51968f00 8202578: Revisit location for class unload events
Use notify_unload_class() to post JFR class unload events instead of doing a separate traversal of the class loader data graph

Reviewed-by: lfoltan, coleenp, mgronlun, egahlin
2018-08-28 10:10:11 -04:00
Per Lidén
12c27777c8 8209894: ZGC: Cap number of GC workers based on heap size
Reviewed-by: ehelin, tschatzl
2018-08-28 09:06:23 +02:00
Igor Ignatyev
370abe471f 8210022: remove jdk.testlibrary.ProcessThread, TestThread and XRun
Reviewed-by: sspitsyn, jcbeyler
2018-08-27 21:50:52 -07:00
Igor Ignatyev
56ee0fccb3 8186548: move jdk.testlibrary.JcmdBase closer to tests
Reviewed-by: cjplummer, amenkov
2018-08-27 17:01:15 -07:00
Alex Menkov
1e6c19b381 8203393: com/sun/jdi/JdbMethodExitTest.sh and JdbExprTest.sh fail due to timeout
Reviewed-by: sspitsyn, cjplummer
2018-08-27 16:45:18 -07:00
Abdul Kolarkunnu
d739f1d6de 8209494: Create a test for SwingSet InternalFrameDemo
Reviewed-by: serb
2018-08-27 03:48:41 -07:00
Zhengyu Gu
083110efa9 8209852: Counters in StringCleaningTask should be type of size_t
Converted counters to size_t type to avoid casting

Reviewed-by: coleenp
2018-08-27 17:20:29 -04:00
Leonid Mesnik
f71d1cb124 8209920: runtime/logging/RedefineClasses.java fail with OOME with ZGC
Reviewed-by: pliden
2018-08-27 12:45:31 -07:00
Jonathan Gibbons
da75f3c4ad 8209806: API docs should be updated to refer to javase11
Reviewed-by: darcy, iris, tbell, lancea
2018-08-21 12:48:10 -07:00
Bradford Wetmore
5b511a4a78 8207317: SSLEngine negotiation fail exception behavior changed from fail-fast to fail-lazy
Reviewed-by: xuelei
2018-08-21 11:30:48 -07:00
Ge Guo
538ba1fb5c 8207838: AArch64: Float registers incorrectly restored in JNI call
Fix the order in which float registers are restored in restore_args for aarch64

Reviewed-by: aph
2018-08-21 13:44:59 +01:00
Tobias Hartmann
aef7c93375 8209670: CompilerThread releasing code buffer in destructor is unsafe
Don't free temporary code buffers in compiler thread destructor to avoid interference with safepoint code.

Reviewed-by: kvn, dholmes, zgu
2018-08-21 17:47:59 +02:00
Volker Simonis
ea4f2f60d5 8209637: [s390x] Interpreter doesn't call result handler after native calls
Reviewed-by: goetz, lucy
2018-08-21 09:25:06 +02:00
Vladimir Kozlov
789b608995 8209735: Disable avx512 by default
Reviewed-by: iveresov, ecaspole
2018-08-20 15:10:20 -07:00
Mikael Vidstedt
1da79cddad Added tag jdk-11+27 for changeset 9d7d74c6f2cb 2018-08-17 09:51:28 -07:00
Roland Westrelin
423c207dc7 8209639: assert failure in coalesce.cpp: attempted to spill a non-spillable item
Reviewed-by: neliasso, kvn
2018-08-17 17:13:12 +02:00
Gerard Ziemski
e0559bdd88 8209622: applications/kitchensink/Kitchensink.java failed with Kitchensink failed with exit code = 138
SymbolTableLock no longer checks for safepoints

Reviewed-by: coleenp, rehn
2018-08-24 09:12:51 -05:00
Gunter Haug
e2081b42b5 8208480: Test failure: assert(is_bound() || is_unused()) after JDK-8206075 in C1
Reviewed-by: kvn, phh, lucy
2018-08-20 12:08:07 +02:00
Gilles Duboscq
44a83147db 8209136: [JVMCI] Make sure volatile fields are read as volatile during constant reflection
Reviewed-by: kvn
2018-08-17 12:19:52 +02:00
Vicente Romero
2589e9733e 8211148: var in implicit lambdas shouldn't be accepted for source < 11
Reviewed-by: mcimadamore
2018-10-04 08:37:08 -07:00
Mandy Chung
73a6313038 8181443: Replace usages of jdk.internal.misc.Unsafe with MethodHandles.Lookup.defineClass
Reviewed-by: alanb, egahlin
2018-10-04 08:45:21 -07:00
Martin Doerr
4af2374271 8210754: print_location is not reliable enough (printing register info)
Reviewed-by: stuefe, coleenp
2018-10-04 16:39:07 +02:00
Robbin Ehn
dcfb9a75aa 8210303: VM_HandshakeAllThreads fails assert with "failed: blocked and not walkable"
Reviewed-by: dcubed, dholmes
2018-10-04 14:03:13 +02:00
Pallavi Sonal
f5d19b9109 8166138: DateTimeFormatter.ISO_INSTANT should handle offsets
Reviewed-by: rriggs, scolebourne, naoto
2018-10-04 17:25:51 +05:30
Jesper Wilhelmsson
ea3fb3979c Added tag jdk-12+14 for changeset 6f04692c7d51 2018-10-04 10:35:59 +02:00
Dmitry Markov
ca5903367f 8205479: OS X: requestFocus() does not work properly for embedded frame
Reviewed-by: serb, aivanov
2018-08-17 09:31:13 +01:00
Dmitry Markov
299f32d852 8130655: OS X: keyboard input in textfield is not possible if the window contained textfield is owned by EmbeddedFrame
Reviewed-by: serb, aivanov
2018-08-16 19:20:20 +01:00
Michael McMahon
42de356cbd 8207966: HttpClient response without content-length does not return body
Reviewed-by: chegar
2018-08-16 10:22:48 +01:00
Prasanta Sadhukhan
bb9fed1008 8202702: Clearing selection on JTable causes disappearance of a row
Reviewed-by: serb
2018-08-16 11:15:22 +05:30
John Jiang
eae535f70e 8209537: Two security tests failed after JDK-8164639 due to dependency was missed
Skip sun/security/tools/keytool/autotest.sh on macosx and add /test/lib to sun/security/ec/TestEC.java

Reviewed-by: rhalade
2018-08-16 02:00:31 +08:00
John Jiang
c70c37db8a 8164639: Configure PKCS11 tests to use user-supplied NSS libraries
Provide system property "test.nss.lib.paths" for specifying a set of absolute paths to the custom NSS lib directories

Reviewed-by: weijun, rhalade
2018-08-15 18:41:18 +08:00
Vivek Deshpande
4248ac828c 8207746: C2: Lucene crashes on AVX512 instruction
Replace add/sub instructions which affect flags with lea instruction.

Reviewed-by: kvn, thartmann
2018-08-15 00:48:12 -07:00
Rajan Halade
02a3769cfa 8206176: Remove the temporary tls13VN field
Reviewed-by: xuelei, wetmore
2018-08-14 17:21:44 -07:00
Jerry Zhou
2896ec27e1 8209451: Please change jdk 11 milestone to FCS
Reviewed-by: prr, tbell
2018-08-14 16:36:17 -07:00
Xue-Lei Andrew Fan
66e8f27bd8 8207009: TLS 1.3 half-close and synchronization issues
Reviewed-by: jnimeh, mullan, wetmore
2018-08-14 16:47:56 -07:00
Rajan Halade
a83af4505e 8209506: Add Google Trust Services GlobalSign root certificates
Reviewed-by: mullan
2018-08-14 14:46:13 -07:00
Krishna Addepalli
791c31358f 8208640: [a11y] [macos] Unable to navigate between Radiobuttons in Radio group using keyboard
Reviewed-by: prr, serb, psadhukhan, ssadetsky
2018-08-14 12:50:39 -07:00
Phil Race
7000581e0b Merge 2018-08-14 12:11:28 -07:00
Kim Barrett
773906998a 8209347: SATBMarkQueue.cpp should not need jvm.h
Use os::snprintf instead of jio_snprintf.

Reviewed-by: shade, tschatzl
2018-08-14 14:58:14 -04:00
Alex Menkov
5b6a90e007 8209109: [TEST] rewrite com/sun/jdi shell tests to java version - step1
Reviewed-by: sspitsyn, jcbeyler
2018-08-14 11:56:32 -07:00
Kim Barrett
8f31a55f91 8209346: Refactor SATBMarkQueue filter configuration
Moved reference to G1-specific option to G1CollectedHeap.

Reviewed-by: shade, rkennke
2018-08-14 13:16:26 -04:00
Rajan Halade
bfb0a2ea3f 8209452: VerifyCACerts.java failed with "At least one cacert test failed"
Allow test to pass even if cert in EXPIRY_EXC_ENTRIES expires

Reviewed-by: mullan
2018-08-14 10:08:21 -07:00
Rajan Halade
732e3f5416 8209452: VerifyCACerts.java failed with "At least one cacert test failed"
Allow test to pass even if cert in EXPIRY_EXC_ENTRIES expires

Reviewed-by: mullan
2018-08-14 09:38:29 -07:00
Rachna Goel
afa5d318d3 8206965: java/util/TimeZone/Bug8149452.java failed on de_DE and ja_JP locale
Generated display names for missing timezones at run time.

Reviewed-by: naoto
2018-08-14 11:55:21 +05:30
Abdul Kolarkunnu
c283eb190e 8209418: Synchronize test/jdk/sanity/client/lib/jemmy with code-tools/jemmy/v2
Co-authored-by: Alexandre Iline <alexandre.iline@oracle.com>
Reviewed-by: serb
2018-08-13 21:57:17 -07:00
Weijun Wang
33a96c6df9 8209416: Refactoring GetPropertyAction calls in security libs
Reviewed-by: xuelei, rriggs
2018-08-14 22:39:34 +08:00
Lutz Schmidt
815cdefb43 8209433: [s390] Fix build, broken by 8208672 (Enable -Wreorder)
Reviewed-by: tschatzl, shade
2018-08-14 14:28:23 +02:00
Igor Ignatyev
d5142e7240 8205687: TimeoutHandler generates huge core files
Use kill instead of gcore to generate core file

Reviewed-by: dholmes
2018-08-13 13:44:45 -07:00
Jean Christophe Beyler
5fc4ca5c45 8061467: Add UseLargePages to TestNUMAPageSize
Add flag to test for all architectures to be tested

Reviewed-by: phh, pliden, tschatzl
2018-08-13 09:19:21 -07:00
Per Lidén
a51aeedca0 8209376: ZGC: Move ZMarkStackAllocator into a separate file
Reviewed-by: eosterlund, kbarrett
2018-08-13 14:04:43 +02:00
Per Lidén
f50c8dddfa 8209375: ZGC: Use dynamic base address for mark stack space
Reviewed-by: eosterlund, kbarrett
2018-08-13 14:04:42 +02:00
Kim Barrett
924bba584d 8209345: Merge SATBMarkQueueFilter into SATBMarkQueueSet
Move filter extension protocol to SATBMarkQueueSet.

Reviewed-by: shade, tschatzl, rkennke
2018-08-14 00:15:56 -04:00
Felix Yang
b5f939c5db 8194230: jdk/internal/jrtfs/remote/RemoteRuntimeImageTest.java fails with java.lang.NullPointerException
Reviewed-by: mchung
2018-08-14 10:42:00 +08:00
Igor Ignatyev
4bcd4f04a2 8209382: [error-prone] HashtableContains in sun/rmi/server/ActivationGroupImpl.java
Reviewed-by: rriggs
2018-08-13 17:39:27 -07:00
Kim Barrett
a007690fa0 8209396: Make PtrQueueSets not statically allocated
Change the G1BarrierSet PtrQueueSet static members to ordinary members.

Reviewed-by: shade, tschatzl, rkennke
2018-08-13 18:21:26 -04:00
Vladimir Kozlov
4729c903c6 8207153: Some intrinsic tests take long time to run
Reviewed-by: thartmann, mikael
2018-08-13 13:24:55 -07:00
Claes Redestad
5c3008fbc4 8209120: Archive the Integer.IntegerCache
Reviewed-by: jiangli, alanb, plevart, iklam, mchung
2018-08-13 19:21:43 +02:00
Igor Ignatyev
be5de9ef3b 8209386: [error-prone] StreamResourceLeak in jdk.internal.ed module
Reviewed-by: rriggs
2018-08-10 13:36:10 -07:00
Dean Long
e51b1f0cf6 8187078: -XX:+VerifyOops finds numerous problems when running JPRT
Reviewed-by: kvn
2018-09-05 13:10:40 -07:00
Alex Menkov
cbac17e494 8210243: [TEST] rewrite com/sun/jdi shell tests to java version - step3
Reviewed-by: jcbeyler, cjplummer, sspitsyn
2018-09-05 10:39:16 -07:00
Jean Christophe Beyler
bd5f1aba05 8208186: SetHeapSamplingInterval handles 1 explicitly
Explicitly test for the 0 case (sample everything)

Reviewed-by: amenkov, sspitsyn
2018-09-05 10:17:11 -07:00
Matthias Baesken
8044814e30 8209115: adjust libsplashscreen linux ppc64le builds for easier libpng update
Reviewed-by: prr, dholmes
2018-08-10 09:16:10 +02:00
Ekaterina Pavlova
582c0dafb8 8199486: [Graal] gc/g1/ihop/TestIHOPStatic.java fails by timeout with -Xcomp
Reviewed-by: kvn
2018-08-13 04:02:51 -07:00
Thomas Schatzl
7aabcdee63 8200365: TestOptionsWithRanges.java of '-XX:TLABWasteTargetPercent=100' fails intermittently
For initial TLAB sizing, increase the number of expected refills to 2.

Reviewed-by: phh, sangheki
2018-08-13 12:24:25 +02:00
Thomas Schatzl
044b502383 8205633: TestOptionsWithRanges.java of '-XX:TLABSize=2147483648' fails intermittently
Exclude maximum range value from testing.

Reviewed-by: sangheki, kbarrett
2018-08-13 12:24:25 +02:00
Thomas Schatzl
a9508324e2 8209193: Fix aarch64-linux compilation after -Wreorder changes
Reviewed-by: shade, drwhite
2018-08-13 12:24:25 +02:00
Gunter Haug
93c176ef2e 8209357: [PPC64] Fix build which was broken by 8208672 (Enable -Wreorder)
Reviewed-by: mbaesken, tschatzl
2018-08-13 12:24:25 +02:00
Aleksei Voitylov
1712e272cd 8209380: ARM: cleanup maybe-uninitialized and reorder compiler warnings
Reviewed-by: dholmes, drwhite, tschatzl
2018-08-13 12:24:25 +02:00
Aleksei Voitylov
abb7f64829 8209378: Fix Minimal VM after JDK-8208677
Reviewed-by: coleenp, shade
2018-08-13 10:28:01 +02:00
Coleen Phillimore
d1aea148fe 8207924: serviceability/sa/TestUniverse.java#id0 intermittently fails with assert(get_instanceKlass()->is_loaded()) failed: must be at least loaded
InstanceKlass::implementors() needs the Compile_lock

Reviewed-by: thartmann, eosterlund
2018-08-11 12:49:33 -04:00
Coleen Phillimore
5a80204c23 8209384: ProblemList stressHierarchy metaspace tests
These try to trigger GC by filling metaspace which seems to be not working.

Reviewed-by: jiangli
2018-08-10 22:38:18 -04:00
Brent Christian
51d0a9e122 8205399: Set node color on pinned HashMap.TreeNode deletion
Reviewed-by: martin
2018-08-10 12:05:53 -07:00
Coleen Phillimore
647c7d5344 8164683: Solaris: JVM abuses thread preemption control
Complete removal of preemption control and command line arguments (were deprecated in 11).

Reviewed-by: hseigel, pchilanomate, dholmes
2018-08-10 09:36:01 -04:00
Harold Seigel
83b2fb5b0d 8207778: Add locking to ModuleEntry and PackageEntry tables
Restructure ClassLoaderDataGraph code to simplify using locks in SystemDictionary::do_unloading()

Reviewed-by: lfoltan, coleenp
2018-08-10 09:30:26 -04:00
Boris Ulasevich
092e9e4f81 8206895: aarch64: rework error-prone cmp instuction
Reviewed-by: aph
2018-08-10 14:22:49 +03:00
Weijun Wang
ea95e1ef2e 8201290: keytool importcert fails with CertificateParsingException if unknown certificate algorithms should be imported
Reviewed-by: mullan, xuelei
2018-08-10 17:07:44 +08:00
Prasanta Sadhukhan
f803931f2c 8209343: Test javax/swing/border/TestTitledBorderLeak.java should be marked as headful
Reviewed-by: jdv
2018-08-10 12:36:21 +05:30
Chris Yin
4e2b462116 8208483: Add 5 JNDI tests to com/sun/jndi/dns/FactoryTests/
Reviewed-by: vtewari, rriggs
2018-08-10 13:07:21 +08:00
Jiangli Zhou
a5d14313f5 8207263: Store the Configuration for system modules into CDS archive
Archive boot layer Configuration.

Reviewed-by: redestad, iklam, ccheung
2018-08-10 00:35:57 -04:00
Calvin Cheung
5858a507f4 8208705: [TESTBUG] The -Xlog:cds,cds+hashtables vm option is not always required for appcds tests
Only include the CDS logging option in the tests which require it

Reviewed-by: mseledtsov, jiangli, iklam
2018-08-09 15:52:23 -07:00
Claes Redestad
2c5b52f061 8209186: Rename SimpleThresholdPolicy to TieredThresholdPolicy
Reviewed-by: thartmann, pliden, kvn
2018-08-10 00:20:15 +02:00
Roman Kennke
59ca28bf1c 8209118: Abstract SATBMarkQueueSet's ThreadLocalData access
Reviewed-by: kbarrett, shade
2018-08-09 22:51:48 +02:00
Ekaterina Pavlova
b037ff24a8 8205078: [Graal] org.graalvm.compiler.core.test.VerifyDebugUsageTest fails with "Expected exception: VerificationError"
Reviewed-by: kvn, dnsimon
2018-08-09 11:39:18 -07:00
Ekaterina Pavlova
ca477652c2 8194949: [Graal] gc/TestNUMAPageSize.java fail with OOM in -Xcomp
Reviewed-by: kvn, tschatzl
2018-08-09 11:33:47 -07:00
Manajit Halder
7a9b62f2d4 8208125: Cannot input text into JOptionPane Text Input Dialog
Reviewed-by: prr, psadhukhan
2018-08-09 22:47:18 +05:30
Mikael Vidstedt
83a51d869e Merge 2018-08-09 10:08:07 -07:00
Mikael Vidstedt
e146d6cdce Added tag jdk-11+26 for changeset 945ba9278a27 2018-08-09 07:58:25 -07:00
Chris Hegarty
166030817f 8208391: Differentiate response and connect timeouts in HTTP Client API
Reviewed-by: michaelm
2018-08-09 11:23:12 +01:00
Prasanta Sadhukhan
a70162e775 8204963: javax.swing.border.TitledBorder has a memory leak
Reviewed-by: serb, kaddepalli
2018-08-09 11:01:59 +05:30
Ichiroh Takiguchi
ff148ce175 8208996: X11 icon window color handing bug
Reviewed-by: serb
2018-08-08 18:31:24 -07:00
Sergey Bylokhov
e850549b71 8189667: Desktop#moveToTrash expects incorrect "<<ALL FILES>>" FilePermission
Reviewed-by: prr, sveerabhadra
2018-08-08 15:51:08 -07:00
Daniel D. Daugherty
1543db08da 8209149: [TESTBUG] runtime/RedefineTests/RedefineRunningMethods.java needs a longer timeout
Reviewed-by: coleenp
2018-08-08 15:11:11 -04:00
Yang Zhang
286115581e 8209011: [TESTBUG] AArch64: sun/security/pkcs11/Secmod/TestNssDbSqlite.java fails in aarch64 platforms
Add the path of libnss3.so for aarch64 platform.

Reviewed-by: weijun
2018-08-08 13:45:41 +08:00
Weijun Wang
61d19ee892 8208754: The fix for JDK-8194534 needs updates
Reviewed-by: alanb, igerasim, rhalade, mullan
2018-08-08 08:05:43 +08:00
Robin Westberg
961156b1d5 8208676: Missing NULL check and resource leak in NetworkPerformanceInterface::NetworkPerformance::network_utilization
Reviewed-by: mgronlun, rehn
2018-08-06 14:56:56 +02:00
Leo Jiang
2f1aae720b 8208663: JDK 11 L10n resource file update msg drop 20
Reviewed-by: naoto
2018-08-07 00:06:52 -07:00
Iris Clark
4ebf1cdc53 8201394: Update java.se module summary to reflect removal of java.se.ee module
Reviewed-by: alanb, lancea, mchung
2018-08-07 17:40:11 -07:00
Staffan Larsen
b806cb371e 8031761: [TESTBUG] Add a regression test for JDK-8026328
Reviewed-by: kvn, iignatyev
2018-08-07 13:51:30 -07:00
Sean Mullan
ac3d4a6722 8208691: Tighten up jdk.includeInExceptions security property
Add stronger warning on usage and add test to check that property is not set

Reviewed-by: alanb, rriggs
2018-08-07 10:29:01 -04:00
David Buck
0919d6d626 8204966: [TESTBUG] hotspot/test/compiler/whitebox/IsMethodCompilableTest.java test fails with -XX:CompileThreshold=1
Enforce lower bound on number of loop iterations used to trigger OSR

Reviewed-by: kvn, iignatyev
2018-08-06 22:30:37 -04:00
Daniel D. Daugherty
03c595997c 8209029: ProblemList tests that fail due to 'Error attaching to process: Can't create thread_db agent!' in jdk-11+25 testing
Reviewed-by: dholmes, sspitsyn
2018-08-06 20:44:14 -04:00
Sibabrata Sahoo
e64ad29e8a 8208496: New Test to verify concurrent behavior of TLS
Verify TLS behavior with multiple threads accessing concurrently.

Reviewed-by: xuelei
2018-08-06 00:46:40 -07:00
Tobias Hartmann
6dac70d919 8207355: C1 compilation hangs in ComputeLinearScanOrder::compute_dominator
Bail out from recursive computation if the block was already processed.

Reviewed-by: kvn, iveresov
2018-08-06 09:09:57 +02:00
Igor Ignatyev
b863c0efab 8199081: [Testbug] compiler/linkage/LinkageErrors.java fails if run twice
Reviewed-by: kvn, vlivanov
2018-08-03 15:39:28 -07:00
Phil Race
ec68569fed Merge 2018-08-03 12:52:58 -07:00
Brian Burkhalter
b924bf7233 8186766: UnixNativeDispatcher::readlink() may truncate overlong paths
Reviewed-by: alanb
2018-08-03 12:45:18 -07:00
Phil Race
32ec91ca9b Merge 2018-08-03 09:42:57 -07:00
Sean Coffey
7a791910c3 8208583: Better management of internal KeyStore buffers
Reviewed-by: weijun
2018-08-03 14:14:59 +01:00
Zhengyu Gu
4555c28590 8205921: Optimizing best-of-2 work stealing queue selection
Bias towards stealing from queues that we recently successfully stole from to decrease the number of unsuccessful steal attempts.

Co-authored-by: Thomas Schatzl <thomas.schatzl@oracle.com>
Reviewed-by: eosterlund, kbarrett
2018-08-03 11:06:10 +02:00
Sean Coffey
c4faf01f86 8207775: Better management of CipherCore buffers
Reviewed-by: ascarpino
2018-08-03 09:57:10 +01:00
Daniel D. Daugherty
2ce4abbcc8 8208706: compiler/tiered/ConstantGettersTransitionsTest.java fails to compile
Reviewed-by: dholmes
2018-08-02 22:14:54 -04:00
Igor Ignatyev
b3e18b4a1b 8208701: Fix for JDK-8208655 causes test failures in CI tier1
Reviewed-by: dholmes, dcubed
2018-08-02 16:16:02 -07:00
Igor Ignatyev
940ac1cddc 8208699: remove unneeded imports from runtime tests
Reviewed-by: iklam
2018-08-02 16:15:48 -07:00
Igor Ignatyev
17891770c1 8208655: use JTreg skipped status in hotspot tests
Reviewed-by: kvn, hseigel, iklam
2018-08-02 14:40:55 -07:00
Phil Race
43e1256928 Added tag jdk-12+5 for changeset f8696e0ab9b7 2018-08-02 09:27:40 -07:00
Phil Race
4635b34d7e Added tag jdk-11+25 for changeset 331888ea4a78 2018-08-02 09:26:40 -07:00
Zhengyu Gu
23db5cd8a0 8208635: Minimal VM build is broken after JDK-8199868 (Support JNI critical functions in object pinning API)
Added missing header file

Reviewed-by: shade, gziemski
2018-08-02 11:13:00 -04:00
Markus Grönlund
e8dd517464 8207139: NMT is not enabled on Windows 2016/10
Reviewed-by: dcubed, zgu, dholmes
2018-08-02 09:49:04 +02:00
Prasanta Sadhukhan
5403b9e228 8203904: javax/swing/JSplitPane/4816114/bug4816114.java: The divider location is wrong
Reviewed-by: serb, kaddepalli
2018-08-01 11:02:19 +05:30
Phil Race
b6532bdf48 8204931: Colors with alpha are painted incorrectly on Linux
Reviewed-by: jdv, psadhukhan
2018-07-31 14:04:29 -07:00
Phil Race
542197c8ab 8208353: Upgrade JDK 11 to libpng 1.6.35
Reviewed-by: jdv, kaddepalli
2018-07-31 14:03:39 -07:00
Phil Race
06932ae37c 8208466: Fix potential memory leak in harfbuzz shaping
Reviewed-by: jdv, kaddepalli
2018-07-31 12:23:55 -07:00
Dmitry Samersoff
c57cfe6d14 8207046: arm32 vm crash: C1 arm32 platform functions parameters type mismatch
Fixed unexpected parameter location in arm32 LIR_Assembler

Reviewed-by: dsamersoff, kvn
2018-07-31 21:23:56 +03:00
Jean Christophe Beyler
3d94ce71b5 8208249: TriggerUnloadingByFillingMetaspace generates garbage class names
Put a ThreadLocal around the object to be thread safe

Reviewed-by: tschatzl, iignatyev
2018-07-31 10:16:56 -07:00
Jean Christophe Beyler
fc9941ae72 8169004: Fix redundant @requires tags in tests
Reviewed-by: tschatzl, iignatyev
2018-07-31 12:24:47 -07:00
Jean Christophe Beyler
ec76c2046c 8069343: Improve gc/g1/TestHumongousCodeCacheRoots.java to use jtreg @requires
Remove client test entirely and clean up test

Reviewed-by: tschatzl, iignatyev
2018-08-01 09:23:24 -07:00
Jean Christophe Beyler
b184fceaa0 8208246: flags duplications in vmTestbase_vm_g1classunloading tests
Remove duplicate flags for the classunloading tests

Reviewed-by: tschatzl, iignatyev
2018-07-31 10:20:10 -07:00
Igor Ignatyev
d2dd5c4473 8208647: switch jtreg to 4.2b13
Reviewed-by: kvn, dholmes, ihse
2018-08-01 23:06:33 -07:00
Mikhailo Seledtsov
8a5467b9c2 8185531: [TESTBUG] Improve test configuration for shared strings
Added extra test configurations to the tests

Reviewed-by: iklam, gziemski
2018-08-01 19:07:27 -07:00
Kim Barrett
501fc494c0 8208611: Refactor SATBMarkQueue filtering to allow GC-specific filters
Add SATBMarkQueueFilter.

Reviewed-by: tschatzl, eosterlund, rkennke
2018-08-01 19:14:04 -04:00
Igor Ignatyev
65091f8c6d 8174691: [TESTBUG] A number of native hotspot unit tests fail when executed in stand-alone mode
Reviewed-by: kvn, tschatzl
2018-08-01 10:04:08 -07:00
Naoto Sato
4ab515f85c 8208080: Locale extensions via Service provider is not working for region extensions
Reviewed-by: rriggs, nishjain
2018-08-01 09:33:56 -07:00
Nishit Jain
b2a6aa3e80 8208560: ChoiceFormat class has unused constants needs cleanup
Reviewed-by: rriggs, naoto
2018-08-01 18:02:25 +05:30
Priya Lakshmi Muthuswamy
24fe001ecb 8208484: color contrast issues in a couple of spec files
Reviewed-by: jjg, ihse
2018-08-01 12:36:02 +05:30
David Buck
36b45330b8 8191006: hsdis disassembler plugin does not compile with binutils 2.29+
Update call to disassembler() function to match new signature used by Binutils

Reviewed-by: gromero, kvn
2018-08-01 02:21:02 -04:00
Weijun Wang
b9bfd45c73 8208602: Cannot read PEM X.509 cert if there is whitespace after the header or footer
Reviewed-by: xuelei
2018-08-01 13:35:08 +08:00
David Buck
d4381002ac 8208541: non-ASCII characters in hsdis UPL text
Replace Unicode left/right double quote pair with normal ASCII double quotes

Reviewed-by: jrose
2018-08-01 01:40:44 -04:00
Daniel D. Daugherty
e7114f64f3 8208605: Fix for 8199868 breaks tier1 build
Move variable declarations to make studio compiler happy.

Reviewed-by: kbarrett
2018-07-31 17:07:43 -04:00
Coleen Phillimore
16f9e07ba1 8208074: [TESTBUG] vmTestbase/nsk/jvmti/RedefineClasses/StressRedefineWithoutBytecodeCorruption/TestDescription.java failed with NullPointerException
Fixed refactoring caused by JDK-8203820

Reviewed-by: dholmes, sspitsyn, cjplummer
2018-07-31 15:57:52 -04:00
Harold Seigel
38db1d1620 8202171: Some oopDesc functions compare this with NULL
Add Method* parameter and made verify* methods static to avoid 'this' comparison with NULL, Added NULL checks before calling print_on() methods.

Reviewed-by: kbarrett, coleenp
2018-07-31 14:24:10 -04:00
Zhengyu Gu
b71f3e7104 8199868: Support JNI critical functions in object pinning API
Pin/unpin incoming array arguments of critical native JNI call

Reviewed-by: shade, adinn
2018-07-31 13:12:06 -04:00
Ekaterina Pavlova
e4521331a8 8208347: ProblemList compiler/cpuflags/TestAESIntrinsicsOnSupportedConfig.java
Reviewed-by: kvn
2018-07-31 09:48:25 -07:00
Maurizio Cimadamore
9d25c65fda 8208524: IntelliJ support broken since 2018.2
Move build.xml out of .idea folder

Reviewed-by: stuefe
2018-07-31 16:49:51 +01:00
Harold Seigel
7d04a31fc8 8208399: Metadata methods print_(value_)on_maybe_null() compare 'this' to NULL
Add Method* parameter and make method static to avoid 'this' comparison with NULL

Reviewed-by: lfoltan, gziemski, coleenp
2018-07-31 09:55:09 -04:00
Zhengyu Gu
c9d506055c 8208499: NMT: Missing memory tag for Safepoint polling page
Added missing memory tag and cleanup memory type enum

Reviewed-by: shade, coleenp
2018-07-31 07:35:16 -04:00
Harold Seigel
c277f9ed8e 8207779: Method::is_valid_method() compares 'this' with NULL
Add Method* parameter and make method static to avoid 'thi's comparison with NULL

Reviewed-by: lfoltan, coleenp
2018-07-30 16:35:54 -04:00
Daniel D. Daugherty
30d46ba27b 8208521: ProblemList more tests that fail due to 'Error attaching to process: Can't create thread_db agent!'
Reviewed-by: cjplummer
2018-07-30 14:22:36 -04:00
Michal Vala
d86f3a8cb2 8208084: Windows build failure - "'snprintf': identifier not found"
Reviewed-by: kbarrett, coleenp
2018-07-30 14:08:30 -04:00
Daniel D. Daugherty
10592b0d36 8208521: ProblemList more tests that fail due to 'Error attaching to process: Can't create thread_db agent!'
Reviewed-by: cjplummer
2018-07-30 14:22:36 -04:00
Adam Petcher
1c4396ebae 8208209: Improve TLS connection stability again
Reviewed-by: xuelei
2018-07-30 13:53:30 -04:00
Priya Lakshmi Muthuswamy
38f91617c5 8203791: Remove "compatibility" features from Table.java
Reviewed-by: jjg
2018-07-30 11:52:05 +05:30
Chris Yin
73477220be 8208363: test/jdk/java/lang/Package/PackageFromManifest.java missing module dependencies declaration
Reviewed-by: lancea, mchung
2018-07-30 09:06:14 +08:00
Patricio Chilano Mateo
2d1029c256 8171157: Convert ObjectMonitor_test to GTest
Migration of the ObjectMonitor test to GTest. Two GTests were actually created, one for ObjectMonitor and one for ObjectSynchronizer.

Reviewed-by: dcubed, hseigel
2018-07-27 16:29:36 -04:00
Nishit Jain
c1bbdfaa2c 8021322: [Fmt-Ch] Implementation of ChoiceFormat math methods should delegate to java.lang.Math methods
Reviewed-by: naoto, darcy
2018-07-27 14:20:07 +05:30
Thomas Schatzl
74a31c5c16 8208297: Allow printing of taskqueue stats if compiled in in product builds
Reviewed-by: kbarrett
2018-07-27 09:49:03 +02:00
Igor Ignatyev
cb25641e4c 8208370: fix typo in ReservedStack tests' @requires
Reviewed-by: kvn
2018-07-27 00:00:28 -07:00
Igor Ignatyev
5c2439b0f6 8208358: update bug ids mentioned in tests
Reviewed-by: kvn
2018-07-26 23:59:46 -07:00
Daniil Titov
31cf8b1c65 8207364: nsk/jvmti/ResourceExhausted/resexhausted003 fails to start
Reviewed-by: sspitsyn, cjplummer
2018-07-26 16:22:58 -07:00
Harold Seigel
5a3decc9f1 8207944: java.lang.ClassFormatError: Extra bytes at the end of class file test" possibly violation of JVMS 4.7.1
Add code to skip over unknown attributes when class file version >= 11.

Reviewed-by: lfoltan
2018-07-26 15:56:37 -04:00
Jean Christophe Beyler
a98f40467a 8208251: serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorGCCMSTest.java fails intermittently on Linux-X64
Lower the interval rate and check GC objects too

Reviewed-by: dcubed, sspitsyn
2018-07-26 11:53:59 -07:00
Jean Christophe Beyler
5b9175eae8 8208251: serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorGCCMSTest.java fails intermittently on Linux-X64
Lower the interval rate and check GC objects too

Reviewed-by: dcubed, sspitsyn
2018-07-26 11:53:59 -07:00
Alex Menkov
2a213d1685 8199155: Accessibility issues in jdk.jdi
Reviewed-by: dtitov, sspitsyn
2018-07-26 11:31:15 -07:00
Ekaterina Pavlova
5bafe6f9a0 8195156: [Graal] serviceability/jvmti/GetModulesInfo/JvmtiGetAllModulesTest.java fails with Graal in Xcomp mode
Reviewed-by: kvn, sspitsyn
2018-07-26 10:23:33 -07:00
Daniel D. Daugherty
b62d703d9a 8208305: ProblemList compiler/jvmci/compilerToVM/GetFlagValueTest.java
Reviewed-by: hseigel, kvn
2018-07-26 13:08:42 -04:00
Daniel D. Daugherty
6958cd7967 8208305: ProblemList compiler/jvmci/compilerToVM/GetFlagValueTest.java
Reviewed-by: hseigel, kvn
2018-07-26 13:08:42 -04:00
Phil Race
1387c87093 Merge 2018-07-26 10:00:40 -07:00
Phil Race
dea6137c6a Added tag jdk-12+4 for changeset 499b873761d8 2018-07-26 09:30:58 -07:00
Phil Race
ffe9b0ffb7 Added tag jdk-11+24 for changeset ea900a7dc7d7 2018-07-26 09:27:30 -07:00
Yasumasa Suenaga
f45dc7748e 8205992: jhsdb cannot attach to Java processes running in Docker containers
Reviewed-by: cjplummer, jgeorge
2018-07-27 00:54:39 +09:00
David Buck
a3e7f01f33 8208183: update HSDIS plugin license to UPL
Reviewed-by: simonis, adinn, jrose
2018-07-26 10:56:58 -04:00
Jim Laskey
af89766e1e 8208164: (str) improve specification of String::lines
Reviewed-by: smarks
2018-07-26 10:25:33 -03:00
Jonathan Gibbons
f0e9643542 8208227: tools/jdeps/DotFileTest.java fails on Win-X64
Reviewed-by: darcy
2018-07-25 17:26:35 -07:00
Joe Darcy
2517ca3937 8208200: Add missing periods to sentences in RoundEnvironment specs
Reviewed-by: jjg
2018-07-25 17:22:26 -07:00
Daniel D. Daugherty
691c332a70 8208226: ProblemList com/sun/jdi/BasicJDWPConnectionTest.java
Reviewed-by: sspitsyn
2018-07-25 17:22:25 -04:00
Joe Darcy
a29cd6d430 8208201: Update SourceVersion.RELEASE_11 docs to mention var for lambda param
Reviewed-by: jjg
2018-07-25 12:54:58 -07:00
Roman Kennke
ca473200b7 8204970: Remaing object comparisons need to use oopDesc::equals()
Reviewed-by: eosterlund, zgu
2018-07-25 21:47:40 +02:00
Daniel D. Daugherty
86629a36f0 8208205: ProblemList tests that fail due to 'Error attaching to process: Can't create thread_db agent!'
Reviewed-by: cjplummer
2018-07-25 15:38:37 -04:00
Jean Christophe Beyler
12bf1a20d0 8207765: HeapMonitorTest.java intermittent failure
Lower the interval rate and check GC objects too

Reviewed-by: dcubed, sspitsyn
2018-07-25 10:51:16 -07:00
Joe Darcy
ac5685e827 8190886: package-info handling in RoundEnvironment.getElementsAnnotatedWith
Reviewed-by: vromero, jlahoda
2018-07-25 12:32:59 -07:00
Daniel D. Daugherty
6602e30cec 8208189: ProblemList compiler/graalunit/JttThreadsTest.java
Reviewed-by: darcy
2018-07-25 12:32:06 -04:00
Prasanta Sadhukhan
338fb4d94a 8205535: Useless (or buggy) call to Math.round on int input
Reviewed-by: jdv
2018-07-25 15:36:37 +05:30
Chris Yin
30f22170ef 8198882: Add 10 JNDI tests to com/sun/jndi/dns/AttributeTests/
Reviewed-by: vtewari, rriggs
2018-07-25 11:03:07 +08:00
Alexandre Iline
ffc4cbe5da 8208157: requires.VMProps throws NPE for missing properties in "release" file
Reviewed-by: iignatyev, lancea
2018-07-24 08:58:32 -07:00
Jonathan Gibbons
955ce37d60 8207214: Broken links in JDK API serialized-form page
Reviewed-by: hannesw
2018-07-24 11:37:43 -07:00
Matthias Baesken
1dcf1dda27 8207941: javax/swing/plaf/basic/BasicGraphicsUtils/8132119/bug8132119.java fails on machines without Arial font [testbug]
Reviewed-by: goetz, psadhukhan
2018-07-24 09:27:42 +02:00
Severin Gehwolf
1ab91ea928 8208091: SA: jhsdb jstack --mixed throws UnmappedAddressException on i686
Be sure to use the same register index in native and Java code.

Reviewed-by: sballal, cjplummer, tbell
2018-07-23 18:08:46 +02:00
Claes Redestad
5ddac96c10 8209837: Avoid initializing ExpiringCache during bootstrap
Reviewed-by: sundar, forax
2018-08-24 14:04:34 +02:00
Volker Simonis
3b002460a1 8205608: Fix 'frames()' in ThreadReferenceImpl.c to prevent quadratic runtime behavior
Reviewed-by: sspitsyn, cjplummer
2018-07-23 15:17:14 +02:00
Rachna Goel
50a3c19ffc 8206965: java/util/TimeZone/Bug8149452.java failed on de_DE and ja_JP locale
Generated display names for missing timezones at run time.

Reviewed-by: naoto
2018-07-26 14:15:24 +05:30
Leo Jiang
6c703b8589 8207948: JDK 11 L10n resource file update msg drop 10
Reviewed-by: naoto
2018-07-25 22:48:53 -07:00
John Jiang
126394f271 8206258: [Test Error] sun/security/pkcs11 tests fail if NSS libs not found
Improve the logics on skipping test

Reviewed-by: valeriep
2018-07-26 08:46:27 +08:00
Xue-Lei Andrew Fan
d2b2780859 8208166: Still unable to use custom SSLEngine with default TrustManagerFactory after JDK-8207029
Reviewed-by: ascarpino
2018-07-25 17:21:04 -07:00
Daniel D. Daugherty
398db3a0c7 8208226: ProblemList com/sun/jdi/BasicJDWPConnectionTest.java
Reviewed-by: sspitsyn
2018-07-25 17:22:25 -04:00
Chris Plummer
3ec12f2dc1 8151259: [TESTBUG] nsk/jvmti/RedefineClasses/redefclass030 fails with "unexpected values of outer fields of the class" when running with -Xcomp
Do a better job of handling compilations before execution

Reviewed-by: sspitsyn, amenkov
2018-07-25 13:15:36 -07:00
Daniel D. Daugherty
8c4ac06e1c 8208205: ProblemList tests that fail due to 'Error attaching to process: Can't create thread_db agent!'
Reviewed-by: cjplummer
2018-07-25 15:38:37 -04:00
Jean Christophe Beyler
37bbbcff6d 8207765: HeapMonitorTest.java intermittent failure
Lower the interval rate and check GC objects too

Reviewed-by: dcubed, sspitsyn
2018-07-25 10:51:16 -07:00
Jamil Nimeh
8158cca17d 8207237: SSLSocket#setEnabledCipherSuites is accepting empty string
Reviewed-by: xuelei
2018-07-25 09:48:31 -07:00
Daniel D. Daugherty
021a771791 8208189: ProblemList compiler/graalunit/JttThreadsTest.java
Reviewed-by: darcy
2018-07-25 12:32:06 -04:00
Erik Joelsson
d4beeed2db 8208096: Update build documentation to reflect compiler upgrades at Oracle
Reviewed-by: tbell
2018-07-25 08:36:46 -07:00
Chris Hegarty
1b1355c222 8207846: Generalize the jdk.net.includeInExceptions security property
Reviewed-by: alanb, michaelm, rriggs, mullan
2018-07-25 10:08:39 +01:00
Rajan Halade
eec8b3b9a8 8203230: update VerifyCACerts test
Reviewed-by: mullan
2018-07-24 12:12:16 -07:00
Chris Plummer
23a2b24b0b 8208075: Quarantine vmTestbase/nsk/jvmti/RedefineClasses/StressRedefineWithoutBytecodeCorruption/TestDescription.java
Add test to ProblemsList.txt

Reviewed-by: sspitsyn
2018-07-24 10:35:25 -07:00
Gunter Haug
0ec91d3125 8207392: [PPC64] Implement JFR profiling
Reviewed-by: simonis, goetz
2018-07-24 12:57:40 +02:00
Chris Hegarty
577cdf1f49 8207960: Non-negative WINDOW_UPDATE increments may leave the stream window size negative
Reviewed-by: michaelm
2018-07-24 10:07:26 +01:00
Chris Hegarty
e605cae39f 8207959: The initial value of SETTINGS_MAX_CONCURRENT_STREAMS should have no limit
Reviewed-by: michaelm
2018-07-23 11:47:03 +01:00
Hamlin Li
23084b76fa 8208111: Problem list java/nio/channels/Selector/RacyDeregister.java
Reviewed-by: alanb
2018-07-24 13:55:57 +08:00
Valerie Peng
df08003471 8206171: Signature#getParameters for RSASSA-PSS throws ProviderException when not initialized
Changed SunRsaSign and SunMSCAPI provider to return null and updated javadoc

Reviewed-by: weijun, mullan
2018-07-23 23:18:19 +00:00
Dean Long
7723d3a1e9 8207383: [Graal] SelfChangedCDS.java fails with "guarantee(disp == (intptr_t)(jint)disp) failed: must be 32-bit offset"
Reviewed-by: kvn
2018-07-23 12:01:43 -07:00
Daniel D. Daugherty
c1ec12c2ff 8208092: ProblemList serviceability/sa/ClhsdbCDSCore.java
Reviewed-by: sspitsyn
2018-07-23 14:41:06 -04:00
Srinivas Dama
eac16b2705 8206445: JImageListTest.java failed in Windows
Added System.gc() call to address unmapped jimage files

Reviewed-by: alanb
2018-07-23 19:58:43 +05:30
Swati Sharma
0440d172a0 8189922: UseNUMA memory interleaving vs membind
Reviewed-by: gromero, drwhite, dholmes, tschatzl
2018-07-19 16:56:05 -04:00
Jean Christophe Beyler
39cd4bdd52 8207252: C1 still does eden allocations when TLAB is enabled
Only do eden allocations when TLAB is disabled

Reviewed-by: kbarrett, jrose, tschatzl, iveresov
2018-07-22 20:00:39 -07:00
Felix Yang
16dcca2c40 8207952: Problem-list 3 sctp tests
Reviewed-by: chegar
2018-07-23 10:02:10 +08:00
Weijun Wang
32a2f54b64 8207223: SSL Handshake failures are reported with more generic SSLException
Reviewed-by: xuelei
2018-07-21 21:46:42 +08:00
Coleen Phillimore
a95225aabc 8203820: [TESTBUG] vmTestbase/metaspace/staticReferences/StaticReferences.java timed out
Moved InMemoryJavaCompiler out of loops or reduced loops with InMemoryJavaCompiler

Reviewed-by: vromero, jiangli
2018-07-20 18:03:23 -04:00
Stuart Marks
61ea10862e 8206865: RMI activation tests fail with InvalidClassException
Reviewed-by: darcy, alanb, mchung
2018-07-20 14:34:51 -07:00
Ekaterina Pavlova
daa3f2ce32 8206241: compiler/graalunit/PhasesCommonTest.java fails with java.lang.Error: TESTBUG: no tests found for prefix org.graalvm.compiler.phases.common.test
Reviewed-by: kvn
2018-07-20 11:39:52 -07:00
Igor Ignatyev
d38a0c13fd 8207915: [AOT] jaotc w/ '--ignore-errors' should ignore illegal class files
Reviewed-by: kvn
2018-07-20 11:39:37 -07:00
Naoto Sato
1aa5ef025d 8206886: Java does not set the default format locale correctly on mac10.13
Reviewed-by: rriggs
2018-07-20 10:12:34 -07:00
Anthony Scarpino
4e46cc1392 8204196: integer cleanup
Reviewed-by: xuelei
2018-07-20 09:55:15 -07:00
Erik Joelsson
f53e04ead9 8207365: Make man pages optional
Reviewed-by: tbell
2018-07-20 09:07:37 -07:00
Goetz Lindenmaier
c798b68ee1 8207830: [aix] disable jfr in build and tests
Reviewed-by: kvn, erikj
2018-07-20 09:46:57 +02:00
Goetz Lindenmaier
9dcc8b4a96 8207766: [testbug] Adapt tests for Aix
Reviewed-by: clanger, mbaesken
2018-07-20 09:33:49 +02:00
Rahul Raghavan
75437a84db 8203504: [Graal] org.graalvm.compiler.debug.test.DebugContextTest fails with java.util.ServiceConfigurationError
Added required uses statement

Reviewed-by: dnsimon, kvn
2018-07-20 01:23:38 -07:00
Hamlin Li
17f7056d82 8207833: java/nio/channels/Selector/SelectWithConsumer.java testCancel() fails intermittently
Reviewed-by: alanb
2018-07-20 15:24:42 +08:00
Jean Christophe Beyler
4823354a6a 8207765: HeapMonitorStatIntervalTest.java fails with ZGC
Add a calculation of array sizes before test to satisfy ZGC support

Reviewed-by: amenkov, sspitsyn
2018-07-19 18:21:24 -07:00
Hamlin Li
cf4bbcecb0 8207244: java/nio/channels/Selector/SelectWithConsumer.java testInterruptDuringSelect() fails intermittently
Reviewed-by: alanb
2018-07-20 08:40:14 +08:00
Phil Race
f921743302 Merge 2018-07-19 10:53:38 -07:00
Phil Race
28e828130d Merge 2018-07-19 10:17:22 -07:00
Bob Vandette
6fc4db4799 8206456: [TESTBUG] docker jtreg tests fail on systems without cpuset.effective_cpus / cpuset.effective_mem
Reviewed-by: mbaesken, mchung
2018-07-19 12:57:12 -04:00
Phil Race
f8f90df4d7 Added tag jdk-12+3 for changeset 990db216e719 2018-07-19 09:46:29 -07:00
Phil Race
329374e53b Added tag jdk-11+23 for changeset 1edcf36fe15f 2018-07-19 09:42:15 -07:00
Joe Darcy
269286da50 8207816: Align declaration of SerializedLambda.readResolve with serialization conventions
Reviewed-by: briangoetz
2018-07-19 09:20:08 -07:00
Matthias Baesken
198715ae97 8207395: jar has issues with UNC-path arguments for the jar -C parameter [windows]
Reviewed-by: goetz, sherman
2018-07-19 11:04:46 +02:00
Ivan Gerasimov
ad816a0809 8207314: Unnecessary reallocation when constructing WeakHashMap from a large Map
Reviewed-by: martin
2018-07-23 22:07:55 -07:00
Vladimir Kozlov
2f4efb7871 8207262: enable applications/ctw/modules/java_desktop_2.java test again
Reviewed-by: iignatyev
2018-07-23 18:29:35 -07:00
Daniel D. Daugherty
f52c4365ca 8208092: ProblemList serviceability/sa/ClhsdbCDSCore.java
Reviewed-by: sspitsyn
2018-07-23 14:41:06 -04:00
Antonios Printezis
9ff255dafe 8207849: Allow the addition of more number to the Java version string
Reviewed-by: erikj
2018-07-23 11:38:28 -04:00
Thomas Schatzl
7883ea1c31 8207953: Remove dead code in G1CopyingKeepAliveClosure
Reviewed-by: kbarrett
2018-07-23 17:32:04 +02:00
Vicente Romero
8e61321b6c 8205493: OptionSmokeTest.java uses hard-coded release values
Reviewed-by: darcy
2018-07-20 14:48:41 -07:00
Joe Darcy
07cb147927 8208060: Additional corrections of serial-related declarations
Reviewed-by: rriggs, lancea
2018-07-20 14:46:43 -07:00
Ioi Lam
9959e34180 8203382: Rename SystemDictionary::initialize_wk_klass to resolve_wk_klass
Reviewed-by: jiangli
2018-07-20 12:19:28 -07:00
Coleen Phillimore
39dd04b953 8207359: Make SymbolTable increment_refcount disallow zero
Use cmpxchg for non permanent symbol refcounting, and pack refcount and length into an int.

Reviewed-by: gziemski, kbarrett, iklam
2018-07-20 14:52:11 -04:00
Xin Liu
6cbef1de5d 8206075: On x86, assert on unbound assembler Labels used as branch targets
Reviewed-by: kvn, mdoerr, phh
2018-07-20 11:55:05 -07:00
Hamlin Li
069fa394d0 8207316: java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.java failed
Reviewed-by: alanb, simonis
2018-07-19 16:22:19 +08:00
Krishna Addepalli
2d2dd74c80 8206343: There is a typo in the java documentation of javax.swing.JScrollBar
Reviewed-by: prr, mhalder
2018-07-19 13:49:44 +05:30
Serguei Spitsyn
bfa23646ee 8207819: Problem list serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatRateTest.java
Problem list the test

Reviewed-by: cjplummer
2018-07-18 20:54:12 -07:00
Amy Lu
e09b97b5cb 8207818: Problem list several rmi tests
Reviewed-by: darcy
2018-07-19 10:30:24 +08:00
Joe Darcy
a5e27072fe 8203263: Remove unnecessary throws clauses from serialization-related methods
Reviewed-by: prr
2018-07-18 16:13:21 -07:00
Jamil Nimeh
1f273bde76 8207237: SSLSocket#setEnabledCipherSuites is accepting empty string
Reviewed-by: xuelei
2018-07-18 14:32:46 -07:00
Rajan Halade
ba7bab5fc9 8203230: update VerifyCACerts test
Reviewed-by: mullan
2018-07-18 09:50:04 -07:00
Joe Darcy
e85841f34b 8207751: Remove misleading serialVersionUID from JulienFields.Field
Reviewed-by: lancea
2018-07-18 08:27:53 -07:00
Roger Riggs
7d4da87a14 8189717: Too much documentation of ProcessBuilder.start copied to ProcessBuilder.startPipeline
Reviewed-by: bpb, lancea
2018-07-18 09:46:03 -04:00
Joe Darcy
fafd1b7536 8193462: Fix Filer handling of package-info initial elements
Reviewed-by: vromero
2018-07-18 00:23:06 -07:00
Joe Darcy
19c364592c 8193214: Incorrect annotations.without.processors warnings with JDK 9
Reviewed-by: vromero
2018-07-18 00:16:37 -07:00
Jean Christophe Beyler
a6ff367b24 8207765: HeapMonitorStatIntervalTest.java fails with ZGC
Add a calculation of array sizes before test to satisfy ZGC support

Reviewed-by: amenkov, sspitsyn
2018-07-19 18:21:24 -07:00
Christian Tornqvist
4805473049 8207855: Make applications/jcstress invoke tests in batches
Reviewed-by: kvn, iignatyev
2018-07-20 09:15:54 -04:00
Daniil Titov
301f3c3bb5 8204695: [Graal] vmTestbase/nsk/jdi/ClassPrepareRequest/addSourceNameFilter/addSourceNameFilter002/addSourceNameFilter002.java fails
Reviewed-by: sspitsyn, cjplummer
2018-07-19 16:53:33 -07:00
Vicente Romero
898e0f8607 8206874: Evaluate LoadClassFromJava6CreatedJarTest.java after dropping -source 6
Reviewed-by: darcy
2018-07-19 15:13:10 -07:00
Ivan Gerasimov
121c59eb6d 8207753: Handle to process snapshot is leaked if Process32First() fails
Reviewed-by: rriggs
2018-07-19 13:41:26 -07:00
Tom Rodriguez
5226a6a2bb 8207202: [Graal] compiler/graalunit/CoreTest.java fails
Reviewed-by: kvn
2018-07-19 12:55:24 -07:00
Naoto Sato
602a497270 8206886: Java does not set the default format locale correctly on mac10.13
Reviewed-by: rriggs
2018-07-19 11:15:38 -07:00
Alex Buckley
85f79b0dab 8207393: ServiceLoader class description improvements
Reviewed-by: alanb, lancea
2018-07-18 07:39:54 +01:00
Martin Buchholz
796a53f6e5 8206863: A closed JarVerifier.VerifierStream should throw IOException
Co-authored-by: Tobias Thierer <tobiast@google.com>
Reviewed-by: rasbold
2018-07-17 17:36:27 -07:00
Ivan Gerasimov
b30fe07450 8207750: Native handle leak in java.io.WinNTFileSystem.list()
Reviewed-by: bpb
2018-07-17 17:17:16 -07:00
Brian Burkhalter
01fd04b862 8207748: Fix for 8202794 breaks tier1 builds
Reviewed-by: kbarrett, darcy
2018-07-17 16:22:26 -07:00
Roger Riggs
e1ee13c514 8205610: [TESTLIB] Improve listing of open file descriptors
Reviewed-by: lancea
2018-07-17 17:14:03 -04:00
Kim Barrett
9a9c824ece 8202353: os::readdir should use readdir instead of readdir_r
8202835: jfr/event/os/TestSystemProcess.java fails on missing events

Os::readdir uses POSIX readdir, drop buffer arg, fix JFR uses.

Reviewed-by: coleenp, tschatzl, bsrbnd
2018-07-17 15:59:47 -04:00
Bernard Blaser
f4723253b6 8202794: Native Unix code should use readdir rather than readdir_r
Reviewed-by: alanb, bsrbnd
2018-07-17 12:03:10 -07:00
Calvin Cheung
0140ddadab 8204591: Expire/remove the UseAppCDS option in JDK 12
Reviewed-by: jiangli, mseledtsov, iklam
2018-07-17 11:58:53 -07:00
Jan Lahoda
66025558bb 8207229: Trees.getScope crashes for broken lambda
8207230: Trees.getScope runs Analyzers

Reviewed-by: vromero
2018-07-17 14:28:56 +02:00
Alan Bateman
df45a1b57e 8207340: (fs) UnixNativeDispatcher close and readdir usages should be fixed
Reviewed-by: bpb
2018-07-17 08:10:48 +01:00
Joe Darcy
a376d5dab4 8207248: Reduce incidence of compiler.warn.source.no.bootclasspath in javac tests
Reviewed-by: vromero
2018-07-16 21:53:49 -07:00
Brian Burkhalter
769e802001 8206448: (fs) Extended attributes assumed to be enabled on ext3 (lnx)
Assume extended attributes are only explicitly enable on ext3

Reviewed-by: mbaesken, alanb
2018-07-16 10:58:28 -07:00
Ivan Gerasimov
bd236c55d0 8207016: Avoid redundant native memory allocation in getFinalPath()
Reviewed-by: alanb
2018-07-16 10:07:22 -07:00
Rajan Halade
a4bf30fb50 8207321: Merge error with 8199779
Reviewed-by: mullan
2018-07-16 08:59:39 -07:00
Lois Foltan
cc58241bec 8205611: Improve the wording of LinkageErrors to include module and class loader information
Clean up the wording of loader constraint violations to include the module and class loader information.

Reviewed-by: coleenp, goetz, hseigel
2018-07-16 11:34:17 -04:00
Lois Foltan
e8fcd927c3 8178712: ResourceMark may be missing inside initialize_[vi]table
Clean up use of ResourceMark within initialize_[vi]table.

Reviewed-by: ccheung, iklam, jiangli
2018-07-16 09:06:33 -04:00
Phil Race
a6bd52da93 Merge 2018-07-12 11:09:23 -07:00
Severin Gehwolf
3aa10b4fab 8207057: No debug info for assembler files
Generate debug info for assembler files as needed.

Reviewed-by: erikj
2018-07-12 16:28:31 +02:00
Jan Lahoda
fe80e55647 8189747: JDK9 javax.lang.model.util.Elements#getTypeElement regressed 1000x in performance
Caching the results of Elements.getTypeElement/getPackageElement

Reviewed-by: darcy
2018-07-16 12:35:25 +02:00
Boris Ulasevich
2131cb484e 8206265: aarch64 jtreg: assert in TestOptionsWithRanges.jtr
Limit flag range to don't overflow 12bit instruction operand

Reviewed-by: aph, dsamersoff
2018-07-15 18:16:55 +03:00
Jesper Wilhelmsson
4fc510cc89 Merge 2018-07-14 02:14:54 +02:00
Jonathan Gibbons
93364e9a43 8207213: The help-doc.html generated by the doclet is incomplete
Reviewed-by: hannesw
2018-07-13 13:00:36 -07:00
Aleksei Voitylov
2d0aee2275 8207065: Cleanup compiler tests for Client VM
Reviewed-by: kvn, iignatyev
2018-07-13 11:13:34 -07:00
Rajan Halade
9335adaf4a 8199779: Add T-Systems, GlobalSign and Starfield services root certificates
Reviewed-by: mullan
2018-07-13 09:48:52 -07:00
Claes Redestad
173732afaa 8207235: ManagementFactory.getPlatformMXBeans(BufferPoolMXBean.class) throws NPE
Reviewed-by: alanb
2018-07-13 18:39:11 +02:00
Daniil Titov
8afac1c9da 8191948: db error: InvalidTypeException: Can't assign double[][][] to double[][][]
Reviewed-by: sspitsyn, amenkov
2018-07-12 22:53:35 -07:00
Adam Petcher
b2f4d61fb9 8206915: XDH TCK issues
Fixing a couple of conformance issues in XDH

Reviewed-by: mullan
2018-07-13 10:42:30 -04:00
Roland Westrelin
6dc1ccac6b 8200282: Serializing non-zero byte as zero to ByteBuffer
Arraycopy converted as a series of loads/stores uses wrong slice for loads

Reviewed-by: kvn, thartmann
2018-07-13 15:44:54 +02:00
Xue-Lei Andrew Fan
a98ec3e8bd 8207029: Unable to use custom SSLEngine with default TrustManagerFactory after updating to JDK 11 b21
Reviewed-by: wetmore
2018-07-13 07:08:59 -07:00
Boris Ulasevich
5bd94254bb 8207047: Multiple VM variants build fail
Reviewed-by: erikj
2018-07-13 07:01:51 -07:00
Volker Simonis
0b9f5c8862 8206998: [test] runtime/ElfDecoder/TestElfDirectRead.java requires longer timeout on ppc64
Reviewed-by: zgu, dholmes
2018-07-13 11:07:43 +02:00
Mikael Vidstedt
0103ed733d 8207210: Problem list javax/sound/sampled/Clip/AutoCloseTimeCheck.java
Reviewed-by: prr
2018-07-12 15:02:41 -07:00
John Jiang
5074bbb767 8206443: Update security libs manual test to cope with removal of javac -source/-target 6
Change compile -source/-target from 1.6 to 1.7

Reviewed-by: xuelei
2018-07-14 07:31:26 +08:00
Patricio Chilano Mateo
2b397c3c13 8206470: Incorrect use of os::lasterror in ClassListParser
The change is for future-proof the code in case errno gets overwritten inside the allocation logic.

Reviewed-by: dholmes
2018-07-13 13:58:17 -04:00
Ivan Gerasimov
78f3c8a7d4 8207145: (fs) Native memory leak in WindowsNativeDispatcher.LookupPrivilegeValue0
Reviewed-by: alanb
2018-07-12 06:04:57 -07:00
Zhengyu Gu
7f98a31e8d 8207056: Epsilon GC to support object pinning
Epsilon GC to use object pinning to avoid expensive GCLocker

Reviewed-by: shade, rkennke
2018-07-11 13:55:38 -04:00
Erik Joelsson
9d7fc64c38 8207243: Fix translation filtering to also support zh_HK and zh_TW
Reviewed-by: tbell
2018-07-19 14:25:42 -07:00
Vladimir Kozlov
67d90233b1 8207069: [AOT] we should check that VM uses the same GC as one used for AOT library generation
Reviewed-by: twisti, dnsimon, never
2018-07-19 13:41:56 -07:00
Boris Ulasevich
11ff09b63b 8207584: ARM32: ShouldNotReachHere assertion on Test8168712 jtreg test
Reviewed-by: shade
2018-07-19 21:46:52 +03:00
Zhengyu Gu
1c976267be 8207056: Epsilon GC to support object pinning
Epsilon GC to use object pinning to avoid expensive GCLocker

Reviewed-by: shade, rkennke
2018-07-11 13:55:38 -04:00
Jesper Wilhelmsson
90f21d1a34 Added tag jdk-12+2 for changeset 69b438908512 2018-07-12 12:22:54 +02:00
Joe Darcy
e18f343141 8207055: Make javac -help output for -source and -target more informative
Reviewed-by: jjg
2018-07-11 16:12:18 -07:00
Brent Christian
c7a1b6431d 8207005: Disable the file canonicalization cache by default
Reviewed-by: alanb, bpb
2018-07-11 14:32:42 -07:00
Jesper Wilhelmsson
dafb3af62d Merge 2018-07-11 21:41:43 +02:00
Boris Ulasevich
b32727d780 8207044: minimal vm build fail: missing #include
Add missing #include

Reviewed-by: kbarrett, shade
2018-07-11 15:08:44 -04:00
Coleen Phillimore
fb3b911fbe 8198720: Obsolete PrintSafepointStatistics, PrintSafepointStatisticsTimeout and PrintSafepointStatisticsCount options
Convert PrintSafepointStatistics to UL

Reviewed-by: shade, lfoltan
2018-07-11 14:44:05 -04:00
Andrew Wong
8da558cd3a 8205967: Remove sun/security/krb5/auto/UnboundSSL.java from ProblemList.txt
Reviewed-by: xuelei, rhalade
2018-07-11 11:17:09 -07:00
Zhengyu Gu
0a1e54644b 8206183: Possible construct EMPTY_STACK and allocation stack, etc. on first use
Uses "construct on First Use Idiom" pattern to workaround static initialization order

Reviewed-by: dholmes, minqi
2018-07-11 13:28:07 -04:00
Volker Simonis
24feae77a7 8207067: [test] prevent timeouts in serviceability/tmtools/jstat/{GcTest02,GcCauseTest02}.java
Reviewed-by: dholmes, goetz
2018-07-11 19:23:27 +02:00
Joe Darcy
2363998598 8173606: Deprecate constructors of 7-era visitors
Reviewed-by: vromero, jjg
2018-07-11 08:24:39 -07:00
Zhongwei Yao
45158a4766 8206975: AArch64: Fix CompareAndSwapOp when useLSE is enabled in Graal
Reviewed-by: adinn, aph
2018-07-11 15:00:33 +08:00
Rahul Raghavan
2e36eebdd2 8206873: 2 Null pointer dereference defect groups in LIRGenerator
Added missing assert statements

Reviewed-by: kvn, thartmann
2018-07-13 01:31:23 -07:00
Goetz Lindenmaier
2e682fa3cd 8207049: Minor improvements of compiler code
Reviewed-by: kvn, mdoerr
2018-07-12 16:31:28 +02:00
Felix Yang
f508eb1370 8202481: RegisterDuringSelect.java fails with java.util.concurrent.ExecutionException: java.nio.channels.ClosedSelectorException
8207023: Add trace info to java/nio/channels/Selector/RegisterDuringSelect.java

Reviewed-by: alanb
2018-07-13 11:21:55 +08:00
Mikael Vidstedt
47819594ed 8207217: Problem list java/lang/management/ThreadMXBean/AllThreadIds.java
Reviewed-by: dholmes
2018-07-12 17:32:37 -07:00
Mikael Vidstedt
cc004b437e 8207210: Problem list javax/sound/sampled/Clip/AutoCloseTimeCheck.java
Reviewed-by: prr
2018-07-12 15:02:41 -07:00
Jean Christophe Beyler
1292187b28 8206960: HeapMonitor tests fail with Graal
Remove checking lines and disable VMEventsTest when using Graal

Reviewed-by: amenkov, sspitsyn
2018-07-12 12:00:52 -07:00
Vladimir Kozlov
dbb21a2a92 8206953: compiler/profiling/TestTypeProfiling.java fails when JVMCI build disabled
Restore original behavior when C2 is used

Reviewed-by: thartmann, mdoerr, dnsimon, gdub
2018-07-12 11:57:06 -07:00
Naoto Sato
0df02a4cb8 8207152: Placeholder for Japanese new era should be two characters
Reviewed-by: rriggs
2018-07-12 11:24:10 -07:00
Paul Sandoz
d808684592 8207027: Lookup.accessClass fails for an array type in the same package when assertions are enabled
Reviewed-by: redestad, mchung
2018-07-11 15:35:47 -07:00
Goetz Lindenmaier
8a9b0134a8 8206977: Minor improvements of runtime code
Reviewed-by: coleenp, lfoltan
2018-07-11 16:11:10 +02:00
Ralf Schmelter
89f13ef117 8207001: *.obj.log files get truncated causing unreliable incremental builds on Windows
Reviewed-by: erikj, tbell
2018-07-12 16:30:47 +02:00
Aleksei Voitylov
c76ac0d457 8206903: Unable to build Client VM with JVMCI
Reviewed-by: erikj, kvn
2018-07-12 07:14:30 -07:00
Krishna Addepalli
03d9e25265 8206238: Aspect ratio is not maintained when Image is scaled in JEditorPane
Reviewed-by: prr, sveerabhadra
2018-07-12 17:34:36 +05:30
Jesper Wilhelmsson
1f09843a0d Added tag jdk-11+22 for changeset 9937ef7499dc 2018-07-12 13:40:20 +02:00
Manajit Halder
bad72aa13c 8204860: The frame could be resized by dragging a corner of the frame with the mouse
Reviewed-by: prr, psadhukhan
2018-07-12 15:17:18 +05:30
Aleksey Shipilev
39a27d1115 8207006: serviceability/sa/TestUniverse.java#id0 crashes with EpsilonGC and AOT
Reviewed-by: twisti, kvn
2018-07-12 09:13:55 +02:00
Weijun Wang
11e4fac62b 8206189: sun/security/pkcs12/EmptyPassword.java fails with Sequence tag error
Reviewed-by: xuelei
2018-07-12 08:44:39 +08:00
Rajan Halade
3bbfd2f301 8207068: Add Entrust root certificates
Reviewed-by: weijun
2018-07-11 14:54:35 -07:00
Naoto Sato
fa3591db42 8206980: ZonedDateTime could not parse timezone name with zh_CN locale correctly
Reviewed-by: rriggs
2018-07-11 14:47:43 -07:00
Aleksey Shipilev
4f20e7f453 8206931: Misleading "COMPILE SKIPPED: invalid non-klass dependency" compile log
Reviewed-by: vlivanov, never
2018-07-11 08:44:00 +02:00
Calvin Cheung
a10d6e71d8 8205946: JVM crash after call to ClassLoader::setup_bootstrap_search_path()
Exit vm if setting of boot class path fails.

Reviewed-by: lfoltan, jiangli, dholmes
2018-07-10 19:04:13 -07:00
Jean Christophe Beyler
0922828415 8205643: HeapMonitorGCCMSTest fails with Graal
Do not run HeapMonitorGCCMSTest with Graal

Reviewed-by: amenkov, sspitsyn
2018-07-10 15:29:25 -07:00
Doug Lea
bb74071bcf 8205576: forkjoin/FJExceptionTableLeak.java fails "AssertionError: failed to satisfy condition"
Reviewed-by: martin, psandoz, dholmes, tschatzl
2018-07-10 10:24:08 -07:00
Doug Lea
85daddd4cf 8205620: Miscellaneous changes imported from jsr166 CVS 2018-07
Reviewed-by: martin, psandoz
2018-07-10 10:24:08 -07:00
Doug Lea
08fb8e4d1c 8205576: forkjoin/FJExceptionTableLeak.java fails "AssertionError: failed to satisfy condition"
Reviewed-by: martin, psandoz, dholmes, tschatzl
2018-07-10 10:24:08 -07:00
Doug Lea
fce671f409 8206123: ArrayDeque created with default constructor can only hold 15 elements
Reviewed-by: martin, psandoz, igerasim
2018-07-10 10:24:08 -07:00
Coleen Phillimore
859ba8ca28 8206471: Race with ConcurrentHashTable deleting items on insert with cleanup thread
Only fetch Node::next once and use that result.

Reviewed-by: hseigel, dholmes
2018-07-10 11:13:33 -04:00
Gunter Haug
bb12ce24ef 8206919: s390: add missing info to vm_version_ext_s390
Reviewed-by: simonis, mdoerr
2018-07-10 11:36:36 +02:00
Sergey Bylokhov
991ca8f9fa 8202264: Race condition in AudioClip.loop()
Reviewed-by: prr
2018-07-11 13:41:25 +03:00
Sergey Bylokhov
b782289aa2 8205973: Client jtreg ProblemList cleanup
Reviewed-by: prr
2018-07-11 13:17:48 +03:00
John Jiang
8452535d49 8199645: javax/net/ssl/SSLSession/TestEnabledProtocols.java failed with Connection reset
Refactor this test with SSLSocketTemplate

Reviewed-by: xuelei
2018-07-11 10:39:58 +08:00
Vladimir Kozlov
05f6e0dd45 8206135: Building jvm with AOT but without JVMCI should fail at configure time
Reviewed-by: erikj
2018-07-10 19:42:48 -07:00
Mikael Vidstedt
dd4a832ab8 8207007: Add missing license header to zHash.inline.hpp
Reviewed-by: tschatzl, pliden
2018-07-10 16:14:48 -07:00
Ekaterina Pavlova
ca6835dc9a 8206951: [Graal] org.graalvm.compiler.hotspot.test.GraalOSRTest to ProblemList-graal.txt
Reviewed-by: kvn
2018-07-10 13:54:17 -07:00
Kim Barrett
ca3b04f912 8204691: HeapRegion.apply_to_marked_objects_other_vm_test fails with assert(!hr->is_free() || hr->is_empty()) failed: Free region 0 is not empty for set Free list #
Run test in safepoint.

Reviewed-by: tschatzl, ehelin
2018-07-10 13:34:32 -04:00
Tobias Hartmann
a16ca4799e 8205472: Deadlock in Kitchensink when trying to print compile queues causing timeout
Do not acquire the MethodCompileQueue_lock in CompileBroker::print_compile_queues().

Reviewed-by: kvn, kbarrett, dholmes
2018-07-10 15:33:55 +02:00
Thomas Schatzl
f57c7d1f4a 8206476: Wrong assert in phase_enum_2_phase_string() in referenceProcessorPhaseTimes.cpp
A less or equal than should be less than.

Reviewed-by: ehelin, kbarrett
2018-07-10 15:09:34 +02:00
Chris Hegarty
c29276cc0d 8196902: Better HTTP Redirection
Reviewed-by: dfuchs
2018-07-10 08:20:13 +01:00
David Holmes
7d7116339a 8206954: Test runtime/Thread/ThreadPriorities.java crashes with SEGV in pthread_getcpuclockid
Run the new runtime/jni/terminatedThread/TestTerminatedThread.java test in othervm mode

Reviewed-by: alanb, mikael
2018-07-10 03:14:55 -04:00
David Holmes
e9ad46f26c 8205878: pthread_getcpuclockid is expected to return 0 code
Reviewed-by: cjplummer, amenkov, coleenp
2018-07-09 20:17:32 -04:00
Xueming Shen
84234d1abb 8206389: JarEntry.setCreation/LastAccessTime without setLastModifiedTime causes Invalid CEN header
Reviewed-by: alanb, martin
2018-07-09 13:08:30 -07:00
Kim Barrett
051f4ed627 8204834: Fix confusing "allocate" naming in OopStorage
Allocate_list => allocation_list and so on.

Reviewed-by: dholmes, tschatzl, coleenp
2018-07-09 13:35:55 -04:00
Thomas Schatzl
66e825aa41 8206453: Taskqueue stats should count real steal attempts, not calls to GenericTaskQueueSet::steal
Reviewed-by: ehelin, kbarrett
2018-07-09 14:12:50 +02:00
David Holmes
466ccfe781 8205966: [testbug] New Nestmates JDI test times out with Xcomp on sparc
Reviewed-by: mikael, sspitsyn
2018-07-08 20:00:46 -04:00
Jiangli Zhou
9ba5bab865 8202035: Archive the set of ModuleDescriptor and ModuleReference objects for observable system modules with unnamed initial module
Support system module archiving with unnamed initial module at dump time.

Co-authored-by: Alan Bateman <alan.bateman@oracle.com>
Reviewed-by: erikj, coleenp, mchung, iklam, ccheung
2018-07-08 12:43:05 -04:00
Roger Riggs
4d93f17fe1 8206495: Redundant System.setProperty(null) tests
Reviewed-by: mchung, lancea
2018-07-06 15:22:07 -04:00
Joe Darcy
03597d010c 8206439: Remove javac -source/-target 6 from langtools regression tests
Reviewed-by: mcimadamore
2018-07-06 10:28:56 -07:00
Joe Darcy
d2de786263 8206440: Remove javac -source/-target 6 from jdk regression tests
Reviewed-by: alanb
2018-07-06 09:37:44 -07:00
Joe Wang
3cf62646ed 8206164: forgot to "throw" TransformerConfigurationException
Reviewed-by: lancea
2018-07-06 09:26:01 -07:00
Roman Kennke
9ec15cedd0 8206457: Code paths from oop_iterate() must use barrier-free access
Reviewed-by: eosterlund, shade
2018-07-06 16:04:19 +02:00
Aleksey Shipilev
0d902d2b56 8208665: Amend cross-compilation docs with qemu-debootstrap recipe
Reviewed-by: martin, glaubitz, erikj
2018-08-24 09:38:11 +02:00
Tobias Hartmann
a494a819eb 8209833: C2 compilation fails with "assert(ex_map->jvms()->same_calls_as(_exceptions->jvms())) failed: all collected exceptions must come from the same place"
Deoptimize if exception is thrown in _clone intrinsic.

Reviewed-by: kvn
2018-08-24 08:17:23 +02:00
Leonid Mesnik
aad3230b1d 8209150: [TESTBUG] Add logging to verify JDK-8197901 to a different test
Reviewed-by: coleenp, mseledtsov
2018-08-23 16:47:53 -07:00
Gary Adams
14bb47410b 8034084: nsk.nsk/jvmti/ThreadStart/threadstart003 Wrong number of thread end events
Reviewed-by: amenkov, dholmes, sspitsyn
2018-08-23 07:54:19 -04:00
Kim Barrett
23f0fb4cde 8209850: Allow NamedThreads to use GlobalCounter critical sections
Add NamedThreads iterator and make GlobalCounter use it.

Reviewed-by: eosterlund, rehn
2018-08-23 18:14:53 -04:00
Joe Wang
8b138c684a 8209873: Typo in javax.xml.validation.Validator.validate documentation
Reviewed-by: lancea
2018-08-23 12:57:40 -07:00
Ivan Gerasimov
ffa4cfe355 8209171: Simplify Java implementation of Integer/Long.numberOfTrailingZeros()
Co-authored-by: Martin Buchholz <martinrb@google.com>
Reviewed-by: martin
2018-08-23 12:09:46 -07:00
Ivan Gerasimov
acaf155de7 8209851: Algorithm name is compared via reference identity
Reviewed-by: mullan
2018-08-23 09:36:13 -07:00
Calvin Cheung
c3adb5f87d 8207211: [TESTBUG] Remove excessive output from CDS/AppCDS tests
Changed the value of the property test.cds.copy.child.stdout to false so that stdout of child processes are logged in files. Each stdout and stderr file will have a unique name.

Reviewed-by: iklam
2018-08-23 09:35:09 -07:00
Patricio Chilano Mateo
78363850b9 8209854: ProblemList MemberNameLeak
MemberNameLeak.java moved to ProblemList due to intermittent failure after 8206423

Reviewed-by: coleenp
2018-08-23 11:33:51 -04:00
Per Lidén
14443eec10 8209883: ZGC: Compile without C1 broken
Reviewed-by: eosterlund, shade
2018-08-23 14:31:27 +02:00
Sean Coffey
50ec35819d 8209129: Further improvements to cipher buffer management
Reviewed-by: weijun, igerasim
2018-08-23 11:37:14 +01:00
Per Lidén
58e2f2d41c 8209831: ZGC: Clean up ZRelocationSetSelectorGroup::semi_sort()
Reviewed-by: eosterlund, kbarrett
2018-08-23 10:52:27 +02:00
Joe Wang
8ead3758cb 8209615: ParseError in XMLEventReader on a valid input
Reviewed-by: lancea
2018-08-22 14:28:47 -07:00
Dean Long
2406a52bd6 8209651: better TLS poll for x64 C2
Reviewed-by: kvn
2018-08-22 13:53:48 -07:00
Jesper Wilhelmsson
ed3779b175 Added tag jdk-12+8 for changeset 492b366f8e57 2018-08-22 21:48:39 +02:00
Mandy Chung
8a10925316 8167314: Enable the check to detect duplicate provides in in GenModuleInfoSource
Reviewed-by: lancea
2018-08-22 13:47:47 -05:00
Thomas Schatzl
6f880d7f48 8209062: Clean up G1MonitoringSupport
Reviewed-by: phh, sangheki
2018-08-22 20:37:07 +02:00
Thomas Schatzl
0d78eb91db 8209061: Move G1 serviceability functionality to G1MonitoringSupport
Reviewed-by: phh, sangheki
2018-08-22 20:37:07 +02:00
Thomas Schatzl
5c94ea21e7 8209700: Remove HeapRegionSetBase::RegionSetKind for a more flexible approach
Reviewed-by: kbarrett, phh
2018-08-22 20:37:07 +02:00
Thomas Schatzl
0cad83662a 8209698: Remove "Pinned" from HeapRegionTraceType
Reviewed-by: iklam
2018-08-22 20:37:07 +02:00
Thomas Schatzl
8e264e259d 8208498: Put archive regions into a first-class HeapRegionSet
Maintain archive regions in a HeapRegionSet like other region types.

Reviewed-by: phh, sangheki
2018-08-22 20:37:07 +02:00
Alex Menkov
1b39447545 8209605: com/sun/jdi/BreakpointWithFullGC.java fails with ZGC
Reviewed-by: sspitsyn, dholmes
2018-08-22 10:28:34 -07:00
Daniil Titov
f1553a5f0f 8202342: [Graal] fromTonga/nsk/jvmti/unit/FollowReferences/followref003/TestDescription.java fails with "Location mismatch" errors
Reviewed-by: sspitsyn, amenkov
2018-08-22 08:31:15 -07:00
Ioi Lam
5b2c081460 8208658: Make CDS archived heap regions usable even if compressed oop encoding has changed
Relocate and patch archive regions if necessary

Reviewed-by: jiangli, tschatzl
2018-08-14 09:59:37 -07:00
Pengfei Li
aafb128d89 8209783: AArch64: Combine Multiply and Neg operations in C2
Generate mneg instructions for a*(-b) or (-a)*b to save one instruction

Reviewed-by: adinn
2018-08-22 16:06:51 +01:00
Roland Westrelin
40af989884 8209686: cleanup arguments to PhaseIdealLoop() constructor
Reviewed-by: thartmann, kvn, pliden
2018-08-22 10:36:39 +02:00
Thomas Schatzl
2ffded2a4b 8209839: [Backout] Backout JDK-8206467 Refactor G1ParallelCleaningTask into shared
Reviewed-by: zgu
2018-08-22 16:01:29 +02:00
Roman Kennke
83d1dd7d9a 8209667: Explicit barriers for C1/LIR
Reviewed-by: eosterlund, roland
2018-08-19 20:00:57 +02:00
Coleen Phillimore
b1ce2c0fe8 8208172: SIGSEGV when owner of invokedynamic bootstrap method throws an exception - Symbol::increment_refcount()+0x0
Table for resolution errors always expect non-null message string.

Reviewed-by: dholmes, iklam
2018-08-22 07:51:07 -04:00
Erik Österlund
ce61e39060 8208601: Introduce native oop barriers in C2 for OopHandle
Reviewed-by: neliasso, kvn
2018-08-22 13:06:33 +02:00
Roman Kennke
d8ffa83e7a 8209801: Rename C1_WRITE_ACCESS and C1_READ_ACCESS decorators to ACCESS_READ and ACCESS_WRITE
Reviewed-by: kbarrett, pliden
2018-08-22 13:01:26 +02:00
Roland Westrelin
417149e74a 8209684: Intrinsics that assume some input non null should use GraphKit::must_be_not_null()
Reviewed-by: kvn, thartmann
2018-08-22 10:09:06 +02:00
Roland Westrelin
f3e518394b 8209420: Track membars for volatile accesses so they can be properly optimized
Reviewed-by: adinn, aph, thartmann
2018-08-14 16:54:47 +02:00
Weijun Wang
67a1517a4d 8209829: SpnegoUnknownMech.java does not contain the SpnegoUnknownMech class
Reviewed-by: dholmes
2018-08-22 15:10:40 +08:00
Ioi Lam
593590305d 8209826: Undefined reference to os::write after JDK-8209657 (filemap.hpp cleanup)
Include os_inline.hpp instead

Reviewed-by: jiangli
2018-08-21 20:23:34 -07:00
Weijun Wang
dcb930f123 8186186: GSSContext.isEstablished() can return true on error state
Reviewed-by: weijun
2018-08-21 20:19:46 -07:00
Weijun Wang
73ac71d532 8209771: jdk.test.lib.Utils::runAndCheckException error
Reviewed-by: dholmes
2018-08-22 11:10:45 +08:00
Ioi Lam
73951ab5d9 8209657: Refactor filemap.hpp to simplify integration with Serviceability Agent
Added src/hotspot/share/include/cds.h

Reviewed-by: ccheung, sspitsyn, jgeorge
2018-08-17 13:53:53 -07:00
Zhengyu Gu
bd0f1453dc 8206467: Refactor G1ParallelCleaningTask into shared
Refactored and moved G1ParllelCleaningTask to be shared among GCs

Reviewed-by: rkennke, kbarrett
2018-08-21 20:29:57 -04:00
Leonid Mesnik
85a5893183 8209758: 2 classes with same name G1PrintCollectionSetClosure cause crash when logging is enabled
Reviewed-by: tschatzl, kbarrett
2018-08-21 13:17:29 -07:00
Christian Thalinger
d9bb30837a 8209689: Compiler.isGraalEnabled should not check jvmci.Compiler property
Reviewed-by: kvn
2018-08-21 14:14:28 +02:00
Tom Rodriguez
9c4f2b7294 8209624: [JVMCI] Invalidate nmethods instead of directly unloading them when the InstalledCode is dropped
Reviewed-by: kvn
2018-08-21 08:38:02 -07:00
Patricio Chilano Mateo
4ef5590fa7 8206423: Use locking for cleaning ResolvedMethodTable
ServiceThread is now in charge of cleaning ResolvedMethodTable entries

Reviewed-by: gziemski, dholmes, coleenp
2018-08-21 10:37:02 -04:00
Coleen Phillimore
eca24bfb55 8209792: Remove ClassLoaderDataGraph::keep_alive_cld_do
Unnecessary

Reviewed-by: zgu, tschatzl
2018-08-21 10:03:22 -04:00
Coleen Phillimore
dc556f4086 8209738: Remove ClassLoaderDataGraph::*oops_do functions
Make walking CLDG more consistent.

Reviewed-by: dholmes, tschatzl
2018-08-21 09:33:41 -04:00
Roman Kennke
f6bcc38500 8209668: Explicit barriers for C1/assembler
Reviewed-by: roland, eosterlund
2018-08-21 13:12:15 +02:00
Priya Lakshmi Muthuswamy
f1173ad06c 8203792: Remove "compatibility" features from Head.java
Reviewed-by: jjg, sundar
2018-08-21 11:41:54 +05:30
Ioi Lam
bc62b3a40e 8209647: constantPoolHandle::constantPoolHandle(ConstantPool*) when precompiled header is disabled
Added fieldDescriptor.inline.hpp

Reviewed-by: coleenp, shade
2018-08-20 13:58:23 -07:00
Tim Bell
846e25f099 8209760: merge error: restore ea in make/conf/jib-profiles.js
Reviewed-by: mikael
2018-08-20 16:18:56 -07:00
Jamil Nimeh
8eb45613db 8208350: Disable all DES cipher suites
Reviewed-by: xuelei, mullan
2018-08-20 15:37:47 -07:00
Mikael Vidstedt
95db6924f2 Merge 2018-08-20 14:19:30 -07:00
Igor Ignatyev
89a9456801 8209740: typo in test/lib/jtreg/SkippedException.java
Reviewed-by: kvn
2018-08-20 11:37:57 -07:00
Joe Wang
0afc1b41c3 8209576: java.nio.file.Files.writeString writes garbled UTF-16 instead of UTF-8
Reviewed-by: sherman
2018-08-20 10:11:26 -07:00
Lutz Schmidt
0f4805ef4c 8209588: SIGSEGV in MethodArityHistogram() with -XX:+CountCompiledCalls
Reviewed-by: kvn, goetz
2018-08-20 17:25:45 +02:00
Claes Redestad
55cf3de09b 8209633: Avoid creating WeakEntry wrappers when looking up cached MethodType
Reviewed-by: plevart, mchung
2018-08-20 14:25:02 +02:00
Lois Foltan
75ed173e15 8209301: JVM rename is_anonymous, host_klass to unsafe specific terminology ahead of Unsafe.defineAnonymousClass deprecation
Clean up VM anonymous class terminology.

Reviewed-by: coleenp, dholmes, mchung
2018-08-20 08:25:57 -04:00
Aleksey Shipilev
6ccb60937c 8209573: [TESTBUG] gc/epsilon/TestMemoryMXBeans should retry on failure
Reviewed-by: kvn, pliden
2018-08-20 10:04:00 +02:00
Igor Ignatyev
65f4c7dee4 8209456: [error-prone] ShortCircuitBoolean in java.logging
Reviewed-by: rriggs
2018-08-19 22:41:49 -07:00
Kim Barrett
0d9777a9cb 8154343: Make SATB related code available to other GCs
Move ptrQueue and satbMarkQueue files from g1 to shared.

Reviewed-by: rkennke, sangheki
2018-08-18 13:59:25 -04:00
Jamil Nimeh
d9456186e8 8203614: Java API SSLEngine example code needs correction
Reviewed-by: wetmore, ascarpino
2018-08-17 21:36:02 -07:00
Calvin Cheung
660c7e50f7 8209385: CDS runtime classpath checking is too strict when only classes from the system modules are archived
Skip checking the path entries which are not being referenced during CDS dump time

Reviewed-by: jiangli, iklam
2018-08-17 14:50:59 -07:00
Sean Coffey
15cef25bb0 8208675: Remove legacy sun.security.key.serial.interop property
Reviewed-by: mullan
2018-08-17 22:20:47 +01:00
Joe Darcy
07ed14c5cf 8209304: Deprecate serialVersionUID fields in interfaces
Reviewed-by: lancea, mullan, rriggs, smarks
2018-08-17 13:37:01 -07:00
Igor Veresov
4dfa58d553 8206992: Update Graal
Reviewed-by: kvn
2018-08-17 13:20:53 -07:00
Stuart Monteith
2788ddc4eb 8209586: AARCH64: SymbolTable changes throw assert on aarch64
Cast the comparison value to match the signdeness

Reviewed-by: gziemski, coleenp
2018-08-17 11:56:59 -05:00
Mikael Vidstedt
20f3793312 Added tag jdk-12+7 for changeset ef57958c7c51 2018-08-17 09:53:52 -07:00
Sharath Ballal
b1b99f1d4c 8209342: Problemlist SA tests on Solaris due to Error attaching to process: Can't create thread_db agent!
Reviewed-by: dcubed, iklam, jgeorge
2018-08-17 21:50:55 +05:30
Robbin Ehn
3bb71a9b51 8207334: VM times out in VM_HandshakeAllThreads::doit() with RunThese30M
Handshakes did not consider external suspended threads safe for safepoint.

Reviewed-by: dcubed, dholmes
2018-08-17 13:38:19 +02:00
Ekaterina Pavlova
3c0f0f0175 8209587: Update test/hotspot/jtreg/ProblemList-graal.txt
Reviewed-by: kvn
2018-08-17 03:59:20 -07:00
Tobias Hartmann
73bcb0507e 8208275: C2 crash in Node::add_req(Node*)
Split-if optimization should not process (dead) counted loops.

Reviewed-by: roland
2018-08-17 08:21:20 +02:00
Ioi Lam
2e941724e4 8209545: Simplify HeapShared::archive_module_graph_objects
Added archivable_static_fields array in heapShared.cpp

Reviewed-by: jiangli
2018-08-15 11:19:57 -07:00
Kim Barrett
6355dec98c 8209607: Remove stale comment for JNI mutexes
Remove comment.

Reviewed-by: dholmes
2018-08-16 19:49:25 -04:00
Alex Menkov
1260099653 8209608: Problem list com/sun/jdi/BreakpointWithFullGC.java
Reviewed-by: mikael, dtitov, dcubed
2018-08-16 16:44:51 -07:00
Igor Ignatyev
610dfb22d3 8209549: remove VMPropsExt from TEST.ROOT
Reviewed-by: dholmes
2018-08-16 16:28:03 -07:00
Jiangli Zhou
da4684e2e1 8209389: SIGSEGV in WalkOopAndArchiveClosure::do_oop_work
Check the MetaspaceShared::archive_heap_object return value and handle failure accordingly.

Reviewed-by: iklam, coleenp
2018-08-16 17:29:22 -04:00
Alex Menkov
d2a9e11aeb 8209517: com/sun/jdi/BreakpointWithFullGC.java fails with timeout
Reviewed-by: dcubed, mikael
2018-08-16 10:20:00 -07:00
Jan Lahoda
19a7a3b69e 8208269: Javadoc does not support module-info in a multi-release jar
Ensuring correct version is set when reading multi-release jars.

Reviewed-by: jjg
2018-08-16 15:00:23 +02:00
Roger Riggs
63b1edb7b7 8208715: Conversion of milliseconds to nanoseconds in UNIXProcess contains bug
Reviewed-by: martin
2018-08-15 10:38:27 -04:00
Rachna Goel
8cf153fbd5 8209047: "Illegal pattern character 'B'" IllegalArgumentException with Burmese locales
Replaced time patterns for Burmese locale from CLDR 29's patterns.

Reviewed-by: naoto
2018-08-16 16:06:54 +05:30
Doug Simon
e39c7c3c93 8209535: [JVMCI] Do not swallow NoClassDefFoundError when converting JVMCI methods and fields to reflection objects
Reviewed-by: kvn, iveresov
2018-08-16 09:46:09 +02:00
Tobias Hartmann
5b0774ea01 8209511: C2 asserts with UseSSE < 4 and AVX enabled: "Label was never bound to a location, but it was used as a jmp target'
Make sure label is bound even if SSE is disabled.

Reviewed-by: kvn
2018-08-16 09:09:18 +02:00
Ioi Lam
bd57506f87 8207832: serviceability/sa/ClhsdbCDSCore.java failed with "Couldn't find core file location"
Handle %p in /proc/sys/kernel/core_pattern

Reviewed-by: dholmes, hseigel
2018-08-15 19:22:46 -07:00
Ioi Lam
e12ee81ff0 8206115: Use shared macros for JavaClasses::compute_offsets and MetaspaceShared::serialize_well_known_classes
Added BASIC_JAVA_CLASSES_DO in javaClasses.hpp

Reviewed-by: jiangli, redestad, coleenp
2018-08-14 20:46:46 -07:00
Vicente Romero
efa05e1c62 8207320: Wrong type order for intersection lambdas with multiple abstract methods
Reviewed-by: mcimadamore
2018-08-15 13:39:32 -07:00
Coleen Phillimore
ef15adee70 8209541: Fix merge problem in SymbolTable::do_check_concurrent_work
Remerged with previous change to do_unloading.

Reviewed-by: hseigel
2018-08-15 16:01:48 -04:00
Coleen Phillimore
68e65d8ece 8209447: vmTestbase/vm/mlvm/indy/func/jvmti/mergeCP_none2indy_b/TestDescription.java timed out
Was walking code cache for every safepoint because redefined methods take a long time to clear out of the code cache

Reviewed-by: eosterlund, rehn
2018-08-15 15:50:23 -04:00
Joe Darcy
07f3f674c2 5075463: (enum) Serialized Form javadoc for java.lang.Enum is misleading
Reviewed-by: lancea, rriggs, smarks
2018-08-15 10:44:56 -07:00
Joe Darcy
b0954bc7ab 8176425: Add radix indication in NumberFormatException message for Integer.decode
Reviewed-by: lancea
2018-08-15 10:16:15 -07:00
Mikhailo Seledtsov
b71faed5df 8209164: [TESTBUG] Apply jtreg skipped status to cds tests
Added the SkippedException where applicable

Reviewed-by: iklam, jiangli
2018-08-15 10:00:16 -07:00
Joshua Zhu
f87ec5faf7 8209459: TestSHA512MultiBlockIntrinsics failed on AArch64
Prevent classloading to avoid generation of SHA stubs.

Reviewed-by: kvn, thartmann
2018-08-15 14:35:33 +02:00
Dmitrij Pochepko
4377d3abe2 8209439: C2 library_call can potentially ignore Math.pow intrinsic or use null pointer
Reviewed-by: kvn, thartmann
2018-08-15 14:48:12 +03:00
Erik Österlund
b9052e9647 8208582: Introduce native oop barriers in C1 for OopHandle
Reviewed-by: coleenp, kvn
2018-08-15 09:51:57 +02:00
Xue-Lei Andrew Fan
611c53c860 8207009: TLS 1.3 half-close and synchronization issues
Reviewed-by: jnimeh, mullan, wetmore
2018-08-14 18:16:47 -07:00
Coleen Phillimore
d8ce7f36e2 8209518: symbol table gtest fails with semaphore error
Loop count was wrong.

Reviewed-by: mikael, kbarrett
2018-08-14 19:52:34 -04:00
Gerard Ziemski
b75805c1a5 8195100: Use a low latency hashtable for SymbolTable
Used concurrentHashTable, similar to stringTable

Reviewed-by: coleenp, kbarrett, iklam, pliden
2018-08-14 18:42:14 -05:00
Vladimir Kozlov
9cea96184f 8208463: jdk.internal.vm.compiler's module-info.java.extra contains duplicated provides of the same service interface
Reviewed-by: mchung
2018-08-14 14:08:04 -07:00
Coleen Phillimore
61d4faee90 8205417: Obsolete UnlinkSymbolsALot debugging option
Obsolete and remove support for UnlinkSymbolsALot

Reviewed-by: hseigel, dholmes
2018-07-06 09:10:07 -04:00
Harold Seigel
5ff2b5fe98 8203911: Test runtime/modules/getModuleJNI/GetModule fails with -Xcheck:jni
Remove unneeded validate_class() check from  checked_jni_GetModule().

Reviewed-by: dholmes, coleenp
2018-07-06 06:26:25 -07:00
Coleen Phillimore
6d497ee263 8202737: Obsolete AllowNonVirtualCalls option
Obsolete option and remove support.

Reviewed-by: dholmes, jiangli, kbarrett
2018-07-06 09:00:48 -04:00
Jonathan Gibbons
ea084baf94 8206318: Enhance package documentation for internal javadoc packages
Reviewed-by: sundar
2018-07-05 14:35:03 -07:00
Naoto Sato
10fca535db 8206350: java/util/Locale/bcp47u/SystemPropertyTests.java failed on Mac 10.13 with zh_CN and zh_TW locales
Reviewed-by: rriggs
2018-07-05 14:23:45 -07:00
Roman Kennke
943be51fe7 8206272: Remove stray BarrierSetAssembler call
Reviewed-by: pliden, shade
2018-07-05 19:22:53 +02:00
Roman Kennke
3f0f527c5b 8206407: Primitive atomic_cmpxchg_in_heap_at() in BarrierSet::Access needs to call non-oop raw method
Reviewed-by: pliden, shade
2018-07-05 19:22:38 +02:00
Calvin Cheung
210e064a8d 8205548: Remove multi-release jar related vm code
Reviewed-by: iklam, jiangli
2018-07-05 09:11:33 -07:00
Brian Burkhalter
8457eb629f 8194899: Remove unused sun.net classes
Reviewed-by: alanb, mchung, dfuchs, chegar, michaelm
2018-07-05 07:22:21 -07:00
Jesper Wilhelmsson
ecc1af23af Added tag jdk-12+1 for changeset 00b16d0457e4 2018-07-05 13:31:04 +02:00
Sibabrata Sahoo
136331b7f0 8205653: test/jdk/sun/management/jmxremote/bootstrap/RmiRegistrySslTest.java and RmiSslBootstrapTest.sh fail with handshake_failure
Test failure due to unsupported DSA keys

Reviewed-by: dfuchs, xuelei
2018-07-04 03:44:32 -07:00
Joe Darcy
da22bf8a17 8206114: Refactor langtools/tools/javac/classfiles/ClassVersionChecker.java
Reviewed-by: jjg
2018-07-03 16:14:46 -07:00
Joe Darcy
28e2dea71d 8206085: Refactor langtools/tools/javac/versions/Versions.java
Reviewed-by: jjg, forax, plevart, mcimadamore
2018-07-03 15:59:09 -07:00
Brian Burkhalter
aef5f86408 8202252: (aio) Closed AsynchronousSocketChannel keeps completion handler alive
Clear handler instance variable after use

Reviewed-by: rriggs, alanb
2018-07-03 15:02:46 -07:00
Naoto Sato
0a99860ff9 8206120: Add test cases for lenient Japanese era parsing
Reviewed-by: rriggs
2018-07-03 14:42:13 -07:00
Coleen Phillimore
3e4eba7668 8206309: Tier1 SA tests fail
Remove tests that should have been removed with JDK-8205534

Reviewed-by: hseigel
2018-07-03 15:40:08 -04:00
Patricio Chilano Mateo
209071d135 8134538: Duplicate implementations of os::lasterror
Method os::lasterror was moved to os_posix.cpp

Reviewed-by: hseigel, kbarrett, coleenp
2018-07-03 15:08:01 -04:00
Coleen Phillimore
c0ebf80159 8205534: Remove SymbolTable dependency from serviceability agent
Reviewed-by: gziemski, poonam, jgeorge, hseigel
2018-07-03 13:41:18 -04:00
Erik Joelsson
cfd42a97cc 8206087: windows-x64-cmp-baseline fails with The files do not have the same suffix type
Reviewed-by: tbell
2018-07-03 18:46:51 +02:00
Shashidhara Veerabhadraiah
bd0c60ff71 8195991: [TEST_BUG]:Regression manual Test java/awt/TrayIcon/RightClickWhenBalloonDisplayed/RightClickWhenBalloonDisplayed.html fails
Reviewed-by: serb, mhalder
2018-07-03 16:09:25 +05:30
Vivek Theeyarath
ac99e1d447 8177275: IllegalArgumentException when MH would have too many parameters is not specified for several methods
Updated spec and added tests

Reviewed-by: psandoz
2018-07-02 23:33:40 -07:00
Nils Eliasson
6cd1f27fcf 8205999: C2 compilation fails with "assert(store->find_edge(load) != -1) failed: missing precedence edge"
Backout 8204157 to state before 8192992

Reviewed-by: thartmann, mdoerr
2018-07-03 10:47:50 +02:00
Jesper Wilhelmsson
4222f3408c Merge 2018-07-03 02:07:49 +02:00
Joe Wang
977b9cae12 8204329: Java API doc for XMLStreamReader.next() needs to be clarified for the exception thrown when hasNext() method returns false
Reviewed-by: lancea, rriggs
2018-07-02 13:54:01 -07:00
Zhengyu Gu
9006ccdbbf 8205965: SIGSEGV on write to NativeCallStack::EMPTY_STACK
Made EMPTY_STACK non-const, so it will not be placed in read-only BSS section.

Reviewed-by: stuefe, martin
2018-07-02 16:28:09 -04:00
Krishna Addepalli
c4b2780bea 8197810: Test java/awt/Choice/SelectCurrentItemTest/SelectCurrentItemTest.html fails on Windows
Reviewed-by: serb, pbansal
2018-07-02 14:31:33 +05:30
Rahul Raghavan
29dc54093b 8203504: [Graal] org.graalvm.compiler.debug.test.DebugContextTest fails with java.util.ServiceConfigurationError
Added required uses statement

Reviewed-by: dnsimon, kvn
2018-07-02 00:55:24 -07:00
Tobias Hartmann
48942a6aba 8206093: compiler/graalunit/HotspotTest.java fails in CheckGraalIntrinsics
Ignore encodeBlock intrinsic.

Reviewed-by: kvn
2018-07-02 09:21:06 +02:00
Ivan Gerasimov
8774d70044 8204310: Simpler RandomAccessFile.setLength() on Windows
Reviewed-by: alanb
2018-06-29 17:35:04 -07:00
Daniil Titov
bebd49cf84 8206086: [Graal] JDI tests fail with com.sun.jdi.ObjectCollectedException
Reviewed-by: sspitsyn, cjplummer, amenkov
2018-06-29 12:34:03 -07:00
Joe Wang
bfb397a679 8190835: Subtraction with two javax.xml.datatype.Duration gives incorrect result
Reviewed-by: lancea
2018-06-29 10:13:24 -07:00
Roland Westrelin
8c2d9b5ff0 8202123: C2 Crash in Node::in(unsigned int) const+0x14
Reviewed-by: kvn, thartmann
2018-06-29 17:59:44 +02:00
David Holmes
1980056947 8206954: Test runtime/Thread/ThreadPriorities.java crashes with SEGV in pthread_getcpuclockid
Run the new runtime/jni/terminatedThread/TestTerminatedThread.java test in othervm mode

Reviewed-by: alanb, mikael
2018-07-10 03:14:55 -04:00
Vladimir Kozlov
f675eb67a6 8206952: java/lang/Class/GetPackageBootLoaderChildLayer.java fails with Graal
Don't run test with Graal

Reviewed-by: mchung, epavlova
2018-07-09 22:20:02 -07:00
John Jiang
a2a0138612 8203007: Address missing block coverage for ChaCha20 and Poly1305 algorithms
Add unit tests for ChaCha20Cipher, ChaCha20Poly1305Parameters and Poly1305

Reviewed-by: xuelei, jnimeh
2018-07-10 10:59:57 +08:00
David Holmes
5fcb3ecb4e 8205878: pthread_getcpuclockid is expected to return 0 code
Reviewed-by: cjplummer, amenkov, coleenp
2018-07-09 20:17:32 -04:00
Erik Joelsson
155ec2ab81 8206323: Missing some legal notices in docs bundle
Reviewed-by: mchung, tbell
2018-07-09 14:21:33 -07:00
Jonathan Gibbons
2214cd06a8 8185740: The help-doc.html generated by the doclet is outdated
Reviewed-by: sundar
2018-07-09 13:26:59 -07:00
Vivek Deshpande
29cd9fe2ea 8194740: UseSubwordForMaxVector causes performance regression
Reviewed-by: kvn, thartmann
2018-07-09 13:25:08 -07:00
Igor Ignatyev
cb2d33f02c 8206287: fix legal notice in hotspot tests
Reviewed-by: kvn, hseigel
2018-07-09 11:15:55 -07:00
Phil Race
e9c8e369b7 8206106: [solaris sparc] jck tests api/javax_print/PrintService failing
Reviewed-by: simonis, erikj
2018-07-09 10:25:55 -07:00
Phil Race
a62b057397 8205646: Broken link in jdk.jsobject
Reviewed-by: serb
2018-07-09 10:23:17 -07:00
Erik Joelsson
1e3516bc36 8206433: Several jib profiles missing autoconf dependency
Reviewed-by: tbell
2018-07-09 09:09:21 -07:00
Sergey Bylokhov
684a1ff69e 8205588: Deprecate for removal com.sun.awt.SecurityWarning
Reviewed-by: prr, kaddepalli
2018-07-09 19:09:29 +03:00
Gunter Haug
f36f4df68d 8206408: Add missing CPU/system info to vm_version_ext on PPC64
Reviewed-by: mdoerr, simonis
2018-07-09 12:51:58 +02:00
Sergey Bylokhov
51422fc2a9 8201611: Broken links in java.desktop javadoc
Reviewed-by: prr, kaddepalli
2018-07-09 16:36:05 +03:00
Martin Doerr
ea13adc07f 8206459: [s390] Prevent restoring incorrect bcp and locals in interpreter and avoid incorrect size of partialSubtypeCheckNode in C2
Reviewed-by: goetz
2018-07-09 15:26:58 +02:00
Andrew Dinn
d5c20788ae 8206163: AArch64: incorrect code generation for StoreCM
StoreCM may require planting a StoreStore barrier

Reviewed-by: aph, zyao, roland
2018-07-09 09:38:11 +01:00
Thomas Schatzl
cb9a168f8b 8205426: Humongous continues remembered set does not match humongous start region one after Remark
Remembered set states for humongous objects crossing an internal per-thread processing threshold could synchronized if the humongous continues regions were processed first.

Reviewed-by: ehelin, kbarrett
2018-07-09 10:19:51 +02:00
Weijun Wang
7ca2af2492 8198352: java.util.MissingResourceException: sun.security.util.AuthResources when trying to use com.sun.security.auth.module.UnixLoginModule
Reviewed-by: xuelei
2018-07-09 12:20:56 +08:00
David Holmes
d24f9d4c13 8205966: [testbug] New Nestmates JDI test times out with Xcomp on sparc
Reviewed-by: mikael, sspitsyn
2018-07-08 20:00:46 -04:00
Markus Grönlund
cb094826ec 8203943: eventThreadGroup was null in TestJavaBlockedEvent.java
Reviewed-by: egahlin
2018-07-08 11:54:08 +02:00
Liam Miller-Cushon
1fc1f68c3d 8204630: Generating an anonymous class with Filer#createClassFile causes an NPE in JavacProcessingEnvironment
Reviewed-by: jlahoda
2018-07-06 12:10:43 -07:00
Vladimir Kozlov
f1ce5c1456 8193126: Incorrect setting of MetaspaceSize and NewSizeThreadIncrease when using JVMCI compiler
Select maximum default values for JVMCI

Reviewed-by: dnsimon, iveresov
2018-07-06 13:45:41 -07:00
Phil Race
485b10778d 8206375: ProblemList update of bug ID for SwingFontMetricsTest
Reviewed-by: serb
2018-07-06 10:39:38 -07:00
Phil Race
dd12703f56 8206428: Upgrade JDK11 to harfbuzz 1.8.2
Reviewed-by: serb
2018-07-06 10:37:47 -07:00
Srinivas Dama
d9aa299526 8206450: Add JImageListTest.java to ProblemList.txt
Added JImageListTest.java to ProblemList.txt

Reviewed-by: dholmes
2018-07-06 13:38:56 +05:30
Volker Simonis
2e628779e4 8206436: sun/nio/cs/TestIBMBugs.java no longer compiles
Reviewed-by: mikael, stuefe, alanb
2018-07-06 09:22:18 +02:00
Igor Ignatyev
4ab3ee9f6d 8206429: [REDO] 8202561 clean up TEST.groups
Reviewed-by: kvn, dholmes, ctornqvi
2018-07-05 20:00:04 -07:00
Vladimir Kozlov
6096681762 8206324: compiler/whitebox/DeoptimizeFramesTest.java to ProblemList-graal.txt
Reviewed-by: dlong
2018-07-05 12:38:36 -07:00
Matthias Baesken
2db58ca8c3 8206394: missing ResourceMark in AOTCompiledMethod::metadata_do, AOTCompiledMethod::clear_inline_caches , CompiledMethod::clear_ic_stubs , CompiledMethod::cleanup_inline_caches_impl
Reviewed-by: kvn
2018-07-05 09:38:15 +02:00
Srinivas Dama
c216fe0f55 8198405: JImageExtractTest.java & JImageListTest.java failed in Windows
Make a directory readonly using nio file attribute AclEntry

Reviewed-by: jlaskey
2018-07-06 00:40:12 +05:30
Sergey Bylokhov
7485f6b5b9 8205454: &amp; is displayed in some Swing docs
Reviewed-by: prr, psadhukhan
2018-07-05 21:29:11 +03:00
Jan Lahoda
eaf0364068 8205418: Assorted improvements to source code model
Improving tree positions, better error recovery, fixing Trees.getScope for possibly erroneous lambdas.

Reviewed-by: jjg, mcimadamore, vromero
2018-06-29 10:41:10 +02:00
Krishna Addepalli
c8f1daa9eb 8194546: Choosier FileManagers
Reviewed-by: serb, prr, rhalade, skoivu
2018-06-29 10:28:05 +05:30
Joe Darcy
69191fc4cc 8206083: Make tools/javac/api/T6265137.java robust to JDK version changes
Reviewed-by: jjg
2018-06-28 17:49:13 -07:00
Mikael Vidstedt
c89978f4fd 8206022: Add test to check that the JVM accepts class files with version 56
Reviewed-by: hseigel, hseigel
2018-06-28 17:45:59 -07:00
Jonathan Gibbons
3ae58c7fdc 8202959: Rearrange the top and bottom navigation bar in the javadoc generated pages
Co-authored-by: Bhavesh Patel <bhavesh.x.patel@oracle.com>
Reviewed-by: darcy, jjg
2018-06-28 15:46:27 -07:00
Robin Westberg
736e57146d 8206006: Build failed on Windows
Reviewed-by: jwilhelm, dcubed
2018-06-28 22:28:41 +02:00
Jesper Wilhelmsson
3d8776d76c Added tag jdk-12+0 for changeset 95aad0c785e4 2018-06-28 21:11:50 +02:00
Joe Darcy
e56162b43d 8205615: Start of release updates for JDK 12
8205621: Increment JDK version for JDK 12
8193292: Add SourceVersion.RELEASE_12
8193290: Add source 12 and target 12 to javac
8205619: Bump maximum recognized class file version to 56 for JDK 12

Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Mikael Vidstedt <mikael.vidstedt@oracle.com>
Reviewed-by: alanb, smarks, jjg, mr, erikj, psandoz, dholmes
2018-06-27 21:01:12 -07:00
Jesper Wilhelmsson
bc45576579 Added tag jdk-12+0 for changeset c9cd3ec6a0eb 2018-06-28 19:55:44 +02:00
Rajan Halade
fb54f8a71f 8195774: Add Entrust root certificates
Reviewed-by: weijun
2018-06-28 11:41:45 -07:00
Stuart Marks
b228ede451 8205491: adjust reflective access checks
Reviewed-by: alanb, mchung, igerasim, rhalade, ahgross
2018-06-22 17:08:00 -07:00
Roman Kennke
cbcc690048 8205523: Explicit barriers for interpreter
Reviewed-by: eosterlund, coleenp
2018-06-22 16:07:15 +02:00
Roman Kennke
f62fa67625 8204969: Asserts in objArrayKlass.cpp need to use _raw variants of obj_addr_at()
Reviewed-by: tschatzl, eosterlund
2018-08-09 17:11:11 +02:00
Mikael Vidstedt
437a15817f Added tag jdk-12+6 for changeset 7939b3c4e408 2018-08-09 08:02:20 -07:00
Jean Christophe Beyler
dc45757347 8208242: Add @requires to vmTestbase/gc/g1 tests
Added classunloading must not be disabled and G1 is required to g1/unloading tests

Reviewed-by: kbarrett, tschatzl
2018-08-08 11:11:19 -07:00
Per Lidén
f8590345b7 8209127: ZGC: Improve error message when failing to map memory for mark stacks
Reviewed-by: eosterlund, tschatzl
2018-08-09 11:24:30 +02:00
Per Lidén
abb1e458eb 8209126: ZGC: ZMarkStackAllocator::is_initialized() never called
Reviewed-by: eosterlund, tschatzl
2018-08-09 11:24:30 +02:00
Per Lidén
6c7f0f0218 8209125: ZGC: Clean up ZServiceabilityCounters
Reviewed-by: eosterlund, tschatzl
2018-08-09 11:24:30 +02:00
Per Lidén
e05a66c789 8207756: ZGC: jstat should show CGC STW phases
Co-authored-by: Yasumasa Suenaga <yasuenag@gmail.com>
Reviewed-by: pliden, ysuenaga, eosterlund
2018-08-09 11:24:30 +02:00
Felix Yang
30fad2ce7d 8208656: Move java/util/Calendar/CalendarTestScripts tests into OpenJDK
Reviewed-by: naoto
2018-08-09 15:42:48 +08:00
Xin Liu
e5f3e1b60c 8207965: C2-only debug build fails
Reviewed-by: kvn, iignatyev
2018-08-08 18:38:34 -07:00
Jean Christophe Beyler
626a614146 8208303: Track JNI failures and fail tests
Fail in native code via  FatalException to signal test failure

Reviewed-by: amenkov, sspitsyn
2018-08-08 15:34:32 -07:00
Mandy Chung
90a76fe7d2 8202941: GenModuleInfoSource build tool does not detect missing semicolons
Reviewed-by: erikj
2018-08-08 14:40:02 -07:00
Coleen Phillimore
a7b66f6f5e 8208677: Move inner metaspace cleaning out of class unloading
Move to safepoint cleanup actions to do if needed.

Reviewed-by: eosterlund, hseigel
2018-08-08 15:24:21 -04:00
Daniel D. Daugherty
149026aa65 8209149: [TESTBUG] runtime/RedefineTests/RedefineRunningMethods.java needs a longer timeout
Reviewed-by: coleenp
2018-08-08 15:11:11 -04:00
Brian Burkhalter
52f2eca5d9 8193822: Remove unused newDirectByteBuffer and truncate methods from buffer classes
Reviewed-by: alanb, psandoz
2018-08-08 09:25:10 -07:00
Thomas Schatzl
bdfda4e19b 8208672: Enable -Wreorder in make files for gcc, clang
Reviewed-by: dholmes, ihse
2018-08-08 15:31:07 +02:00
Thomas Schatzl
9c0720b156 8208671: Runtime, JFR, Serviceability changes to allow enabling -Wreorder
Reviewed-by: dholmes, hseigel
2018-08-08 15:31:07 +02:00
Thomas Schatzl
e98c176026 8208670: Compiler changes to allow enabling -Wreorder
Reviewed-by: kvn
2018-08-08 15:31:06 +02:00
Thomas Schatzl
d702d5f8d2 8208669: GC changes to allow enabling -Wreorder
Reviewed-by: kbarrett
2018-08-08 15:31:06 +02:00
Chris Yin
a00eff193f 8208279: Add 8 JNDI tests to com/sun/jndi/dns/EnvTests/
Reviewed-by: vtewari, rriggs
2018-08-08 10:21:23 +08:00
Coleen Phillimore
a6a078ee4f 8208575: Remove Atomic::add/sub for short
Removed code to atomic::add for short because it's no longer used for Symbol.

Reviewed-by: iklam
2018-08-07 19:35:50 -04:00
Ioi Lam
1b2e7cbaef 8208999: Some use of Klass* should be replaced by InstanceKlass*
Klass::java_super() => InstanceKlass*; InstanceKlass::{local,transitive}_interfaces() => Array<InstanceKlass*>*

Reviewed-by: coleenp, hseigel
2018-08-07 15:45:07 -07:00
Nasser Ebrahim
01cc27f875 8208634: Add x-IBM-1129 charset
Reviewed-by: alanb, sherman
2018-08-07 16:07:47 -07:00
Claes Redestad
db4913ba5a 8209003: Consolidate use of empty collections in java.lang.module
Reviewed-by: alanb, mchung
2018-08-07 23:08:52 +02:00
Staffan Larsen
3be8d256e9 8031761: [TESTBUG] Add a regression test for JDK-8026328
Reviewed-by: kvn, iignatyev
2018-08-07 13:51:30 -07:00
Calvin Cheung
6f046a9f27 8208704: runtime/appcds/MultiReleaseJars.java timed out often in hs-tier7 testing
Increase timout to 2400 and reduce the amount of output

Reviewed-by: mseledtsov, jiangli
2018-08-07 09:44:39 -07:00
Matthias Baesken
4ce757492c 8208744: remove unneeded -DUSE_MMAP settings for JDK native libs builds
Reviewed-by: ihse, martin, alanb, dholmes
2018-08-03 07:59:01 +02:00
Vladimir Kozlov
77204ca163 8209023: fix 2 compiler tests to avoid JDK-8208690
Reviewed-by: dholmes, dcubed
2018-08-06 18:49:51 -07:00
Daniel D. Daugherty
a9fd33bf2f 8209029: ProblemList tests that fail due to 'Error attaching to process: Can't create thread_db agent!' in jdk-11+25 testing
Reviewed-by: dholmes, sspitsyn
2018-08-06 20:52:41 -04:00
Jean Christophe Beyler
b2042fe0ca 8079682: [mlvm] remove SAM code in MHTransformationGen
Remove SAM code from the test and remove related dead code

Reviewed-by: iignatyev
2018-08-06 14:23:02 -07:00
Alexandre Iline
013e6fd595 8208364: java/lang/reflect/callerCache/ReflectionCallerCacheTest.java missing module dependencies declaration
Reviewed-by: mchung
2018-08-06 15:35:44 -07:00
Paul Sandoz
70b706c224 8206955: MethodHandleProxies.asInterfaceInstance does not support default methods
Reviewed-by: mchung, plevart
2018-08-06 15:18:57 -07:00
Florian Weimer
cc248634a1 8208362: (bf) Long chains created by direct Buffer::slice
Reviewed-by: mr, psandoz, alanb
2018-08-06 14:55:04 -07:00
Joe Darcy
4bac00436d 8209024: Use SuppressWarnings on serialVersionUID fields in interfaces
Reviewed-by: bpb, rriggs, mullan
2018-08-06 14:29:22 -07:00
Ekaterina Pavlova
080d3bb21a 8194958: [Graal] disable compiler/c2/cr7200264 tests
Reviewed-by: kvn, tschatzl
2018-08-06 13:53:49 -07:00
Daniel D. Daugherty
963bb6c8be 8209020: ProblemList tests affected by JDK-8208778
Reviewed-by: hseigel
2018-08-06 16:15:09 -04:00
Harold Seigel
82186ce311 8208604: Metadata::print_value_string() compares 'this' to NULL
Remove the comparison and add asserts to check for NULL

Reviewed-by: coleenp, gziemski
2018-08-06 14:20:58 -04:00
Daniel D. Daugherty
831fdfe311 8209018: ProblemList tests affected by JDK-8208690
Reviewed-by: kvn
2018-08-06 13:57:26 -04:00
Pengfei Li
03d6ab3b09 8208623: [TESTBUG] runtime/LoadClass/LongBCP.java fails in AUFS file system
Limit the maximal file name length to 242 for AUFS file system

Reviewed-by: dholmes, redestad
2018-08-06 04:31:50 -04:00
Christoph Dreis
c1c4085139 8208998: Typo in ModueInfo.java, field for ModuleHashes should be moduleHashes
Reviewed-by: alanb
2018-08-05 19:16:31 +01:00
Joe Darcy
fb0b608284 8208782: Remove extra type in throws clause of SerialClob.writeObject
Reviewed-by: lancea
2018-08-03 21:06:15 -07:00
Ivan Gerasimov
d686431d78 8204667: Resources not freed on exception
Reviewed-by: skoivu, chegar
2018-06-20 18:02:22 -07:00
Joe Wang
e8fc5de2ab 8204497: Better formatting of decimals
Reviewed-by: rriggs, lancea, dfuchs, mschoene
2018-06-15 14:19:51 -07:00
Bhaktavatsal R Maram
dc7d03e19d 8202329: [AIX] Fix codepage mappings for IBM-943 and Big5
Reviewed-by: simonis, stuefe
2018-06-12 13:00:50 +05:30
Sergey Bylokhov
4f38d4ff72 8189604: possible hang in sun.awt.shell.Win32ShellFolder2$KnownFolderDefinition::<clinit>
Reviewed-by: prr, kaddepalli
2018-07-05 19:05:08 +03:00
Jesper Wilhelmsson
f85a6f0677 Added tag jdk-11+21 for changeset 14708e1acdc3 2018-07-05 13:26:50 +02:00
Thomas Stuefe
1adadc7882 8206243: java -XshowSettings fails if memory.limit_in_bytes overflows LONG.max
Reviewed-by: dholmes, bobv
2018-07-05 11:56:19 +02:00
Felix Yang
0fdb83a54c 8206378: Backout JDK-8202561
Reviewed-by: dholmes
2018-07-05 13:22:44 +08:00
Sibabrata Sahoo
99f911cc71 8206355: SSLSessionImpl.getLocalPrincipal() throws NPE
Fixed SSLSessionImpl.getLocalPrincipal() implementation when client side authentication is not enabled.

Reviewed-by: xuelei
2018-07-04 11:49:46 -07:00
Markus Grönlund
7129c3e786 8198346: assert(!_cld->claimed()) failed in TestObjectDescription.java
Reviewed-by: egahlin
2018-07-04 18:39:26 +02:00
Michael McMahon
5cbda815d0 8206001: Enable TLS1.3 by default in Http Client
Reviewed-by: dfuchs
2018-07-04 16:16:24 +01:00
Matthias Baesken
2e9d5e3d8a 8206145: dbgsysSocketClose - do not restart close if errno is EINTR [linux]
Reviewed-by: alanb, stuefe
2018-07-04 16:54:56 +02:00
Matthias Baesken
b913444be0 8206255: fix compiler/intrinsics/sha/cli/TestUseSHAOptionOnSupportedCPU.java jtreg test on linux s390x
Reviewed-by: stuefe
2018-07-03 12:40:42 +02:00
Nils Eliasson
9b281d9d05 8205999: C2 compilation fails with "assert(store->find_edge(load) != -1) failed: missing precedence edge"
Backout 8204157 to state before 8192992

Reviewed-by: thartmann, mdoerr
2018-07-03 09:11:00 +02:00
Srinivas Dama
8d46c49dde 8198819: tools/jimage/JImageExtractTest.java, fails intermittently at testExtract (macos)
Modified test to work on only modules extracted using jimage instead of files present in current directory

Reviewed-by: jlaskey
2018-07-04 17:49:21 +05:30
Per Lidén
657e35019d 8206316: ZGC: Preferred tmpfs mount point not found on Debian
Reviewed-by: kbarrett, tschatzl, ehelin
2018-07-04 12:04:02 +02:00
Per Lidén
e0399f6060 8205924: ZGC: Premature OOME due to failure to expand backing file
Reviewed-by: ehelin
2018-07-04 12:04:02 +02:00
Chris Yin
ffb2d0984e 8187069: The case auto failed with the java.lang.ClassNotFoundException: IPv6NameserverPlatformParsingTest exception
Reviewed-by: vtewari, dfuchs
2018-07-04 16:49:34 +08:00
Markus Grönlund
84d23a1596 8206254: Unable to complete emergency dump during safepoint
Reviewed-by: egahlin
2018-07-04 10:24:16 +02:00
Volker Simonis
7cefb320e9 8206173: MallocSiteTable::initialize() doesn't take function descriptors into account
Reviewed-by: stuefe, zgu
2018-07-04 09:21:19 +02:00
Per Lidén
41ecacc6a0 8206322: ZGC: Incorrect license header in gtests
Reviewed-by: kbarrett, tschatzl
2018-07-04 08:33:00 +02:00
Rachna Goel
19fd830161 8204603: Short week days, NaN value and timezone name are inconsistent between CLDR and Java in zh_CN, zh_TW locales
Handled languageALiases for supported locales of CLDR.

Reviewed-by: naoto
2018-07-04 11:55:11 +05:30
Bob Vandette
38fb1c72d8 Merge 2018-07-03 15:08:00 -04:00
Bob Vandette
ce271e6fde 8205928: [TESTBUG] jdk/internal/platform/docker/TestDockerMemoryMetrics
Reviewed-by: stuefe
2018-07-03 10:59:18 -04:00
Paul Sandoz
a0e9bf4280 8202769: jck test fails with C2: vm/jvmti/FollowReferences/fref001/fref00113/fref00113.html
Reviewed-by: kvn, coleenp
2018-07-02 10:09:01 -07:00
Igor Ignatyev
297b2fda0f 8202561: clean up TEST.groups file
Reviewed-by: kvn, iklam, epavlova
2018-06-28 10:51:02 -07:00
Mandy Chung
1fde649897 8206184: docs-reference build fails due to extlink.spec.version property not set
Reviewed-by: erikj
2018-07-03 11:16:25 -07:00
Vyom Tewari
309ace5285 8199177: Enhance JNDI lookups
Reviewed-by: michaelm, robm, skoivu, rhalade, chegar, rriggs, ahgross
2018-06-08 15:56:23 +05:30
Vyom Tewari
80abdde2c0 8200666: Improve LDAP support
Reviewed-by: rpatil, skoivu, rhalade, chegar, rriggs, mullan
2018-06-07 18:21:29 +05:30
Ioi Lam
b5f0945a72 8204267: Generate comments in -XX:+PrintInterpreter to link to source code
Changed __ macro to use Disassembler::hook()

Reviewed-by: coleenp, aph
2018-06-03 23:33:00 -07:00
Alex Menkov
7d8922221d 8201513: nsk/jvmti/IterateThroughHeap/filter-* are broken
Reviewed-by: sspitsyn, cjplummer
2018-07-13 10:10:51 -07:00
Nishit Jain
0cb3d46cd7 8193444: SimpleDateFormat throws ArrayIndexOutOfBoundsException when format contains long sequences of unicode characters
Reviewed-by: naoto, rriggs
2018-07-13 14:04:59 +05:30
Daniil Titov
a2a00af3c3 8191948: db error: InvalidTypeException: Can't assign double[][][] to double[][][]
Reviewed-by: sspitsyn, amenkov
2018-07-12 22:53:35 -07:00
Valerie Peng
b0af57a018 8179098: Crypto AES/ECB encryption/decryption performance regression (introduced in jdk9b73)
Do bounds check per encryption/decryption call instead of per block

Reviewed-by: ascarpino, redestad
2018-07-13 02:36:42 +00:00
Weijun Wang
b8d80042d7 8206189: sun/security/pkcs12/EmptyPassword.java fails with Sequence tag error
Reviewed-by: xuelei
2018-07-12 08:44:39 +08:00
Mikael Vidstedt
6ffd168ad1 8207011: Remove uses of the register storage class specifier
Reviewed-by: kbarrett, kvn
2018-07-12 17:29:48 -07:00
Gary Adams
539a39c5f6 8206007: nsk/jdb/exclude001 test is taking a long time on some builds
Reviewed-by: cjplummer, sspitsyn
2018-07-12 10:41:44 -04:00
Leonid Mesnik
cd45167430 8139876: Exclude hanging nsk/stress/stack from execution with deoptimization enabled
Reviewed-by: kvn, mseledtsov
2018-07-12 13:32:45 -07:00
Joe Darcy
90518f0635 8028563: Remove javac support for 6/1.6 source and target values
Reviewed-by: jjg, erikj, henryjen
2018-07-12 14:13:15 -07:00
Joe Wang
88a2f93966 8194680: StartElement#getAttributes and getNamespaces refer to incorrect package
Reviewed-by: jjg, lancea
2018-07-12 12:06:22 -07:00
Ivan Gerasimov
3496969f66 8206122: Use Queue in place of ArrayList when need to remove first element
Reviewed-by: martin, jjg, vromero
2018-07-12 11:32:14 -07:00
Ivan Gerasimov
051dfe9fb4 8207060: Memory leak when malloc fails within WITH_UNICODE_STRING block
Reviewed-by: vtewari, rriggs
2018-07-12 11:18:01 -07:00
Stuart Marks
d51ccbc325 8197925: Better stack walking
Reviewed-by: alanb, skoivu, rriggs, igerasim, rhalade, darcy
2018-05-31 11:31:20 -07:00
Brent Christian
a6eacc52e0 8195874: Improve jar specification adherence
Also reviewed by Chris Ries <chris.ries@oracle.com>

Reviewed-by: alanb, mchung, rriggs
2018-05-29 10:27:45 -07:00
Athijegannathan Sundararajan
b2ca521a02 8202936: Improve script engine support
Reviewed-by: jlaskey, ahgross, rhalade
2018-05-18 13:34:42 +05:30
Harold Seigel
6c0cc8929b 8199226: Improve field accesses
Reviewed-by: acorn, ahgross, rhalade
2018-05-14 09:05:20 -04:00
Phil Race
41c52b261c 8200648: Make midi code more sound
Reviewed-by: serb, mschoene, rhalade
2018-04-23 16:15:26 -07:00
Adam Petcher
d45e830907 8201756: Improve cipher inputs
Clarify spec of CipherInputStream in Javadoc comments

Reviewed-by: ascarpino
2018-04-23 12:01:46 -04:00
Weijun Wang
a58b68027b 8194534: Manifest better support
Reviewed-by: mchung, igerasim
2018-04-17 15:55:49 +08:00
Adam Petcher
023ee573d3 8200332: Improve GCM counting
Reviewed-by: ascarpino
2018-04-09 14:10:56 -04:00
Xueming Shen
cd8e70a35c 8199172: Improve jar attribute checks
Reviewed-by: psandoz, alanb
2018-04-04 13:55:30 -07:00
Vyom Tewari
627e310ba5 8199110: Address Internet Addresses
Reviewed-by: chegar, rriggs, igerasim, skoivu, rhalade
2018-03-30 08:37:31 +05:30
Xueming Shen
02876bfceb 8197881: Better StringBuilder support
Reviewed-by: rriggs
2018-03-28 08:42:45 -07:00
Xueming Shen
087ea6befb 8199547: Exception to Pattern Syntax
Reviewed-by: rriggs
2018-03-15 16:04:30 -07:00
Weijun Wang
532d4a59c6 8196897: Improve PRNG support
Reviewed-by: valeriep, mullan, igerasim
2018-03-08 14:04:39 +08:00
David Holmes
dfcc6b3878 8211909: JDWP Transport Listener: dt_socket thread crash
Reviewed-by: dcubed, dsamersoff
2018-10-16 19:07:47 -04:00
Jamil Nimeh
a40d0a0ee1 8210989: RSASSA-PSS certificate cannot be selected for client auth on TLSv1.2
Reviewed-by: xuelei
2018-10-16 12:05:57 -07:00
Mandy Chung
a9b4ac9c37 8212197: OpenDataException thrown when constructing CompositeData for StackTraceElement
Reviewed-by: alanb
2018-10-16 11:47:33 -07:00
Jamil Nimeh
180a8773fb 8211866: TLS 1.3 CertificateRequest message sometimes offers disallowed signature algorithms
Reviewed-by: xuelei
2018-10-16 11:24:41 -07:00
Aleksey Shipilev
b6e77e4285 8212177: Epsilon alignment adjustments can overflow max TLAB size
Reviewed-by: pliden, tschatzl
2018-10-16 17:43:30 +02:00
Roger Riggs
8dd0b1f061 8192939: Remove Finalize methods from FileInputStream and FileOutputStream
Reviewed-by: alanb, iris, mchung
2018-10-16 10:55:28 -04:00
Harold Seigel
794d864feb 7041262: VM_Version should be called instead of Abstract_VM_Version so that overriding works
Change calls to Abstract_VM_Version methods to be calls to VM_Version methods.

Reviewed-by: coleenp, kbarrett, dholmes
2018-10-16 11:08:46 -04:00
Brian Burkhalter
4fe37df932 8212212: (bf) Incorrect path to stream preprocessor source in java.nio Buffer test scripts
Reviewed-by: alanb
2018-10-16 07:49:08 -07:00
Bob Vandette
86a0c85f6b Merge 2018-10-16 09:55:30 -04:00
Bob Vandette
6a7fdffe3b 8211740: [AOT] -XX:AOTLibrary doesn't accept windows path
Reviewed-by: kvn, iignatyev
2018-10-16 09:54:28 -04:00
Hannes Wallnöfer
bfb6aa4821 8210683: Search result display order reversed for overloaded entries
Reviewed-by: jjg
2018-10-16 15:05:03 +02:00
Tobias Hartmann
6b83ac96ab 8210215: C2 should optimize trichotomy calculations
Ideal transformation to optimize trichotomic comparisons.

Reviewed-by: kvn, jrose
2018-10-16 14:17:19 +02:00
Erik Österlund
0192c14c9b 8210498: nmethod entry barriers
Reviewed-by: kvn, pliden
2018-10-16 13:18:22 +02:00
Erik Österlund
e39c5811b5 8210330: Make CLD claiming allow multiple claim bits
Reviewed-by: pliden, coleenp
2018-10-16 13:16:11 +02:00
Erik Österlund
782fa608d2 8210064: ZGC: Introduce ZConcurrentRootsIterator for scanning a subset of strong IN_NATIVE roots concurrently
Reviewed-by: pliden, kbarrett
2018-10-16 13:14:18 +02:00
Per Lidén
5f2b11d373 8212181: ZGC: Fix incorrect root iteration in ZHeapIterator
Reviewed-by: eosterlund
2018-10-16 13:43:04 +02:00
Daniel Fuchs
1e40cb4052 8211960: broken links in java.util.logging
Reviewed-by: mchung, chegar
2018-10-16 12:38:46 +01:00
Robin Westberg
7c3ce3aee0 8212004: Optional compile_commands.json field not compatible with older libclang
Reviewed-by: erikj
2018-10-16 11:32:49 +02:00
Thomas Schatzl
475df1c06a 8210492: PLAB object promotion events report object sizes in words
Properly scale values passed to the JFR event.

Reviewed-by: phh, jcbeyler
2018-10-16 11:27:21 +02:00
Ivan Gerasimov
3a7104760a 8196224: Even better Internet address support
Reviewed-by: chegar, rriggs, rhalade, vtewari
2018-02-05 14:18:22 -08:00
Sergey Bylokhov
d68506157a 8191239: Improve desktop file usage
Reviewed-by: prr, rhalade, aghaisas
2018-01-31 18:13:13 -08:00
Vyom Tewari
d5e9b33541 8193419: Better Internet address support
Reviewed-by: chegar, rriggs, igerasim, skoivu, rhalade
2018-01-18 13:55:26 +05:30
Ekaterina Pavlova
addc5a823f 8207761: Split compiler/graalunit/JttReflectFTest.java
Reviewed-by: kvn
2018-07-18 14:44:04 -07:00
Gustavo Romero
d3201f3e40 8205578: jtreg: Fix failing TestRTMAbortRatio on PPC64
Reviewed-by: iignatyev, kvn
2018-06-24 17:11:17 -04:00
Gustavo Romero
8d3616ba4e 8205390: jtreg: Fix failing TestRTMSpinLoopCount on PPC64
Reviewed-by: kvn, iignatyev
2018-06-23 18:02:46 -04:00
Gustavo Romero
862bb272ae 8205582: PPC64: RTM: Fix counter for aborts on nested transactions
Reviewed-by: mdoerr, goetz
2018-07-06 16:25:07 -04:00
Gustavo Romero
32ec4d3882 8205581: PPC64: RTM: Fix abort on native calls
Reviewed-by: mdoerr, goetz
2018-06-26 08:33:17 -04:00
Gustavo Romero
f4a279935b 8205580: PPC64: RTM: Don't retry lock on abort if abort was intentional
Reviewed-by: mdoerr, goetz
2018-06-24 21:48:42 -04:00
Ekaterina Pavlova
5df013d4e6 8207380: compiler/graalunit/JttLangMTest.java timeout
Reviewed-by: kvn
2018-07-18 13:24:25 -07:00
Aleksey Shipilev
ea6cea5d51 8206931: Misleading "COMPILE SKIPPED: invalid non-klass dependency" compile log
Reviewed-by: vlivanov, never
2018-07-11 08:44:00 +02:00
Weijun Wang
bde972d645 8202837: PBES2 AlgorithmId encoding error in PKCS12 KeyStore
Reviewed-by: xuelei
2018-07-19 00:14:40 +08:00
Weijun Wang
a825fe0a2d 8207250: setUseClientMode post handshake with the same value as before does not throw IAE
Reviewed-by: xuelei
2018-07-19 00:14:29 +08:00
Jean Christophe Beyler
8818f46285 8207763: serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatRateTest.java failed with Error. Parse Exception: Can't find source file: HeapMonitorStatIntervalTest.java
Rename the test.

Reviewed-by: amenkov, sspitsyn
2018-07-18 11:57:51 -04:00
Martin Doerr
d5a05363ef 8207342: error occurred during error reporting (printing register info)
Os::print_location misses a check if the pointer is readable.

Reviewed-by: goetz, coleenp
2018-07-18 11:27:14 +02:00
Jean Christophe Beyler
3380b0d0ef 8205725: Update the JVMTI Spec for Heap Sampling
Update the JVMTI Spec for Heap Sampling

Reviewed-by: amenkov, sspitsyn
2018-07-17 19:59:38 -07:00
Jean Christophe Beyler
4e92c2dfdc 8205652: serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatRateTest.java fails
Fix the StatRateTest test from the HeapMonitor package

Reviewed-by: amenkov, sspitsyn
2018-07-17 17:52:03 -07:00
Jean Christophe Beyler
6f9cb3f9ca 8205541: serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatArrayCorrectnessTest.java fails with Should not have any events stored yet
Fix StatArray and StatObject tests from the HeapMonitor package

Reviewed-by: amenkov, sspitsyn
2018-07-17 15:09:27 -07:00
Daniil Titov
a1dda2a3fa 8207261: [Graal] JDI and JDWP tests that consume all memory should be filtered out to not run with Graal
Reviewed-by: sspitsyn, cjplummer
2018-07-17 11:20:16 -07:00
Adam Petcher
108461949f 8206929: Check session context for TLS 1.3 session resumption
Additional checks to prevent TLS 1.3 sessions from being resumed when they shouldn't

Reviewed-by: xuelei
2018-07-17 13:04:40 -04:00
Aleksei Voitylov
2c82c9e1bd 8207240: AARCH64: C2-only VM does not build
Reviewed-by: shade
2018-07-17 19:25:45 +03:00
Andrew Haley
d326744b13 8207345: AArch64: Trampoline generation code reads from unitialized memory
Reviewed-by: shade
2018-07-17 15:28:17 +01:00
Weijun Wang
da18d08006 8207318: KeyStore#getInstance(File, LoadStoreParameter) does not load the keystore
Reviewed-by: mullan
2018-07-17 22:22:00 +08:00
Coleen Phillimore
6caaf8e2f2 Merge 2018-07-17 09:37:24 -04:00
Chris Hegarty
67149b99fd 8207265: Bad HTML in {@link} in HttpResponse.BodySubscribers.ofPublisher
Reviewed-by: michaelm
2018-07-17 12:22:41 +01:00
Priya Lakshmi Muthuswamy
c1f5adbe18 8207190: JDK 11 javadoc generates bad code example
Reviewed-by: sundar
2018-07-17 16:49:55 +05:30
Dean Long
5f29406d2c 8181855: [Graal] runtime/ReservedStack/ReservedStackTest.java triggers: assert(thread->deopt_mark() == __null) failed: no stack overflow from deopt blob/uncommon trap
Reviewed-by: kvn
2018-07-16 15:09:19 -07:00
Brian Burkhalter
cbefa6b920 8206448: (fs) Extended attributes assumed to be enabled on ext3 (lnx)
Assume extended attributes are only explicitly enable on ext3

Reviewed-by: mbaesken, alanb
2018-07-16 10:58:28 -07:00
Lutz Schmidt
96cf046edc 8206271: CodeHeap State Analytics must digest new method state
Reviewed-by: kvn, mdoerr, thartmann
2018-07-16 16:57:37 +02:00
Jan Lahoda
5333f197be 8207032: Compilation succeeds without checking readability when --add-exports used
Ensuring --add-exports are only propagated when the target module reads the exporting module.

Reviewed-by: vromero, jjg
2018-07-16 16:31:33 +02:00
Jan Lahoda
d103b59ac3 8189747: JDK9 javax.lang.model.util.Elements#getTypeElement regressed 1000x in performance
Caching the results of Elements.getTypeElement/getPackageElement

Reviewed-by: darcy
2018-07-16 12:58:49 +02:00
Boris Ulasevich
8636e943f2 8206265: aarch64 jtreg: assert in TestOptionsWithRanges.jtr
Limit flag range to don't overflow 12bit instruction operand

Reviewed-by: aph, dsamersoff
2018-07-15 20:15:17 +03:00
Goetz Lindenmaier
fc20a5d86b 8207233: Minor improvements of jdk C-coding
Reviewed-by: rriggs, prr
2018-07-13 17:42:24 +02:00
Coleen Phillimore
8b883bd145 8206471: Race with ConcurrentHashTable deleting items on insert with cleanup thread
Only fetch Node::next once and use that result.

Reviewed-by: hseigel, dholmes
2018-07-10 11:13:33 -04:00
Patric Hedlin
2edd37a6ac 8191339: [JVMCI] BigInteger compiler intrinsics on Graal
Reviewed-by: kvn
2017-12-06 13:07:21 +01:00
Roland Westrelin
8f4456e77a 8211451: ~2.5% regression on compression benchmark starting with 12-b11
Reviewed-by: kvn, thartmann
2018-11-08 10:20:04 +01:00
Claes Redestad
f503b0dc74 8214045: Missing explicit dependencies of build-microbenchmark cause intermittent build failure
Reviewed-by: ihse, dholmes
2018-11-19 13:49:50 +01:00
Gary Adams
9dc8115234 8213916: no copyright in signature.html
Reviewed-by: sspitsyn, rriggs, jcbeyler
2018-11-19 07:05:13 -05:00
Aleksey Shipilev
ffeae5bd65 8212070: Introduce diagnostic flag to abort VM on failed JIT compilation
Reviewed-by: mikael, thartmann
2018-11-19 11:51:27 +01:00
Roland Westrelin
b146cbfc10 8213779: Loop opts anti dependent store detection should ignore uncommon trap calls
Reviewed-by: kvn
2018-11-13 09:59:50 +01:00
Sean Coffey
63b433923c 8210838: Override javax.crypto.Cipher.toString()
Reviewed-by: mullan, weijun
2018-11-19 09:56:42 +00:00
Bernard Blaser
dc4be9066f 8214027: Reinstate testB_mem_imm pattern in x86_64.ad
Reviewed-by: rkennke
2018-11-18 19:45:33 +01:00
Ioi Lam
26cf1a832b 8213948: Solaris-X64 build fails with compact hashtable
Reviewed-by: dcubed, shade
2018-11-16 17:46:15 -08:00
Richard Reingruber
e310d296e2 8213902: com/sun/jdi/SetLocalWhileThreadInNative.java times out
Reviewed-by: dholmes, jcbeyler
2018-11-16 15:51:29 +01:00
Aleksey Shipilev
0c94b004e6 8214004: Missing space between compiler thread name and task info in hs_err
Reviewed-by: dcubed, zgu
2018-11-17 13:48:50 +01:00
Weijun Wang
c20332c412 8212003: Deprecating the default keytool -keyalg option
Reviewed-by: mullan, xuelei
2018-11-17 18:11:23 +08:00
Jean Christophe Beyler
3e936d3cd9 8212931: HeapMonitorStatIntervalTest.java fails due average calculation
Added a method to get the actual size

Reviewed-by: amenkov, sspitsyn
2018-11-16 19:27:21 -08:00
Calvin Cheung
8761824649 8201375: Add the AllowArchivingWithJavaAgent diagnostic vm option to allow the use of the -javaagent option during CDS dumping
Allow Java agent during CDS dumping if the AllowArchivingWithJavaAgent dignostic option is specified.

Reviewed-by: iklam, jiangli, sspitsyn, dcubed
2018-11-16 16:10:25 -08:00
Claes Redestad
7a30c97753 8061281: Microbenchmark suite build support, directory layout and sample benchmarks
8061282: Migrate jmh-jdk-microbenchmarks into the JDK

Co-authored-by: Magnus Ihse Bursie <magnus.ihse.bursie@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Staffan Friberg <sfriberg@kth.se>
Reviewed-by: ecaspole, mchung, erikj, ihse
2018-11-16 23:39:51 +01:00
Jiangli Zhou
14b7467279 8213898: CDS dumping of springboot asserts in G1ArchiveAllocator::alloc_new_region
HeapRegionManager::find_highest_free needs to check if the region obtained from the HeapRegionManager::_regions is available.

Reviewed-by: tschatzl, sjohanss
2018-11-16 13:23:50 -05:00
Erik Joelsson
1804d6ce65 8214003: Limit default test jobs based on memory size
Reviewed-by: shade, tbell
2018-11-16 09:49:05 -08:00
Dean Long
bfc1488468 8213959: add org.graalvm.compiler.replacements.test.StringCompressInflateTest to graal problem list
Reviewed-by: thartmann, kvn
2018-11-16 09:35:39 -08:00
Boris Ulasevich
b6f1dd8d68 8213947: ARM32: failed check_simd should set UsePopCountInstruction to false
Reviewed-by: kvn
2018-11-16 19:30:11 +03:00
Boris Ulasevich
11c5e7968b 8213794: ARM32: disable TypeProfiling, CriticalJNINatives, Serviceablity tests for ARM32
Reviewed-by: dholmes
2018-11-16 19:29:40 +03:00
Boris Ulasevich
28f45defae 8213410: UseCompressedOops requirement check fails fails on 32-bit system
Reviewed-by: dholmes
2018-11-16 19:29:20 +03:00
Erik Joelsson
4a2d78b9e4 8213906: Update arm devkits with libXrandr headers
Reviewed-by: tbell, prr
2018-11-16 08:25:46 -08:00
Coleen Phillimore
673c68d993 8213092: Add more runtime locks for concurrent class unloading
Add locks for calling CLDG::purge concurrently as well and for calling SystemDictionary::do_unloading concurrently.

Reviewed-by: eosterlund, hseigel
2018-11-16 10:54:04 -05:00
Coleen Phillimore
dce8ff4dba 8213751: ClassLoaderDataGraph::cld_do() should sometimes require CLDG_lock
Add version of loaded_cld_do for runtime calls.

Reviewed-by: eosterlund, rehn
2018-11-16 07:30:40 -05:00
Matthias Baesken
93a6b7e355 8211326: add OS user related information to hs_err file
Reviewed-by: dholmes, stuefe
2018-11-15 17:08:59 +01:00
Dora Zhou
2b38340ad7 8210408: Refactor java.util.ResourceBundle:i18n shell tests to plain java tests
Reviewed-by: naoto
2018-11-15 21:53:30 -08:00
Jamsheed Mohammed C M
6c75023f1d 8212779: ADL Parser does not check allocation return values in all cases
Made to fail gracefully in case of malloc failure.

Reviewed-by: kvn
2018-11-15 21:26:35 -08:00
Kim Barrett
5e0d5efe4c 8213352: Separate BufferNode allocation from PtrQueueSet
Move free-list management and allocation to new class.

Reviewed-by: tschatzl, sjohanss
2018-11-15 19:59:10 -05:00
David Holmes
5e0ae53450 8213723: More Monitor/mutex initialization management
8213893: StringTable_lock is unused

Reviewed-by: tschatzl, dcubed, coleenp
2018-11-15 17:55:41 -05:00
Igor Ignatyev
6b0d1af7fa 8213926: WB_EnqueueInitializerForCompilation requests compilation for NULL
Reviewed-by: kvn, roland
2018-11-15 14:01:10 -08:00
Igor Ignatyev
e53852dd51 8213922: fix ctw stand-alone build
Reviewed-by: kvn, roland
2018-11-15 14:01:08 -08:00
Dean Long
971575362a 8210777: Update Graal
Reviewed-by: kvn
2018-11-15 09:04:07 -08:00
Aleksey Shipilev
c8ebf4da3b 8213373: Bulk MarkBitMap clearing methods
Reviewed-by: rkennke, zgu
2018-11-15 21:05:47 +01:00
Man Cao
cc8ee84d59 8213829: Remove circular dependency between g1CollectedHeap and g1ConcurrentMark
Improve include statements related to g1CollectedHeap.inline.hpp

Reviewed-by: kbarrett, tschatzl
2018-11-13 22:08:44 -08:00
Adam Petcher
12d64aaeba 8213363: X25519 private key PKCS#8 encoding/decoding is incorrect
Fixed private key format to match spec in RFC 8410

Reviewed-by: mullan
2018-11-15 13:22:29 -05:00
Daniil Titov
52bee8fe04 8203174: [Graal] JDI tests fail with Unexpected exception: com.sun.jdi.ObjectCollectedException
Reviewed-by: sspitsyn, cjplummer
2018-11-15 09:56:49 -08:00
Nils Eliasson
898b4d83c0 8213538: VM crashes when MaxVectorSize is set to 0, 1 or 2
Require MaxVectorSize minimum 4 on 64 bit

Reviewed-by: kvn, thartmann
2018-11-15 09:45:18 +01:00
Severin Gehwolf
1fa2af5b82 8213736: Build fails with LOG=debug on F28 after JDK-8210958
Add --no-print-directory to make invocation of create-main-targets-include

Reviewed-by: erikj, tbell
2018-11-14 09:34:46 +01:00
Matthias Baesken
e552242db6 8211106: [windows] Update OS detection code to recognize Windows Server 2019
Reviewed-by: alanb, clanger, bobv
2018-10-02 13:48:08 +02:00
Michael McMahon
1b34ea35c9 8213616: URLPermission with query or fragment behaves incorrectly
Reviewed-by: chegar, dfuchs
2018-11-15 11:26:46 +00:00
Markus Grönlund
8ed728c905 8210024: JFR calls virtual is_Java_thread from ~Thread()
Reviewed-by: kbarrett, dholmes, dcubed, egahlin
2018-11-15 11:10:04 +01:00
Roman Kennke
acc32136c3 8213615: GC/C2 abstraction for escape analysis
Reviewed-by: kvn, roland
2018-11-15 10:59:56 +01:00
Sibabrata Sahoo
bf9fb45c85 8211787: javax/net/ssl/TLSCommon/TLSTest.java throws java.net.SocketTimeoutException: Read timed out
Java.net.SocketTimeoutException: Read timed out

Reviewed-by: xuelei
2018-11-14 23:12:19 -08:00
Priya Lakshmi Muthuswamy
92e5c54dec 8206475: Repeated word in error message
Reviewed-by: sundar
2018-11-15 11:23:43 +05:30
Jesper Wilhelmsson
25c6c908f1 Added tag jdk-12+20 for changeset 40098289d580 2018-11-15 01:58:53 +01:00
Jonathan Gibbons
b31ac98b6e 8213913: Redundant HTML in java.se/module-info.java
Reviewed-by: lancea, mchung
2018-11-14 16:27:11 -08:00
Jonathan Gibbons
37dc9e2a0d 8213910: Invalid HTML in java.net.http.HttpClient
Reviewed-by: mchung, darcy
2018-11-14 16:11:21 -08:00
Jiangli Zhou
f049167354 8213713: Minor issues during MetaspaceShared::initialize_runtime_shared_and_meta_spaces
1)Populate MetaspaceShared::_core_spaces_size early at mapping time; 2)Fix FileMapInfo::validate_shared_path_table to report failure properly; 3)Remove dead code in FileMapInfo::validate_shared_path_table.

Reviewed-by: iklam, ccheung
2018-11-14 18:49:02 -05:00
Jean Christophe Beyler
d7d4bc9fdd 8213622: Windows VS2013 build failure - "'snprintf': identifier not found"
Replace snprintf with strlen and memcpy

Reviewed-by: dholmes, mvala, kbarrett
2018-11-14 12:25:15 -08:00
Naoto Sato
98db2d5580 8213818: @return has already been specified
Reviewed-by: rriggs
2018-11-14 11:42:40 -08:00
Roman Kennke
2abb0a31aa 8213795: Force explicit null check on patching placeholder offset
Reviewed-by: kvn, adinn
2018-11-14 18:57:47 +01:00
Martin Balao
7c14ebfcd0 8204142: AWT hang occurs when sequenced events arrive out of sequence in multiple AppContexts
Improvements on the synchronization of SequencedEvent events from different AppContexts

Reviewed-by: serb
2018-11-09 10:34:19 -03:00
Erik Joelsson
24eb1aa0eb 8213709: jdk/javadoc/doclet/testValueTag/TestValueTagInModule.java missing modules declaration
Reviewed-by: jjg
2018-11-14 09:31:38 -08:00
Erik Joelsson
03a8cdece5 8211727: Adjust default concurrency settings for running tests on Sparc
Reviewed-by: ctornqvi, tbell, mikael
2018-11-14 09:26:28 -08:00
Patricio Chilano Mateo
98d92b0b6b 8213708: Different #ifdef guards cause incorrect use of Monitor::check_block_state()
Wrapped check_block_state() method in DEBUG_ONLY macro and make the use of the latter more consistent

Reviewed-by: dcubed, dholmes
2018-11-14 09:50:01 -05:00
Michael McMahon
028f2e14b3 8213189: Make restricted headers in HTTP Client configurable and remove Date by default
Reviewed-by: dfuchs
2018-11-14 14:23:21 +00:00
15580 changed files with 616696 additions and 582977 deletions

15
.gitignore vendored Normal file
View File

@@ -0,0 +1,15 @@
/build/
/dist/
/.idea/
nbproject/private/
/webrev
/.src-rev
/.jib/
.DS_Store
.metadata/
.recommenders/
test/nashorn/script/external
test/nashorn/lib
NashornProfile.txt
**/JTreport/**
**/JTwork/**

40
.hgtags
View File

@@ -490,7 +490,43 @@ a11c1cb542bbd1671d25b85efe7d09b983c48525 jdk-11+15
02934b0d661b82b7fe1052a04998d2091352e08d jdk-11+16
64e4b1686141e57a681936a8283983341484676e jdk-11+17
e1b3def126240d5433902f3cb0e91a4c27f6db50 jdk-11+18
fb8b3f4672774e15654958295558a1af1b576919 jdk-11+19
fb8b3f4672774e15654958295558a1af1b576919 jdk-11+19
36ca515343e00b021dcfc902e986d26ec994a2e5 jdk-11+19
95aad0c785e497f1bade3955c4e4a677b629fa9d jdk-12+0
9816d7cc655e53ba081f938b656e31971b8f097a jdk-11+20
14708e1acdc3974f4539027cbbcfa6d69f83cf51 jdk-11+21
00b16d0457e43d23f6ca5ade6b243edce62750a0 jdk-12+1
9937ef7499dcd7673714517fd5e450410c14ba4e jdk-11+22
69b438908512d3dfef5852c6a843a5778333a309 jdk-12+2
1edcf36fe15f79d6228d1a63eb680878e2386480 jdk-11+23
990db216e7199b2ba9989d8fa20b657e0ca7d969 jdk-12+3
ea900a7dc7d77dee30865c60eabd87fc24b1037c jdk-11+24
499b873761d8e8a1cc4aa649daf04cbe98cbce77 jdk-12+4
331888ea4a788df801b1edf8836646cd25fc758b jdk-11+25
f8696e0ab9b795030429fc3374ec03e378fd9ed7 jdk-12+5
945ba9278a272a5477ffb1b3ea1b04174fed8036 jdk-11+26
7939b3c4e4088bf4f70ec5bbd8030393b653372f jdk-12+6
9d7d74c6f2cbe522e39fa22dc557fdd3f79b32ad jdk-11+27
ef57958c7c511162da8d9a75f0b977f0f7ac464e jdk-12+7
76072a077ee1d815152d45d1692c4b36c53c5c49 jdk-11+28
492b366f8e5784cc4927c2c98f9b8a3f16c067eb jdk-12+8
31b159f30fb281016c5f0c103552809aeda84063 jdk-12+9
8f594f75e0547d4ca16649cb3501659e3155e81b jdk-12+10
f0f5d23449d31f1b3580c8a73313918cafeaefd7 jdk-12+11
15094d12a632f452a2064318a4e416d0c7a9ce0c jdk-12+12
511a9946f83e3e3c7b9dbe1840367063fb39b4e1 jdk-12+13
8897e41b327c0a5601c6ba2bba5d07f15a3ffc91 jdk-12+14
8897e41b327c0a5601c6ba2bba5d07f15a3ffc91 jdk-12+14
6f04692c7d5137ee34a6bd94c0c8a6c9219cb127 jdk-12+14
f8626bcc169813a4b2a15880386b952719d1d6d1 jdk-12+15
199658d1ef860cdc17055b4fd3e94b057f292fe9 jdk-12+16
eefa65e142af305923d2adcd596fab9c639723a1 jdk-12+17
e38473506688e0995e701fc7f77d5a91b438ef93 jdk-12+18
dc1f9dec2018a37fedba47d8a2aedef99faaec64 jdk-12+19
40098289d5804c3b5e7074bc75501a81e70d9b0d jdk-12+20
f8fb0c86f2b3d24294d39c5685a628e1beb14ba7 jdk-12+21
732bec44c89e8b93a38296bf690f97b7230c5b6d jdk-12+22
eef755718cb24813031a842bbfc716a6cea18e9a jdk-12+23
cc4098b3bc10d1c390384289025fea7b0d4b9e93 jdk-13+0
7d4397b43fa305806160785a4c7210600d59581a jdk-12+24
11033c4ada542f9c9a873314b6ecf60af19e8256 jdk-13+1
7496df94b3b79f3da53925d2d137317715f11d97 jdk-12+25

View File

@@ -1,2 +1,2 @@
project=jdk10
project=jdk
bugids=dup

View File

@@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2009, 2018, 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
@@ -49,7 +49,7 @@ do
;;
-o | --output )
IDEA_OUTPUT=$2
IDEA_OUTPUT=$2/.idea
shift
;;
@@ -64,28 +64,25 @@ do
shift
done
mkdir $IDEA_OUTPUT || exit 1
mkdir -p $IDEA_OUTPUT || exit 1
cd $IDEA_OUTPUT; IDEA_OUTPUT=`pwd`
if [ "x$TOPLEVEL_DIR" = "x" ] ; then
cd $SCRIPT_DIR/..
TOPLEVEL_DIR=`pwd`
cd $IDEA_OUTPUT
fi
MAKE_DIR="$SCRIPT_DIR/../make"
IDEA_MAKE="$MAKE_DIR/idea"
IDEA_TEMPLATE="$IDEA_MAKE/template"
cp -r "$IDEA_TEMPLATE"/* "$IDEA_OUTPUT"
#init template variables
for file in `ls -p $IDEA_TEMPLATE | grep -v /`; do
VAR_SUFFIX=`echo $file | cut -d'.' -f1 | tr [:lower:] [:upper:]`
eval "$VAR_SUFFIX"_TEMPLATE="$IDEA_TEMPLATE"/$file
eval IDEA_"$VAR_SUFFIX"="$IDEA_OUTPUT"/$file
done
#override template variables
#override template
if [ -d "$TEMPLATES_OVERRIDE" ] ; then
for file in `ls -p "$TEMPLATES_OVERRIDE" | grep -v /`; do
cp "$TEMPLATES_OVERRIDE"/$file "$IDEA_OUTPUT"/
VAR_SUFFIX=`echo $file | cut -d'.' -f1 | tr [:lower:] [:upper:]`
eval "$VAR_SUFFIX"_TEMPLATE="$TEMPLATES_OVERRIDE"/$file
done
fi
@@ -94,14 +91,6 @@ if [ "$VERBOSE" = "true" ] ; then
echo "idea template dir: $IDEA_TEMPLATE"
fi
if [ ! -f "$JDK_TEMPLATE" ] ; then
echo "FATAL: cannot find $JDK_TEMPLATE" >&2; exit 1
fi
if [ ! -f "$ANT_TEMPLATE" ] ; then
echo "FATAL: cannot find $ANT_TEMPLATE" >&2; exit 1
fi
cd $TOP ; make -f "$IDEA_MAKE/idea.gmk" -I $MAKE_DIR/.. idea MAKEOVERRIDES= OUT=$IDEA_OUTPUT/env.cfg MODULES="$*" || exit 1
cd $SCRIPT_DIR
@@ -124,94 +113,62 @@ if [ "x$SPEC" = "x" ] ; then
echo "FATAL: SPEC is empty" >&2; exit 1
fi
SOURCE_FOLDER=" <sourceFolder url=\"file://\$MODULE_DIR\$/####\" isTestSource=\"false\" />"
SOURCE_FOLDERS_DONE="false"
### Replace template variables
addSourceFolder() {
root=$@
relativePath="`echo "$root" | sed -e s@"$TOP/\(.*$\)"@"\1"@`"
folder="`echo "$SOURCE_FOLDER" | sed -e s@"\(.*/\)####\(.*\)"@"\1$relativePath\2"@`"
printf "%s\n" "$folder" >> $IDEA_JDK
NUM_REPLACEMENTS=0
replace_template_file() {
for i in $(seq 1 $NUM_REPLACEMENTS); do
eval "sed \"s|\${FROM${i}}|\${TO${i}}|g\" $1 > $1.tmp"
mv $1.tmp $1
done
}
### Generate project iml
replace_template_dir() {
for f in `find $1 -type f` ; do
replace_template_file $f
done
}
rm -f $IDEA_JDK
while IFS= read -r line
do
if echo "$line" | egrep "^ .* <sourceFolder.*####" > /dev/null ; then
if [ "$SOURCE_FOLDERS_DONE" = "false" ] ; then
SOURCE_FOLDERS_DONE="true"
for root in $MODULE_ROOTS; do
addSourceFolder $root
done
add_replacement() {
NUM_REPLACEMENTS=`expr $NUM_REPLACEMENTS + 1`
eval FROM$NUM_REPLACEMENTS='$1'
eval TO$NUM_REPLACEMENTS='$2'
}
add_replacement "###MODULE_NAMES###" "$MODULE_NAMES"
SPEC_DIR=`dirname $SPEC`
if [ "x$CYGPATH" = "x" ]; then
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"
else
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
else
printf "%s\n" "$line" >> $IDEA_JDK
fi
done < "$JDK_TEMPLATE"
fi
SOURCE_PREFIX="<sourceFolder url=\"file://"
SOURCE_POSTFIX="\" isTestSource=\"false\" />"
MODULE_NAME=" <property name=\"module.name\" value=\"####\" />"
for root in $MODULE_ROOTS; do
if [ "x$CYGPATH" != "x" ]; then
root=`cygpath -am $root`
fi
SOURCES=$SOURCES" $SOURCE_PREFIX""$root""$SOURCE_POSTFIX"
done
addModuleName() {
mn="`echo "$MODULE_NAME" | sed -e s@"\(.*\)####\(.*\)"@"\1$MODULE_NAMES\2"@`"
printf "%s\n" "$mn" >> $IDEA_ANT
}
add_replacement "###SOURCE_ROOTS###" "$SOURCES"
BUILD_DIR=" <property name=\"build.target.dir\" value=\"####\" />"
addBuildDir() {
DIR=`dirname $SPEC`
mn="`echo "$BUILD_DIR" | sed -e s@"\(.*\)####\(.*\)"@"\1$DIR\2"@`"
printf "%s\n" "$mn" >> $IDEA_ANT
}
### Generate ant.xml
rm -f $IDEA_ANT
while IFS= read -r line
do
if echo "$line" | egrep "^ .* <property name=\"module.name\"" > /dev/null ; then
addModuleName
elif echo "$line" | egrep "^ .* <property name=\"build.target.dir\"" > /dev/null ; then
addBuildDir
else
printf "%s\n" "$line" >> $IDEA_ANT
fi
done < "$ANT_TEMPLATE"
### Generate misc.xml
rm -f $IDEA_MISC
JTREG_HOME=" <path>####</path>"
IMAGES_DIR=" <jre alt=\"true\" value=\"####\" />"
addImagesDir() {
DIR=`dirname $SPEC`/images/jdk
mn="`echo "$IMAGES_DIR" | sed -e s@"\(.*\)####\(.*\)"@"\1$DIR\2"@`"
printf "%s\n" "$mn" >> $IDEA_MISC
}
addJtregHome() {
DIR=`dirname $SPEC`
mn="`echo "$JTREG_HOME" | sed -e s@"\(.*\)####\(.*\)"@"\1$JT_HOME\2"@`"
printf "%s\n" "$mn" >> $IDEA_MISC
}
rm -f $MISC_ANT
while IFS= read -r line
do
if echo "$line" | egrep "^ .*<path>jtreg_home</path>" > /dev/null ; then
addJtregHome
elif echo "$line" | egrep "^ .*<jre alt=\"true\" value=\"images_jdk\"" > /dev/null ; then
addImagesDir
else
printf "%s\n" "$line" >> $IDEA_MISC
fi
done < "$MISC_TEMPLATE"
replace_template_dir "$IDEA_OUTPUT"
### Compile the custom Logger

View File

@@ -11,14 +11,14 @@
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
</style>
<link rel="stylesheet" href="../make/data/docs-resources/resources/jdk-default.css">
<link rel="stylesheet" href="../make/data/docs-resources/resources/jdk-default.css" />
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
<style type="text/css">pre, code, tt { color: #1d6ae5; }</style>
</head>
<body>
<header>
<header id="title-block-header">
<h1 class="title">Building the JDK</h1>
</header>
<nav id="TOC">
@@ -31,7 +31,8 @@
<li><a href="#build-hardware-requirements">Build Hardware Requirements</a><ul>
<li><a href="#building-on-x86">Building on x86</a></li>
<li><a href="#building-on-sparc">Building on sparc</a></li>
<li><a href="#building-on-armaarch64">Building on arm/aarch64</a></li>
<li><a href="#building-on-aarch64">Building on aarch64</a></li>
<li><a href="#building-on-32-bit-arm">Building on 32-bit arm</a></li>
</ul></li>
<li><a href="#operating-system-requirements">Operating System Requirements</a><ul>
<li><a href="#windows">Windows</a></li>
@@ -73,10 +74,12 @@
</ul></li>
<li><a href="#running-tests">Running Tests</a></li>
<li><a href="#cross-compiling">Cross-compiling</a><ul>
<li><a href="#cross-compiling-the-easy-way-with-openjdk-devkits">Cross compiling the easy way with OpenJDK devkits</a></li>
<li><a href="#boot-jdk-and-build-jdk">Boot JDK and Build JDK</a></li>
<li><a href="#specifying-the-target-platform">Specifying the Target Platform</a></li>
<li><a href="#toolchain-considerations">Toolchain Considerations</a></li>
<li><a href="#native-libraries">Native Libraries</a></li>
<li><a href="#creating-and-using-sysroots-with-qemu-deboostrap">Creating And Using Sysroots With qemu-deboostrap</a></li>
<li><a href="#building-for-armaarch64">Building for ARM/aarch64</a></li>
<li><a href="#verifying-the-build">Verifying the Build</a></li>
</ul></li>
@@ -96,7 +99,7 @@
<li><a href="#getting-help">Getting Help</a></li>
</ul></li>
<li><a href="#hints-and-suggestions-for-advanced-users">Hints and Suggestions for Advanced Users</a><ul>
<li><a href="#setting-up-a-forest-for-pushing-changes-defpath">Setting Up a Forest for Pushing Changes (defpath)</a></li>
<li><a href="#setting-up-a-repository-for-pushing-changes-defpath">Setting Up a Repository for Pushing Changes (defpath)</a></li>
<li><a href="#bash-completion">Bash Completion</a></li>
<li><a href="#using-multiple-configurations">Using Multiple Configurations</a></li>
<li><a href="#handling-reconfigurations">Handling Reconfigurations</a></li>
@@ -134,17 +137,17 @@
<p>The JDK is a complex software project. Building it requires a certain amount of technical expertise, a fair number of dependencies on external software, and reasonably powerful hardware.</p>
<p>If you just want to use the JDK and not build it yourself, this document is not for you. See for instance <a href="http://openjdk.java.net/install">OpenJDK installation</a> for some methods of installing a prebuilt JDK.</p>
<h2 id="getting-the-source-code">Getting the Source Code</h2>
<p>Make sure you are getting the correct version. As of JDK 10, the source is no longer split into separate repositories so you only need to clone one single repository. At the <a href="http://hg.openjdk.java.net/">OpenJDK Mercurial server</a> you can see a list of all available forests. If you want to build an older version, e.g. JDK 8, it is recommended that you get the <code>jdk8u</code> forest, which contains incremental updates, instead of the <code>jdk8</code> forest, which was frozen at JDK 8 GA.</p>
<p>If you are new to Mercurial, a good place to start is the <a href="http://www.mercurial-scm.org/guide">Mercurial Beginners Guide</a>. The rest of this document assumes a working knowledge of Mercurial.</p>
<p>Make sure you are getting the correct version. As of JDK 10, the source is no longer split into separate repositories so you only need to clone one single repository. At the <a href="http://hg.openjdk.java.net/">OpenJDK Mercurial server</a> you can see a list of all available repositories. If you want to build an older version, e.g. JDK 8, it is recommended that you get the <code>jdk8u</code> forest, which contains incremental updates, instead of the <code>jdk8</code> forest, which was frozen at JDK 8 GA.</p>
<p>If you are new to Mercurial, a good place to start is the <a href="http://www.mercurial-scm.org/guide">Mercurial Beginner's Guide</a>. The rest of this document assumes a working knowledge of Mercurial.</p>
<h3 id="special-considerations">Special Considerations</h3>
<p>For a smooth building experience, it is recommended that you follow these rules on where and how to check out the source code.</p>
<ul>
<li><p>Do not check out the source code in a path which contains spaces. Chances are the build will not work. This is most likely to be an issue on Windows systems.</p></li>
<li><p>Do not check out the source code in a path which has a very long name or is nested many levels deep. Chances are you will hit an OS limitation during the build.</p></li>
<li><p>Put the source code on a local disk, not a network share. If possible, use an SSD. The build process is very disk intensive, and having slow disk access will significantly increase build times. If you need to use a network share for the source code, see below for suggestions on how to keep the build artifacts on a local disk.</p></li>
<li><p>On Windows, extra care must be taken to make sure the <a href="#cygwin">Cygwin</a> environment is consistent. It is recommended that you follow this procedure:</p>
<li><p>On Windows, if using <a href="#cygwin">Cygwin</a>, extra care must be taken to make sure the environment is consistent. It is recommended that you follow this procedure:</p>
<ul>
<li><p>Create the directory that is going to contain the top directory of the JDK clone by using the <code>mkdir</code> command in the Cygwin bash shell. That is, do <em>not</em> create it using Windows Explorer. This will ensure that it will have proper Cygwin attributes, and that its children will inherit those attributes.</p></li>
<li><p>Create the directory that is going to contain the top directory of the JDK clone by using the <code>mkdir</code> command in the Cygwin bash shell. That is, do <em>not</em> create it using Windows Explorer. This will ensure that it will have proper Cygwin attributes, and that it's children will inherit those attributes.</p></li>
<li><p>Do not put the JDK clone in a path under your Cygwin home directory. This is especially important if your user name contains spaces and/or mixed upper and lower case letters.</p></li>
<li><p>Clone the JDK repository using the Cygwin command line <code>hg</code> client as instructed in this document. That is, do <em>not</em> use another Mercurial client such as TortoiseHg.</p></li>
</ul>
@@ -158,10 +161,13 @@
<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>
<h3 id="building-on-sparc">Building on sparc</h3>
<p>At a minimum, a machine with 4 cores is advisable, as well as 4 GB of RAM. (The more cores to use, the more memory you need.) At least 8 GB of free disk space is required.</p>
<h3 id="building-on-armaarch64">Building on arm/aarch64</h3>
<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 free disk space is required.</p>
<p>If you do not have access to sufficiently powerful hardware, it is also possible to use <a href="#cross-compiling">cross-compiling</a>.</p>
<h3 id="building-on-32-bit-arm">Building on 32-bit arm</h3>
<p>This is not recommended. Instead, see the section on <a href="#cross-compiling">Cross-compiling</a>.</p>
<h2 id="operating-system-requirements">Operating System Requirements</h2>
<p>The mainline JDK project supports Linux, Solaris, macOS, AIX and Windows. Support for other operating system, e.g. BSD, exists in separate “port” projects.</p>
<p>The mainline JDK project supports Linux, Solaris, macOS, AIX and Windows. Support for other operating system, e.g. BSD, exists in separate &quot;port&quot; projects.</p>
<p>In general, the JDK can be built on a wide range of versions of these operating systems, but the further you deviate from what is tested on a daily basis, the more likely you are to run into problems.</p>
<p>This table lists the OS versions used by Oracle when building the JDK. Such information is always subject to change, but this table is up to date at the time of writing.</p>
<table>
@@ -195,12 +201,12 @@
<h3 id="windows">Windows</h3>
<p>Windows XP is not a supported platform, but all newer Windows should be able to build the JDK.</p>
<p>On Windows, it is important that you pay attention to the instructions in the <a href="#special-considerations">Special Considerations</a>.</p>
<p>Windows is the only non-POSIX OS supported by the JDK, and as such, requires some extra care. A POSIX support layer is required to build on Windows. Currently, the only supported such layer is Cygwin. (Msys is no longer supported due to a too old bash; msys2 and the new Windows Subsystem for Linux (WSL) would likely be possible to support in a future version but that would require effort to implement.)</p>
<p>Internally in the build system, all paths are represented as Unix-style paths, e.g. <code>/cygdrive/c/hg/jdk9/Makefile</code> rather than <code>C:\hg\jdk9\Makefile</code>. This rule also applies to input to the build system, e.g. in arguments to <code>configure</code>. So, 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>Windows is the only non-POSIX OS supported by the JDK, and as such, requires some extra care. A POSIX support layer is required to build on Windows. Currently, the only supported such layers are Cygwin and Windows Subsystem for Linux (WSL). (Msys is no longer supported due to a too old bash; msys2 would likely be possible to support in a future version but that would require effort to implement.)</p>
<p>Internally in the build system, all paths are represented as Unix-style paths, e.g. <code>/cygdrive/c/hg/jdk9/Makefile</code> rather than <code>C:\hg\jdk9\Makefile</code>. This rule also applies to input to the build system, e.g. in arguments to <code>configure</code>. So, 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>
<h4 id="cygwin">Cygwin</h4>
<p>A functioning <a href="http://www.cygwin.com/">Cygwin</a> environment is thus required for building the JDK on Windows. If you have a 64-bit OS, we strongly recommend using the 64-bit version of Cygwin.</p>
<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 strongly recommend using the 64-bit version of Cygwin.</p>
<p><strong>Note:</strong> Cygwin has a model of continuously updating all packages without any easy way to install or revert to a specific version of a package. This means that whenever you add or update a package in Cygwin, you might (inadvertently) update tools that are used by the JDK build process, and that can cause unexpected build problems.</p>
<p>The JDK requires GNU Make 4.0 or greater on Windows. This is usually not a problem, since Cygwin currently only distributes GNU Make at a version above 4.0.</p>
<p>The JDK requires GNU Make 4.0 or greater in Cygwin. This is usually not a problem, since Cygwin currently only distributes GNU Make at a version above 4.0.</p>
<p>Apart from the basic Cygwin installation, the following packages must also be installed:</p>
<ul>
<li><code>autoconf</code></li>
@@ -210,13 +216,18 @@
</ul>
<p>Often, you can install these packages using the following command line:</p>
<pre><code>&lt;path to Cygwin setup&gt;/setup-x86_64 -q -P autoconf -P make -P unzip -P zip</code></pre>
<p>Unfortunately, Cygwin can be unreliable in certain circumstances. If you experience build tool crashes or strange issues when building on Windows, please check the Cygwin FAQ on the <a href="https://cygwin.com/faq/faq.html#faq.using.bloda">“BLODA” list</a> and the section on <a href="https://cygwin.com/faq/faq.html#faq.using.fixing-fork-failures">fork() failures</a>.</p>
<p>Unfortunately, Cygwin can be unreliable in certain circumstances. If you experience build tool crashes or strange issues when building on Windows, please check the Cygwin FAQ on the <a href="https://cygwin.com/faq/faq.html#faq.using.bloda">&quot;BLODA&quot; list</a> and the section on <a href="https://cygwin.com/faq/faq.html#faq.using.fixing-fork-failures">fork() failures</a>.</p>
<h4 id="windows-subsystem-for-linux-wsl">Windows Subsystem for Linux (WSL)</h4>
<p>Windows 10 1809 or newer is supported due to a dependency on the wslpath utility and support for environment variable sharing through WSLENV. Version 1803 can work but intermittent build failures have been observed.</p>
<p>It's possible to build both Windows and Linux binaries from WSL. To build Windows binaries, you must use a Windows boot JDK (located in a Windows-accessible directory). To build Linux binaries, you must use a Linux boot JDK. The default behavior is to build for Windows. To build for Linux, pass <code>--build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu</code> to <code>configure</code>.</p>
<p>If building Windows binaries, the source code must be located in a Windows- accessible directory. This is because Windows executables (such as Visual Studio and the boot JDK) must be able to access the source code. Also, the drive where the source is stored must be mounted as case-insensitive by changing either /etc/fstab or /etc/wsl.conf in WSL. Individual directories may be corrected using the fsutil tool in case the source was cloned before changing the mount options.</p>
<p>Note that while it's possible to build on WSL, testing is still not fully supported.</p>
<h3 id="solaris">Solaris</h3>
<p>See <code>make/devkit/solaris11.1-package-list.txt</code> for a list of recommended packages to install when building on Solaris. The versions specified in this list is the versions used by the daily builds at Oracle, and is likely to work properly.</p>
<p>Older versions of Solaris shipped a broken version of <code>objcopy</code>. At least version 2.21.1 is needed, which is provided by Solaris 11 Update 1. Objcopy is needed if you want to have external debug symbols. Please make sure you are using at least version 2.21.1 of objcopy, or that you disable external debug symbols.</p>
<h3 id="macos">macOS</h3>
<p>Apple is using a quite aggressive scheme of pushing OS updates, and coupling these updates with required updates of Xcode. Unfortunately, this makes it difficult for a project such as the JDK to keep pace with a continuously updated machine running macOS. See the section on <a href="#apple-xcode">Apple Xcode</a> on some strategies to deal with this.</p>
<p>It is recommended that you use at least Mac OS X 10.9 (Mavericks). At the time of writing, the JDK has been successfully compiled on macOS versions up to 10.12.5 (Sierra), using XCode 8.3.2 and <code>--disable-warnings-as-errors</code>.</p>
<p>It is recommended that you use at least Mac OS X 10.13 (High Sierra). At the time of writing, the JDK has been successfully compiled on macOS 10.12 (Sierra).</p>
<p>The standard macOS environment contains the basic tooling needed to build, but for external libraries a package manager is recommended. The JDK uses <a href="https://brew.sh/">homebrew</a> in the examples, but feel free to use whatever manager you want (or none).</p>
<h3 id="linux">Linux</h3>
<p>It is often not much problem to build the JDK on Linux. The only general advice is to try to use the compilers, external libraries and header files as provided by your distribution.</p>
@@ -228,7 +239,7 @@
<h3 id="aix">AIX</h3>
<p>The regular builds by SAP is using AIX version 7.1, but AIX 5.3 is also supported. See the <a href="http://cr.openjdk.java.net/~simonis/ppc-aix-port">OpenJDK PowerPC Port Status Page</a> for details.</p>
<h2 id="native-compiler-toolchain-requirements">Native Compiler (Toolchain) Requirements</h2>
<p>Large portions of the JDK consists of native code, that needs to be compiled to be able to run on the target platform. In theory, toolchain and operating system should be independent factors, but in practice theres more or less a one-to-one correlation between target operating system and toolchain.</p>
<p>Large portions of the JDK consists of native code, that needs to be compiled to be able to run on the target platform. In theory, toolchain and operating system should be independent factors, but in practice there's more or less a one-to-one correlation between target operating system and toolchain.</p>
<table>
<thead>
<tr class="header">
@@ -274,7 +285,7 @@
</tr>
<tr class="even">
<td style="text-align: left;">macOS</td>
<td style="text-align: left;">Apple Xcode 6.3 (using clang 6.1.0)</td>
<td style="text-align: left;">Apple Xcode 9.4 (using clang 9.1.0)</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Solaris</td>
@@ -282,7 +293,7 @@
</tr>
<tr class="even">
<td style="text-align: left;">Windows</td>
<td style="text-align: left;">Microsoft Visual Studio 2013 update 4</td>
<td style="text-align: left;">Microsoft Visual Studio 2017 update 15.5.5</td>
</tr>
</tbody>
</table>
@@ -294,10 +305,10 @@
<p>The minimum accepted version of clang is 3.2. Older versions will not be accepted by <code>configure</code>.</p>
<p>To use clang instead of gcc on Linux, use <code>--with-toolchain-type=clang</code>.</p>
<h3 id="apple-xcode">Apple Xcode</h3>
<p>The oldest supported version of Xcode is 5.</p>
<p>The oldest supported version of Xcode is 8.</p>
<p>You will need the Xcode command lines developers tools to be able to build the JDK. (Actually, <em>only</em> the command lines tools are needed, not the IDE.) The simplest way to install these is to run:</p>
<pre><code>xcode-select --install</code></pre>
<p>It is advisable to keep an older version of Xcode for building the JDK when updating Xcode. This <a href="http://iosdevelopertips.com/xcode/install-multiple-versions-of-xcode.html">blog page</a> has good suggestions on managing multiple Xcode versions. To use a specific version of Xcode, use <code>xcode-select -s</code> before running <code>configure</code>, or use <code>--with-toolchain-path</code> to point to the version of Xcode to use, e.g. <code>configure --with-toolchain-path=/Applications/Xcode5.app/Contents/Developer/usr/bin</code></p>
<p>It is advisable to keep an older version of Xcode for building the JDK when updating Xcode. This <a href="http://iosdevelopertips.com/xcode/install-multiple-versions-of-xcode.html">blog page</a> has good suggestions on managing multiple Xcode versions. To use a specific version of Xcode, use <code>xcode-select -s</code> before running <code>configure</code>, or use <code>--with-toolchain-path</code> to point to the version of Xcode to use, e.g. <code>configure --with-toolchain-path=/Applications/Xcode8.app/Contents/Developer/usr/bin</code></p>
<p>If you have recently (inadvertently) updated your OS and/or Xcode version, and the JDK can no longer be built, please see the section on <a href="#problems-with-the-build-environment">Problems with the Build Environment</a>, and <a href="#getting-help">Getting Help</a> to find out if there are any recent, non-merged patches available for this update.</p>
<h3 id="oracle-solaris-studio">Oracle Solaris Studio</h3>
<p>The minimum accepted version of the Solaris Studio compilers is 5.13 (corresponding to Solaris Studio 12.4). Older versions will not be accepted by configure.</p>
@@ -358,15 +369,15 @@ cc: Sun C 5.13 SunOS_i386 2014/10/20
$ CC -V
CC: Sun C++ 5.13 SunOS_i386 151846-10 2015/10/30</code></pre>
<h3 id="microsoft-visual-studio">Microsoft Visual Studio</h3>
<p>The minimum accepted version of Visual Studio is 2010. Older versions will not be accepted by <code>configure</code>. The maximum accepted version of Visual Studio is 2013.</p>
<p>If you have multiple versions of Visual Studio installed, <code>configure</code> will by default pick the latest. You can request a specific version to be used by setting <code>--with-toolchain-version</code>, e.g. <code>--with-toolchain-version=2010</code>.</p>
<p>The minimum accepted version of Visual Studio is 2010. Older versions will not be accepted by <code>configure</code>. The maximum accepted version of Visual Studio is 2017. Versions older than 2017 are unlikely to continue working for long.</p>
<p>If you have multiple versions of Visual Studio installed, <code>configure</code> will by default pick the latest. You can request a specific version to be used by setting <code>--with-toolchain-version</code>, e.g. <code>--with-toolchain-version=2015</code>.</p>
<p>If you get <code>LINK: fatal error LNK1123: failure during conversion to COFF: file invalid</code> when building using Visual Studio 2010, you have encountered <a href="http://support.microsoft.com/kb/2757355">KB2757355</a>, a bug triggered by a specific installation order. However, the solution suggested by the KB article does not always resolve the problem. See <a href="https://stackoverflow.com/questions/10888391">this stackoverflow discussion</a> for other suggestions.</p>
<h3 id="ibm-xl-cc">IBM XL C/C++</h3>
<p>The regular builds by SAP is using version 12.1, described as <code>IBM XL C/C++ for AIX, V12.1 (5765-J02, 5725-C72) Version: 12.01.0000.0017</code>.</p>
<p>See the <a href="http://cr.openjdk.java.net/~simonis/ppc-aix-port">OpenJDK PowerPC Port Status Page</a> for details.</p>
<h2 id="boot-jdk-requirements">Boot JDK Requirements</h2>
<p>Paradoxically, building the JDK requires a pre-existing JDK. This is called the “boot JDK”. The boot JDK does not, however, have to be a JDK built directly from the source code available in the OpenJDK Community. If you are porting the JDK to a new platform, chances are that there already exists another JDK for that platform that is usable as boot JDK.</p>
<p>The rule of thumb is that the boot JDK for building JDK major version <em>N</em> should be a JDK of major version <em>N-1</em>, so for building JDK 9 a JDK 8 would be suitable as boot JDK. However, the JDK should be able to build itself, so an up-to-date build of the current JDK source is an acceptable alternative. If you are following the <em>N-1</em> rule, make sure youve got the latest update version, since JDK 8 GA might not be able to build JDK 9 on all platforms.</p>
<p>Paradoxically, building the JDK requires a pre-existing JDK. This is called the &quot;boot JDK&quot;. The boot JDK does not, however, have to be a JDK built directly from the source code available in the OpenJDK Community. If you are porting the JDK to a new platform, chances are that there already exists another JDK for that platform that is usable as boot JDK.</p>
<p>The rule of thumb is that the boot JDK for building JDK major version <em>N</em> should be a JDK of major version <em>N-1</em>, so for building JDK 9 a JDK 8 would be suitable as boot JDK. However, the JDK should be able to &quot;build itself&quot;, so an up-to-date build of the current JDK source is an acceptable alternative. If you are following the <em>N-1</em> rule, make sure you've got the latest update version, since JDK 8 GA might not be able to build JDK 9 on all platforms.</p>
<p>Early in the release cycle, version <em>N-1</em> may not yet have been released. In that case, the preferred boot JDK will be version <em>N-2</em> until version <em>N-1</em> is available.</p>
<p>If the boot JDK is not automatically detected, or the wrong JDK is picked, use <code>--with-boot-jdk</code> to point to the JDK to use.</p>
<h3 id="getting-jdk-binaries">Getting JDK binaries</h3>
@@ -395,9 +406,9 @@ CC: Sun C++ 5.13 SunOS_i386 151846-10 2015/10/30</code></pre>
<h3 id="x11">X11</h3>
<p>Certain <a href="http://www.x.org/">X11</a> libraries and include files are required on Linux and Solaris.</p>
<ul>
<li>To install on an apt-based Linux, try running <code>sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev</code>.</li>
<li>To install on an rpm-based Linux, try running <code>sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel</code>.</li>
<li>To install on Solaris, try running <code>pkg install x11/header/x11-protocols x11/library/libice x11/library/libpthread-stubs x11/library/libsm x11/library/libx11 x11/library/libxau x11/library/libxcb x11/library/libxdmcp x11/library/libxevie x11/library/libxext x11/library/libxrender x11/library/libxscrnsaver x11/library/libxtst x11/library/toolkit/libxt</code>.</li>
<li>To install on an apt-based Linux, try running <code>sudo apt-get install libx11-dev libxext-dev libxrender-dev libxrandr-dev libxtst-dev libxt-dev</code>.</li>
<li>To install on an rpm-based Linux, try running <code>sudo yum install libXtst-devel libXt-devel libXrender-devel libXrandr-devel libXi-devel</code>.</li>
<li>To install on Solaris, try running <code>pkg install x11/header/x11-protocols x11/library/libice x11/library/libpthread-stubs x11/library/libsm x11/library/libx11 x11/library/libxau x11/library/libxcb x11/library/libxdmcp x11/library/libxevie x11/library/libxext x11/library/libxrender x11/library/libxrandr x11/library/libxscrnsaver x11/library/libxtst x11/library/toolkit/libxt</code>.</li>
</ul>
<p>Use <code>--with-x=&lt;path&gt;</code> if <code>configure</code> does not properly locate your X11 files.</p>
<h3 id="alsa">ALSA</h3>
@@ -428,14 +439,14 @@ CC: Sun C++ 5.13 SunOS_i386 151846-10 2015/10/30</code></pre>
<h3 id="gnu-make">GNU Make</h3>
<p>The JDK requires <a href="http://www.gnu.org/software/make">GNU Make</a>. No other flavors of make are supported.</p>
<p>At least version 3.81 of GNU Make must be used. For distributions supporting GNU Make 4.0 or above, we strongly recommend it. GNU Make 4.0 contains useful functionality to handle parallel building (supported by <code>--with-output-sync</code>) and speed and stability improvements.</p>
<p>Note that <code>configure</code> locates and verifies a properly functioning version of <code>make</code> and stores the path to this <code>make</code> binary in the configuration. If you start a build using <code>make</code> on the command line, you will be using the version of make found first in your <code>PATH</code>, and not necessarily the one stored in the configuration. This initial make will be used as bootstrap make, and in a second stage, the make located by <code>configure</code> will be called. Normally, this will present no issues, but if you have a very old <code>make</code>, or a non-GNU Make <code>make</code> in your path, this might cause issues.</p>
<p>Note that <code>configure</code> locates and verifies a properly functioning version of <code>make</code> and stores the path to this <code>make</code> binary in the configuration. If you start a build using <code>make</code> on the command line, you will be using the version of make found first in your <code>PATH</code>, and not necessarily the one stored in the configuration. This initial make will be used as &quot;bootstrap make&quot;, and in a second stage, the make located by <code>configure</code> will be called. Normally, this will present no issues, but if you have a very old <code>make</code>, or a non-GNU Make <code>make</code> in your path, this might cause issues.</p>
<p>If you want to override the default make found by <code>configure</code>, use the <code>MAKE</code> configure variable, e.g. <code>configure MAKE=/opt/gnu/make</code>.</p>
<p>On Solaris, it is common to call the GNU version of make by using <code>gmake</code>.</p>
<h3 id="gnu-bash">GNU Bash</h3>
<p>The JDK requires <a href="http://www.gnu.org/software/bash">GNU Bash</a>. No other shells are supported.</p>
<p>At least version 3.2 of GNU Bash must be used.</p>
<h2 id="running-configure">Running Configure</h2>
<p>To build the JDK, you need a configuration, which consists of a directory where to store the build output, coupled with information about the platform, the specific build machine, and choices that affect how the JDK is built.</p>
<p>To build the JDK, you need a &quot;configuration&quot;, which consists of a directory where to store the build output, coupled with information about the platform, the specific build machine, and choices that affect how the JDK is built.</p>
<p>The configuration is created by the <code>configure</code> script. The basic invocation of the <code>configure</code> script looks like this:</p>
<pre><code>bash configure [options]</code></pre>
<p>This will create an output directory containing the configuration and setup an area for the build result. This directory typically looks like <code>build/linux-x64-normal-server-release</code>, but the actual name depends on your specific configuration. (It can also be set directly, see <a href="#using-multiple-configurations">Using Multiple Configurations</a>). This directory is referred to as <code>$BUILD</code> in this documentation.</p>
@@ -463,6 +474,10 @@ CC: Sun C++ 5.13 SunOS_i386 151846-10 2015/10/30</code></pre>
<li><code>--with-jvm-features=&lt;feature&gt;[,&lt;feature&gt;...]</code> - Use the specified JVM features when building Hotspot. The list of features will be enabled on top of the default list. For the <code>custom</code> JVM variant, this default list is empty. A complete list of available JVM features can be found using <code>bash configure --help</code>.</li>
<li><code>--with-target-bits=&lt;bits&gt;</code> - Create a target binary suitable for running on a <code>&lt;bits&gt;</code> platform. Use this to create 32-bit output on a 64-bit build platform, instead of doing a full cross-compile. (This is known as a <em>reduced</em> build.)</li>
</ul>
<p>On Linux, BSD and AIX, it is possible to override where Java by default searches for runtime/JNI libraries. This can be useful in situations where there is a special shared directory for system JNI libraries. This setting can in turn be overriden at runtime by setting the <code>java.library.path</code> property.</p>
<ul>
<li><code>--with-jni-libpath=&lt;path&gt;</code> - Use the specified path as a default when searching for runtime libraries.</li>
</ul>
<h4 id="configure-arguments-for-native-compilation">Configure Arguments for Native Compilation</h4>
<ul>
<li><code>--with-devkit=&lt;path&gt;</code> - Use this devkit for compilers, tools and resources</li>
@@ -497,13 +512,13 @@ CC: Sun C++ 5.13 SunOS_i386 151846-10 2015/10/30</code></pre>
</ul>
<h3 id="configure-control-variables">Configure Control Variables</h3>
<p>It is possible to control certain aspects of <code>configure</code> by overriding the value of <code>configure</code> variables, either on the command line or in the environment.</p>
<p>Normally, this is <strong>not recommended</strong>. If used improperly, it can lead to a broken configuration. Unless youre well versed in the build system, this is hard to use properly. Therefore, <code>configure</code> will print a warning if this is detected.</p>
<p>Normally, this is <strong>not recommended</strong>. If used improperly, it can lead to a broken configuration. Unless you're well versed in the build system, this is hard to use properly. Therefore, <code>configure</code> will print a warning if this is detected.</p>
<p>However, there are a few <code>configure</code> variables, known as <em>control variables</em> that are supposed to be overriden on the command line. These are variables that describe the location of tools needed by the build, like <code>MAKE</code> or <code>GREP</code>. If any such variable is specified, <code>configure</code> will use that value instead of trying to autodetect the tool. For instance, <code>bash configure MAKE=/opt/gnumake4.0/bin/make</code>.</p>
<p>If a configure argument exists, use that instead, e.g. use <code>--with-jtreg</code> instead of setting <code>JTREGEXE</code>.</p>
<p>If a configure argument exists, use that instead, e.g. use <code>--with-jtreg</code> instead of setting <code>JTREGEXE</code>.</p>
<p>Also note that, despite what autoconf claims, setting <code>CFLAGS</code> will not accomplish anything. Instead use <code>--with-extra-cflags</code> (and similar for <code>cxxflags</code> and <code>ldflags</code>).</p>
<h2 id="running-make">Running Make</h2>
<p>When you have a proper configuration, all you need to do to build the JDK is to run <code>make</code>. (But see the warning at <a href="#gnu-make">GNU Make</a> about running the correct version of make.)</p>
<p>When running <code>make</code> without any arguments, the default target is used, which is the same as running <code>make default</code> or <code>make jdk</code>. This will build a minimal (or roughly minimal) set of compiled output (known as an exploded image) needed for a developer to actually execute the newly built JDK. The idea is that in an incremental development fashion, when doing a normal make, you should only spend time recompiling whats changed (making it purely incremental) and only do the work thats needed to actually run and test your code.</p>
<p>When running <code>make</code> without any arguments, the default target is used, which is the same as running <code>make default</code> or <code>make jdk</code>. This will build a minimal (or roughly minimal) set of compiled output (known as an &quot;exploded image&quot;) needed for a developer to actually execute the newly built JDK. The idea is that in an incremental development fashion, when doing a normal make, you should only spend time recompiling what's changed (making it purely incremental) and only do the work that's needed to actually run and test your code.</p>
<p>The output of the exploded image resides in <code>$BUILD/jdk</code>. You can test the newly built JDK like this: <code>$BUILD/jdk/bin/java -version</code>.</p>
<h3 id="common-make-targets">Common Make Targets</h3>
<p>Apart from the default target, here are some common make targets:</p>
@@ -534,8 +549,8 @@ CC: Sun C++ 5.13 SunOS_i386 151846-10 2015/10/30</code></pre>
</ul>
<h3 id="make-control-variables">Make Control Variables</h3>
<p>It is possible to control <code>make</code> behavior by overriding the value of <code>make</code> variables, either on the command line or in the environment.</p>
<p>Normally, this is <strong>not recommended</strong>. If used improperly, it can lead to a broken build. Unless youre well versed in the build system, this is hard to use properly. Therefore, <code>make</code> will print a warning if this is detected.</p>
<p>However, there are a few <code>make</code> variables, known as <em>control variables</em> that are supposed to be overriden on the command line. These make up the make time configuration, as opposed to the configure time configuration.</p>
<p>Normally, this is <strong>not recommended</strong>. If used improperly, it can lead to a broken build. Unless you're well versed in the build system, this is hard to use properly. Therefore, <code>make</code> will print a warning if this is detected.</p>
<p>However, there are a few <code>make</code> variables, known as <em>control variables</em> that are supposed to be overriden on the command line. These make up the &quot;make time&quot; configuration, as opposed to the &quot;configure time&quot; configuration.</p>
<h4 id="general-make-control-variables">General Make Control Variables</h4>
<ul>
<li><code>JOBS</code> - Specify the number of jobs to build with. See <a href="#build-performance">Build Performance</a>.</li>
@@ -559,7 +574,7 @@ CC: Sun C++ 5.13 SunOS_i386 151846-10 2015/10/30</code></pre>
<li><code>JDK_FILTER</code></li>
</ul>
<h2 id="running-tests">Running Tests</h2>
<p>Most of the JDK tests are using the <a href="http://openjdk.java.net/jtreg">JTReg</a> test framework. Make sure that your configuration knows where to find your installation of JTReg. If this is not picked up automatically, use the <code>--with-jtreg=&lt;path to jtreg home&gt;</code> option to point to the JTReg framework. Note that this option should point to the JTReg home, i.e. the top directory, containing <code>lib/jtreg.jar</code> etc.</p>
<p>Most of the JDK tests are using the <a href="http://openjdk.java.net/jtreg">JTReg</a> test framework. Make sure that your configuration knows where to find your installation of JTReg. If this is not picked up automatically, use the <code>--with-jtreg=&lt;path to jtreg home&gt;</code> option to point to the JTReg framework. Note that this option should point to the JTReg home, i.e. the top directory, containing <code>lib/jtreg.jar</code> etc.</p>
<p>The <a href="https://wiki.openjdk.java.net/display/Adoption">Adoption Group</a> provides recent builds of jtreg <a href="https://adopt-openjdk.ci.cloudbees.com/job/jtreg/lastSuccessfulBuild/artifact">here</a>. Download the latest <code>.tar.gz</code> file, unpack it, and point <code>--with-jtreg</code> to the <code>jtreg</code> directory that you just unpacked.</p>
<p>To execute the most basic tests (tier 1), use:</p>
<pre><code>make run-test-tier1</code></pre>
@@ -569,13 +584,54 @@ CC: Sun C++ 5.13 SunOS_i386 151846-10 2015/10/30</code></pre>
<p>The typical reason for cross-compiling is that the build is performed on a more powerful desktop computer, but the resulting binaries will be able to run on a different, typically low-performing system. Most of the complications that arise when building for embedded is due to this separation of <em>build</em> and <em>target</em> systems.</p>
<p>This requires a more complex setup and build procedure. This section assumes you are familiar with cross-compiling in general, and will only deal with the particularities of cross-compiling the JDK. If you are new to cross-compiling, please see the <a href="https://en.wikipedia.org/wiki/Cross_compiler#External_links">external links at Wikipedia</a> for a good start on reading materials.</p>
<p>Cross-compiling the JDK requires you to be able to build both for the build platform and for the target platform. The reason for the former is that we need to build and execute tools during the build process, both native tools and Java tools.</p>
<p>If all you want to do is to compile a 32-bit version, for the same OS, on a 64-bit machine, consider using <code>--with-target-bits=32</code> instead of doing a full-blown cross-compilation. (While this surely is possible, its a lot more work and will take much longer to build.)</p>
<p>If all you want to do is to compile a 32-bit version, for the same OS, on a 64-bit machine, consider using <code>--with-target-bits=32</code> instead of doing a full-blown cross-compilation. (While this surely is possible, it's a lot more work and will take much longer to build.)</p>
<h3 id="cross-compiling-the-easy-way-with-openjdk-devkits">Cross compiling the easy way with OpenJDK devkits</h3>
<p>The OpenJDK build system provides out-of-the box support for creating and using so called devkits. A <code>devkit</code> is basically a collection of a cross-compiling toolchain and a sysroot environment which can easily be used together with the <code>--with-devkit</code> configure option to cross compile the OpenJDK. On Linux/x86_64, the following command:</p>
<pre><code>bash configure --with-devkit=&lt;devkit-path&gt; --openjdk-target=ppc64-linux-gnu &amp;&amp; make</code></pre>
<p>will configure and build OpenJDK for Linux/ppc64 assuming that <code>&lt;devkit-path&gt;</code> points to a Linux/x86_64 to Linux/ppc64 devkit.</p>
<p>Devkits can be created from the <code>make/devkit</code> directory by executing:</p>
<pre><code>make [ TARGETS=&quot;&lt;TARGET_TRIPLET&gt;+&quot; ] [ BASE_OS=&lt;OS&gt; ] [ BASE_OS_VERSION=&lt;VER&gt; ]</code></pre>
<p>where <code>TARGETS</code> contains one or more <code>TARGET_TRIPLET</code>s of the form described in <a href="https://sourceware.org/autobook/autobook/autobook_17.html">section 3.4 of the GNU Autobook</a>. If no targets are given, a native toolchain for the current platform will be created. Currently, at least the following targets are known to work:</p>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Supported devkit targets</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">x86_64-linux-gnu</td>
</tr>
<tr class="even">
<td style="text-align: left;">aarch64-linux-gnu</td>
</tr>
<tr class="odd">
<td style="text-align: left;">arm-linux-gnueabihf</td>
</tr>
<tr class="even">
<td style="text-align: left;">ppc64-linux-gnu</td>
</tr>
<tr class="odd">
<td style="text-align: left;">ppc64le-linux-gnu</td>
</tr>
<tr class="even">
<td style="text-align: left;">s390x-linux-gnu</td>
</tr>
</tbody>
</table>
<p><code>BASE_OS</code> must be one of &quot;OEL6&quot; for Oracle Enterprise Linux 6 or &quot;Fedora&quot; (if not specified &quot;OEL6&quot; will be the default). If the base OS is &quot;Fedora&quot; the corresponding Fedora release can be specified with the help of the <code>BASE_OS_VERSION</code> option (with &quot;27&quot; as default version). If the build is successful, the new devkits can be found in the <code>build/devkit/result</code> subdirectory:</p>
<pre><code>cd make/devkit
make TARGETS=&quot;ppc64le-linux-gnu aarch64-linux-gnu&quot; BASE_OS=Fedora BASE_OS_VERSION=21
ls -1 ../../build/devkit/result/
x86_64-linux-gnu-to-aarch64-linux-gnu
x86_64-linux-gnu-to-ppc64le-linux-gnu</code></pre>
<p>Notice that devkits are not only useful for targeting different build platforms. Because they contain the full build dependencies for a system (i.e. compiler and root file system), they can easily be used to build well-known, reliable and reproducible build environments. You can for example create and use a devkit with GCC 7.3 and a Fedora 12 sysroot environment (with glibc 2.11) on Ubuntu 14.04 (which doesn't have GCC 7.3 by default) to produce OpenJDK binaries which will run on all Linux systems with runtime libraries newer than the ones from Fedora 12 (e.g. Ubuntu 16.04, SLES 11 or RHEL 6).</p>
<h3 id="boot-jdk-and-build-jdk">Boot JDK and Build JDK</h3>
<p>When cross-compiling, make sure you use a boot JDK that runs on the <em>build</em> system, and not on the <em>target</em> system.</p>
<p>To be able to build, we need a Build JDK, which is a JDK built from the current sources (that is, the same as the end result of the entire build process), but able to run on the <em>build</em> system, and not the <em>target</em> system. (In contrast, the Boot JDK should be from an older release, e.g. JDK 8 when building JDK 9.)</p>
<p>To be able to build, we need a &quot;Build JDK&quot;, which is a JDK built from the current sources (that is, the same as the end result of the entire build process), but able to run on the <em>build</em> system, and not the <em>target</em> system. (In contrast, the Boot JDK should be from an older release, e.g. JDK 8 when building JDK 9.)</p>
<p>The build process will create a minimal Build JDK for you, as part of building. To speed up the build, you can use <code>--with-build-jdk</code> to <code>configure</code> to point to a pre-built Build JDK. Please note that the build result is unpredictable, and can possibly break in subtle ways, if the Build JDK does not <strong>exactly</strong> match the current sources.</p>
<h3 id="specifying-the-target-platform">Specifying the Target Platform</h3>
<p>You <em>must</em> specify the target platform when cross-compiling. Doing so will also automatically turn the build into a cross-compiling mode. The simplest way to do this is to use the <code>--openjdk-target</code> argument, e.g. <code>--openjdk-target=arm-linux-gnueabihf</code>. or <code>--openjdk-target=aarch64-oe-linux</code>. This will automatically set the <code>--build</code>, <code>--host</code> and <code>--target</code> options for autoconf, which can otherwise be confusing. (In autoconf terminology, the “target” is known as “host”, and “target” is used for building a Canadian cross-compiler.)</p>
<p>You <em>must</em> specify the target platform when cross-compiling. Doing so will also automatically turn the build into a cross-compiling mode. The simplest way to do this is to use the <code>--openjdk-target</code> argument, e.g. <code>--openjdk-target=arm-linux-gnueabihf</code>. or <code>--openjdk-target=aarch64-oe-linux</code>. This will automatically set the <code>--build</code>, <code>--host</code> and <code>--target</code> options for autoconf, which can otherwise be confusing. (In autoconf terminology, the &quot;target&quot; is known as &quot;host&quot;, and &quot;target&quot; is used for building a Canadian cross-compiler.)</p>
<h3 id="toolchain-considerations">Toolchain Considerations</h3>
<p>You will need two copies of your toolchain, one which generates output that can run on the target system (the normal, or <em>target</em>, toolchain), and one that generates output that can run on the build system (the <em>build</em> toolchain). Note that cross-compiling is only supported for gcc at the time being. The gcc standard is to prefix cross-compiling toolchains with the target denominator. If you follow this standard, <code>configure</code> is likely to pick up the toolchain correctly.</p>
<p>The <em>build</em> toolchain will be autodetected just the same way the normal <em>build</em>/<em>target</em> toolchain will be autodetected when not cross-compiling. If this is not what you want, or if the autodetection fails, you can specify a devkit containing the <em>build</em> toolchain using <code>--with-build-devkit</code> to <code>configure</code>, or by giving <code>BUILD_CC</code> and <code>BUILD_CXX</code> arguments.</p>
@@ -587,10 +643,10 @@ CC: Sun C++ 5.13 SunOS_i386 151846-10 2015/10/30</code></pre>
</ul>
<h3 id="native-libraries">Native Libraries</h3>
<p>You will need copies of external native libraries for the <em>target</em> system, present on the <em>build</em> machine while building.</p>
<p>Take care not to replace the <em>build</em> systems version of these libraries by mistake, since that can render the <em>build</em> machine unusable.</p>
<p>Take care not to replace the <em>build</em> system's version of these libraries by mistake, since that can render the <em>build</em> machine unusable.</p>
<p>Make sure that the libraries you point to (ALSA, X11, etc) are for the <em>target</em>, not the <em>build</em>, platform.</p>
<h4 id="alsa-1">ALSA</h4>
<p>You will need alsa libraries suitable for your <em>target</em> system. For most cases, using Debians pre-built libraries work fine.</p>
<p>You will need alsa libraries suitable for your <em>target</em> system. For most cases, using Debian's pre-built libraries work fine.</p>
<p>Note that alsa is needed even if you only want to build a headless JDK.</p>
<ul>
<li><p>Go to <a href="https://www.debian.org/distrib/packages">Debian Package Search</a> and search for the <code>libasound2</code> and <code>libasound2-dev</code> packages for your <em>target</em> system. Download them to /tmp.</p></li>
@@ -603,7 +659,7 @@ dpkg-deb -x /tmp/libasound2-dev_1.0.25-4_armhf.deb .</code></pre>
<li>If alsa is not properly detected by <code>configure</code>, you can point it out by <code>--with-alsa</code>.</li>
</ul>
<h4 id="x11-1">X11</h4>
<p>You will need X11 libraries suitable for your <em>target</em> system. For most cases, using Debians pre-built libraries work fine.</p>
<p>You will need X11 libraries suitable for your <em>target</em> system. For most cases, using Debian's pre-built libraries work fine.</p>
<p>Note that X11 is needed even if you only want to build a headless JDK.</p>
<ul>
<li>Go to <a href="https://www.debian.org/distrib/packages">Debian Package Search</a>, search for the following packages for your <em>target</em> system, and download them to /tmp/target-x11:
@@ -618,6 +674,7 @@ dpkg-deb -x /tmp/libasound2-dev_1.0.25-4_armhf.deb .</code></pre>
<li>libice-dev</li>
<li>libxrender</li>
<li>libxrender-dev</li>
<li>libxrandr-dev</li>
<li>libsm-dev</li>
<li>libxt-dev</li>
<li>libx11</li>
@@ -641,9 +698,78 @@ cp: cannot stat `arm-linux-gnueabihf/libSM.so&#39;: No such file or directory
cp: cannot stat `arm-linux-gnueabihf/libXt.so&#39;: No such file or directory</code></pre></li>
<li><p>If the X11 libraries are not properly detected by <code>configure</code>, you can point them out by <code>--with-x</code>.</p></li>
</ul>
<h3 id="creating-and-using-sysroots-with-qemu-deboostrap">Creating And Using Sysroots With qemu-deboostrap</h3>
<p>Fortunately, you can create sysroots for foreign architectures with tools provided by your OS. On Debian/Ubuntu systems, one could use <code>qemu-deboostrap</code> to create the <em>target</em> system chroot, which would have the native libraries and headers specific to that <em>target</em> system. After that, we can use the cross-compiler on the <em>build</em> system, pointing into chroot to get the build dependencies right. This allows building for foreign architectures with native compilation speed.</p>
<p>For example, cross-compiling to AArch64 from x86_64 could be done like this:</p>
<ul>
<li>Install cross-compiler on the <em>build</em> system:</li>
</ul>
<pre><code>apt install g++-aarch64-linux-gnu gcc-aarch64-linux-gnu</code></pre>
<ul>
<li>Create chroot on the <em>build</em> system, configuring it for <em>target</em> system:</li>
</ul>
<pre><code>sudo qemu-debootstrap --arch=arm64 --verbose \
--include=fakeroot,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype6-dev,libpng12-dev \
--resolve-deps jessie /chroots/arm64 http://httpredir.debian.org/debian/</code></pre>
<ul>
<li>Configure and build with newly created chroot as sysroot/toolchain-path:</li>
</ul>
<pre><code>CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ sh ./configure --openjdk-target=aarch64-linux-gnu --with-sysroot=/chroots/arm64/ --with-toolchain-path=/chroots/arm64/
make images
ls build/linux-aarch64-normal-server-release/</code></pre>
<p>The build does not create new files in that chroot, so it can be reused for multiple builds without additional cleanup.</p>
<p>Architectures that are known to successfully cross-compile like this are:</p>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Target</th>
<th style="text-align: left;"><code>CC</code></th>
<th style="text-align: left;"><code>CXX</code></th>
<th style="text-align: left;"><code>--arch=...</code></th>
<th style="text-align: left;"><code>--openjdk-target=...</code></th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">x86</td>
<td style="text-align: left;">default</td>
<td style="text-align: left;">default</td>
<td style="text-align: left;">i386</td>
<td style="text-align: left;">i386-linux-gnu</td>
</tr>
<tr class="even">
<td style="text-align: left;">armhf</td>
<td style="text-align: left;">gcc-arm-linux-gnueabihf</td>
<td style="text-align: left;">g++-arm-linux-gnueabihf</td>
<td style="text-align: left;">armhf</td>
<td style="text-align: left;">arm-linux-gnueabihf</td>
</tr>
<tr class="odd">
<td style="text-align: left;">aarch64</td>
<td style="text-align: left;">gcc-aarch64-linux-gnu</td>
<td style="text-align: left;">g++-aarch64-linux-gnu</td>
<td style="text-align: left;">arm64</td>
<td style="text-align: left;">aarch64-linux-gnu</td>
</tr>
<tr class="even">
<td style="text-align: left;">ppc64el</td>
<td style="text-align: left;">gcc-powerpc64le-linux-gnu</td>
<td style="text-align: left;">g++-powerpc64le-linux-gnu</td>
<td style="text-align: left;">ppc64el</td>
<td style="text-align: left;">powerpc64le-linux-gnu</td>
</tr>
<tr class="odd">
<td style="text-align: left;">s390x</td>
<td style="text-align: left;">gcc-s390x-linux-gnu</td>
<td style="text-align: left;">g++-s390x-linux-gnu</td>
<td style="text-align: left;">s390x</td>
<td style="text-align: left;">s390x-linux-gnu</td>
</tr>
</tbody>
</table>
<p>Additional architectures might be supported by Debian/Ubuntu Ports.</p>
<h3 id="building-for-armaarch64">Building for ARM/aarch64</h3>
<p>A common cross-compilation target is the ARM CPU. When building for ARM, it is useful to set the ABI profile. A number of pre-defined ABI profiles are available using <code>--with-abi-profile</code>: arm-vfp-sflt, arm-vfp-hflt, arm-sflt, armv5-vfp-sflt, armv6-vfp-hflt. Note that soft-float ABIs are no longer properly supported by the JDK.</p>
<p>The JDK contains two different ports for the aarch64 platform, one is the original aarch64 port from the <a href="http://openjdk.java.net/projects/aarch64-port">AArch64 Port Project</a> and one is a 64-bit version of the Oracle contributed ARM port. When targeting aarch64, by the default the original aarch64 port is used. To select the Oracle ARM 64 port, use <code>--with-cpu-port=arm64</code>. Also set the corresponding value (<code>aarch64</code> or <code>arm64</code>) to with-abi-profile, to ensure a consistent build.</p>
<h3 id="verifying-the-build">Verifying the Build</h3>
<p>The build will end up in a directory named like <code>build/linux-arm-normal-server-release</code>.</p>
<p>Inside this build output directory, the <code>images/jdk</code> will contain the newly built JDK, for your <em>target</em> system.</p>
@@ -651,21 +777,21 @@ cp: cannot stat `arm-linux-gnueabihf/libXt.so&#39;: No such file or directory</c
<h2 id="build-performance">Build Performance</h2>
<p>Building the JDK requires a lot of horsepower. Some of the build tools can be adjusted to utilize more or less of resources such as parallel threads and memory. The <code>configure</code> script analyzes your system and selects reasonable values for such options based on your hardware. If you encounter resource problems, such as out of memory conditions, you can modify the detected values with:</p>
<ul>
<li><p><code>--with-num-cores</code> number of cores in the build system, e.g. <code>--with-num-cores=8</code>.</p></li>
<li><p><code>--with-memory-size</code> memory (in MB) available in the build system, e.g. <code>--with-memory-size=1024</code></p></li>
<li><p><code>--with-num-cores</code> -- number of cores in the build system, e.g. <code>--with-num-cores=8</code>.</p></li>
<li><p><code>--with-memory-size</code> -- memory (in MB) available in the build system, e.g. <code>--with-memory-size=1024</code></p></li>
</ul>
<p>You can also specify directly the number of build jobs to use with <code>--with-jobs=N</code> to <code>configure</code>, or <code>JOBS=N</code> to <code>make</code>. Do not use the <code>-j</code> flag to <code>make</code>. In most cases it will be ignored by the makefiles, but it can cause problems for some make targets.</p>
<p>It might also be necessary to specify the JVM arguments passed to the Boot JDK, using e.g. <code>--with-boot-jdk-jvmargs=&quot;-Xmx8G&quot;</code>. Doing so will override the default JVM arguments passed to the Boot JDK.</p>
<p>At the end of a successful execution of <code>configure</code>, you will get a performance summary, indicating how well the build will perform. Here you will also get performance hints. If you want to build fast, pay attention to those!</p>
<p>If you want to tweak build performance, run with <code>make LOG=info</code> to get a build time summary at the end of the build process.</p>
<h3 id="disk-speed">Disk Speed</h3>
<p>If you are using network shares, e.g. via NFS, for your source code, make sure the build directory is situated on local disk (e.g. by <code>ln -s /localdisk/jdk-build $JDK-SHARE/build</code>). The performance penalty is extremely high for building on a network share; close to unusable.</p>
<p>If you are using network shares, e.g. via NFS, for your source code, make sure the build directory is situated on local disk (e.g. by <code>ln -s /localdisk/jdk-build $JDK-SHARE/build</code>). The performance penalty is extremely high for building on a network share; close to unusable.</p>
<p>Also, make sure that your build tools (including Boot JDK and toolchain) is located on a local disk and not a network share.</p>
<p>As has been stressed elsewhere, do use SSD for source code and build directory, as well as (if possible) the build tools.</p>
<h3 id="virus-checking">Virus Checking</h3>
<p>The use of virus checking software, especially on Windows, can <em>significantly</em> slow down building of the JDK. If possible, turn off such software, or exclude the directory containing the JDK source code from on-the-fly checking.</p>
<h3 id="ccache">Ccache</h3>
<p>The JDK build supports building with ccache when using gcc or clang. Using ccache can radically speed up compilation of native code if you often rebuild the same sources. Your milage may vary however, so we recommend evaluating it for yourself. To enable it, make sure its on the path and configure with <code>--enable-ccache</code>.</p>
<p>The JDK build supports building with ccache when using gcc or clang. Using ccache can radically speed up compilation of native code if you often rebuild the same sources. Your milage may vary however, so we recommend evaluating it for yourself. To enable it, make sure it's on the path and configure with <code>--enable-ccache</code>.</p>
<h3 id="precompiled-headers">Precompiled Headers</h3>
<p>By default, the Hotspot build uses preccompiled headers (PCH) on the toolchains were it is properly supported (clang, gcc, and Visual Studio). Normally, this speeds up the build process, but in some circumstances, it can actually slow things down.</p>
<p>You can experiment by disabling precompiled headers using <code>--disable-precompiled-headers</code>.</p>
@@ -700,11 +826,11 @@ make/Main.gmk:263: recipe for target &#39;hotspot-server-libs&#39; failed
Hint: Try searching the build log for the name of the first failed target.
Hint: If caused by a warning, try configure --disable-warnings-as-errors.</code></pre>
<p>Lets break it down! First, the selected configuration, and the top-level target you entered on the command line that caused the failure is printed.</p>
<p>Let's break it down! First, the selected configuration, and the top-level target you entered on the command line that caused the failure is printed.</p>
<p>Then, between the <code>Output from failing command(s) repeated here</code> and <code>End of repeated output</code> the first lines of output (stdout and stderr) from the actual failing command is repeated. In most cases, this is the error message that caused the build to fail. If multiple commands were failing (this can happen in a parallel build), output from all failed commands will be printed here.</p>
<p>The path to the <code>failure-logs</code> directory is printed. In this file you will find a <code>&lt;target&gt;.log</code> file that contains the output from this command in its entirety, and also a <code>&lt;target&gt;.cmd</code>, which contain the complete command line used for running this command. You can re-run the failing command by executing <code>. &lt;path to failure-logs&gt;/&lt;target&gt;.cmd</code> in your shell.</p>
<p>Another way to trace the failure is to follow the chain of make targets, from top-level targets to individual file targets. Between <code>Make failed targets repeated here</code> and <code>End of repeated output</code> the output from make showing this chain is repeated. The first failed recipe will typically contain the full path to the file in question that failed to compile. Following lines will show a trace of make targets why we ended up trying to compile that file.</p>
<p>Finally, some hints are given on how to locate the error in the complete log. In this example, we would try searching the log file for <code>psMemoryPool.o</code>. Another way to quickly locate make errors in the log is to search for <code>] Error</code>” or “<code>***</code>.</p>
<p>Finally, some hints are given on how to locate the error in the complete log. In this example, we would try searching the log file for &quot;<code>psMemoryPool.o</code>&quot;. Another way to quickly locate make errors in the log is to search for &quot;<code>] Error</code>&quot; or &quot;<code>***</code>&quot;.</p>
<p>Note that the build failure summary will only help you if the issue was a compilation failure or similar. If the problem is more esoteric, or is due to errors in the build machinery, you will likely get empty output logs, and <code>No indication of failed target found</code> instead of the make target chain.</p>
<h4 id="checking-the-build-log-file">Checking the Build Log File</h4>
<p>The output (stdout and stderr) from the latest build is always stored in <code>$BUILD/build.log</code>. The previous build log is stored as <code>build.log.old</code>. This means that it is not necessary to redirect the build output yourself if you want to process it.</p>
@@ -717,21 +843,21 @@ Hint: If caused by a warning, try configure --disable-warnings-as-errors.</code>
<p>Verify that the summary at the end looks correct. Are you indeed using the Boot JDK and native toolchain that you expect?</p>
<p>By default, the JDK has a strict approach where warnings from the compiler is considered errors which fail the build. For very new or very old compiler versions, this can trigger new classes of warnings, which thus fails the build. Run <code>configure</code> with <code>--disable-warnings-as-errors</code> to turn of this behavior. (The warnings will still show, but not make the build fail.)</p>
<h4 id="problems-with-incremental-rebuilds">Problems with Incremental Rebuilds</h4>
<p>Incremental rebuilds mean that when you modify part of the product, only the affected parts get rebuilt. While this works great in most cases, and significantly speed up the development process, from time to time complex interdependencies will result in an incorrect build result. This is the most common cause for unexpected build problems, together with inconsistencies between the different Mercurial repositories in the forest.</p>
<p>Incremental rebuilds mean that when you modify part of the product, only the affected parts get rebuilt. While this works great in most cases, and significantly speed up the development process, from time to time complex interdependencies will result in an incorrect build result. This is the most common cause for unexpected build problems.</p>
<p>Here are a suggested list of things to try if you are having unexpected build problems. Each step requires more time than the one before, so try them in order. Most issues will be solved at step 1 or 2.</p>
<ol type="1">
<li><p>Make sure your forest is up-to-date</p>
<p>Run <code>bash get_source.sh</code> to make sure you have the latest version of all repositories.</p></li>
<li><p>Make sure your repository is up-to-date</p>
<p>Run <code>hg pull -u</code> to make sure you have the latest changes.</p></li>
<li><p>Clean build results</p>
<p>The simplest way to fix incremental rebuild issues is to run <code>make clean</code>. This will remove all build results, but not the configuration or any build system support artifacts. In most cases, this will solve build errors resulting from incremental build mismatches.</p></li>
<li><p>Completely clean the build directory.</p>
<p>If this does not work, the next step is to run <code>make dist-clean</code>, or removing the build output directory (<code>$BUILD</code>). This will clean all generated output, including your configuration. You will need to re-run <code>configure</code> after this step. A good idea is to run <code>make print-configuration</code> before running <code>make dist-clean</code>, as this will print your current <code>configure</code> command line. Heres a way to do this:</p>
<p>If this does not work, the next step is to run <code>make dist-clean</code>, or removing the build output directory (<code>$BUILD</code>). This will clean all generated output, including your configuration. You will need to re-run <code>configure</code> after this step. A good idea is to run <code>make print-configuration</code> before running <code>make dist-clean</code>, as this will print your current <code>configure</code> command line. Here's a way to do this:</p>
<pre><code>make print-configuration &gt; current-configuration
make dist-clean
bash configure $(cat current-configuration)
make</code></pre></li>
<li><p>Re-clone the Mercurial forest</p>
<p>Sometimes the Mercurial repositories themselves gets in a state that causes the product to be un-buildable. In such a case, the simplest solution is often the sledgehammer approach: delete the entire forest, and re-clone it. If you have local changes, save them first to a different location using <code>hg export</code>.</p></li>
<li><p>Re-clone the Mercurial repository</p>
<p>Sometimes the Mercurial repository gets in a state that causes the product to be un-buildable. In such a case, the simplest solution is often the &quot;sledgehammer approach&quot;: delete the entire repository, and re-clone it. If you have local changes, save them first to a different location using <code>hg export</code>.</p></li>
</ol>
<h3 id="specific-build-issues">Specific Build Issues</h3>
<h4 id="clock-skew">Clock Skew</h4>
@@ -753,9 +879,9 @@ spawn failed</code></pre>
<p>If none of the suggestions in this document helps you, or if you find what you believe is a bug in the build system, please contact the Build Group by sending a mail to <a href="mailto:build-dev@openjdk.java.net">build-dev@openjdk.java.net</a>. Please include the relevant parts of the configure and/or build log.</p>
<p>If you need general help or advice about developing for the JDK, you can also contact the Adoption Group. See the section on <a href="#contributing-to-openjdk">Contributing to OpenJDK</a> for more information.</p>
<h2 id="hints-and-suggestions-for-advanced-users">Hints and Suggestions for Advanced Users</h2>
<h3 id="setting-up-a-forest-for-pushing-changes-defpath">Setting Up a Forest for Pushing Changes (defpath)</h3>
<h3 id="setting-up-a-repository-for-pushing-changes-defpath">Setting Up a Repository for Pushing Changes (defpath)</h3>
<p>To help you prepare a proper push path for a Mercurial repository, there exists a useful tool known as <a href="http://openjdk.java.net/projects/code-tools/defpath">defpath</a>. It will help you setup a proper push path for pushing changes to the JDK.</p>
<p>Install the extension by cloning <code>http://hg.openjdk.java.net/code-tools/defpath</code> and updating your <code>.hgrc</code> file. Heres one way to do this:</p>
<p>Install the extension by cloning <code>http://hg.openjdk.java.net/code-tools/defpath</code> and updating your <code>.hgrc</code> file. Here's one way to do this:</p>
<pre><code>cd ~
mkdir hg-ext
cd hg-ext
@@ -766,7 +892,6 @@ defpath=~/hg-ext/defpath/defpath.py
EOT</code></pre>
<p>You can now setup a proper push path using:</p>
<pre><code>hg defpath -d -u &lt;your OpenJDK username&gt;</code></pre>
<p>If you also have the <code>trees</code> extension installed in Mercurial, you will automatically get a <code>tdefpath</code> command, which is even more useful. By running <code>hg tdefpath -du &lt;username&gt;</code> in the top repository of your forest, all repos will get setup automatically. This is the recommended usage.</p>
<h3 id="bash-completion">Bash Completion</h3>
<p>The <code>configure</code> and <code>make</code> commands tries to play nice with bash command-line completion (using <code>&lt;tab&gt;</code> or <code>&lt;tab&gt;&lt;tab&gt;</code>). To use this functionality, make sure you enable completion in your <code>~/.bashrc</code> (see instructions for bash in your operating system).</p>
<p>Make completion will work out of the box, and will complete valid make targets. For instance, typing <code>make jdk-i&lt;tab&gt;</code> will complete to <code>make jdk-image</code>.</p>
@@ -784,12 +909,12 @@ chmod +x /tmp/configure
sudo mv /tmp/configure /usr/local/bin</code></pre>
<p>Now <code>configure --en&lt;tab&gt;-dt&lt;tab&gt;</code> will result in <code>configure --enable-dtrace</code>.</p>
<h3 id="using-multiple-configurations">Using Multiple Configurations</h3>
<p>You can have multiple configurations for a single source forest. When you create a new configuration, run <code>configure --with-conf-name=&lt;name&gt;</code> to create a configuration with the name <code>&lt;name&gt;</code>. Alternatively, you can create a directory under <code>build</code> and run <code>configure</code> from there, e.g. <code>mkdir build/&lt;name&gt; &amp;&amp; cd build/&lt;name&gt; &amp;&amp; bash ../../configure</code>.</p>
<p>You can have multiple configurations for a single source repository. When you create a new configuration, run <code>configure --with-conf-name=&lt;name&gt;</code> to create a configuration with the name <code>&lt;name&gt;</code>. Alternatively, you can create a directory under <code>build</code> and run <code>configure</code> from there, e.g. <code>mkdir build/&lt;name&gt; &amp;&amp; cd build/&lt;name&gt; &amp;&amp; bash ../../configure</code>.</p>
<p>Then you can build that configuration using <code>make CONF_NAME=&lt;name&gt;</code> or <code>make CONF=&lt;pattern&gt;</code>, where <code>&lt;pattern&gt;</code> is a substring matching one or several configurations, e.g. <code>CONF=debug</code>. The special empty pattern (<code>CONF=</code>) will match <em>all</em> available configuration, so <code>make CONF= hotspot</code> will build the <code>hotspot</code> target for all configurations. Alternatively, you can execute <code>make</code> in the configuration directory, e.g. <code>cd build/&lt;name&gt; &amp;&amp; make</code>.</p>
<h3 id="handling-reconfigurations">Handling Reconfigurations</h3>
<p>If you update the forest and part of the configure script has changed, the build system will force you to re-run <code>configure</code>.</p>
<p>If you update the repository and part of the configure script has changed, the build system will force you to re-run <code>configure</code>.</p>
<p>Most of the time, you will be fine by running <code>configure</code> again with the same arguments as the last time, which can easily be performed by <code>make reconfigure</code>. To simplify this, you can use the <code>CONF_CHECK</code> make control variable, either as <code>make CONF_CHECK=auto</code>, or by setting an environment variable. For instance, if you add <code>export CONF_CHECK=auto</code> to your <code>.bashrc</code> file, <code>make</code> will always run <code>reconfigure</code> automatically whenever the configure script has changed.</p>
<p>You can also use <code>CONF_CHECK=ignore</code> to skip the check for a needed configure update. This might speed up the build, but comes at the risk of an incorrect build result. This is only recommended if you know what youre doing.</p>
<p>You can also use <code>CONF_CHECK=ignore</code> to skip the check for a needed configure update. This might speed up the build, but comes at the risk of an incorrect build result. This is only recommended if you know what you're doing.</p>
<p>From time to time, you will also need to modify the command line to <code>configure</code> due to changes. Use <code>make print-configure</code> to show the command line used for your current configuration.</p>
<h3 id="using-fine-grained-make-targets">Using Fine-Grained Make Targets</h3>
<p>The default behavior for make is to create consistent and correct output, at the expense of build speed, if necessary.</p>
@@ -847,9 +972,9 @@ test-support/</code></pre>
<p>This is what they are used for:</p>
<ul>
<li><p><code>images</code>: This is the directory were the output of the <code>*-image</code> make targets end up. For instance, <code>make jdk-image</code> ends up in <code>images/jdk</code>.</p></li>
<li><p><code>jdk</code>: This is the exploded image. After <code>make jdk</code>, you will be able to launch the newly built JDK by running <code>$BUILD/jdk/bin/java</code>.</p></li>
<li><p><code>jdk</code>: This is the &quot;exploded image&quot;. After <code>make jdk</code>, you will be able to launch the newly built JDK by running <code>$BUILD/jdk/bin/java</code>.</p></li>
<li><p><code>test-results</code>: This directory contains the results from running tests.</p></li>
<li><p><code>support</code>: This is an area for intermediate files needed during the build, e.g. generated source code, object files and class files. Some noteworthy directories in <code>support</code> is <code>gensrc</code>, which contains the generated source code, and the <code>modules_*</code> directories, which contains the files in a per-module hierarchy that will later be collapsed into the <code>jdk</code> directory of the exploded image.</p></li>
<li><p><code>support</code>: This is an area for intermediate files needed during the build, e.g. generated source code, object files and class files. Some noteworthy directories in <code>support</code> is <code>gensrc</code>, which contains the generated source code, and the <code>modules_*</code> directories, which contains the files in a per-module hierarchy that will later be collapsed into the <code>jdk</code> directory of the exploded image.</p></li>
<li><p><code>buildtools</code>: This is an area for tools compiled for the build platform that are used during the rest of the build.</p></li>
<li><p><code>hotspot</code>: This is an area for intermediate files needed when building hotspot.</p></li>
<li><p><code>configure-support</code>, <code>make-support</code> and <code>test-support</code>: These directories contain files that are needed by the build system for <code>configure</code>, <code>make</code> and for running tests.</p></li>
@@ -884,7 +1009,7 @@ test-support/</code></pre>
))</code></pre>
<p>By encapsulating and expressing the high-level knowledge of <em>what</em> should be done, rather than <em>how</em> it should be done (as is normal in Makefiles), we can build a much more powerful and flexible build system.</p>
<p>Correct dependency tracking is paramount. Sloppy dependency tracking will lead to improper parallelization, or worse, race conditions.</p>
<p>To test for/debug race conditions, try running <code>make JOBS=1</code> and <code>make JOBS=100</code> and see if it makes any difference. (It shouldnt).</p>
<p>To test for/debug race conditions, try running <code>make JOBS=1</code> and <code>make JOBS=100</code> and see if it makes any difference. (It shouldn't).</p>
<p>To compare the output of two different builds and see if, and how, they differ, run <code>$BUILD1/compare.sh -o $BUILD2</code>, where <code>$BUILD1</code> and <code>$BUILD2</code> are the two builds you want to compare.</p>
<p>To automatically build two consecutive versions and compare them, use <code>COMPARE_BUILD</code>. The value of <code>COMPARE_BUILD</code> is a set of variable=value assignments, like this:</p>
<pre><code>make COMPARE_BUILD=CONF=--enable-new-hotspot-feature:MAKE=hotspot</code></pre>
@@ -892,9 +1017,9 @@ test-support/</code></pre>
<p>To analyze build performance, run with <code>LOG=trace</code> and check <code>$BUILD/build-trace-time.log</code>. Use <code>JOBS=1</code> to avoid parallelism.</p>
<p>Please check that you adhere to the <a href="http://openjdk.java.net/groups/build/doc/code-conventions.html">Code Conventions for the Build System</a> before submitting patches.</p>
<h2 id="contributing-to-the-jdk">Contributing to the JDK</h2>
<p>So, now youve built your JDK, and made your first patch, and want to contribute it back to the OpenJDK Community.</p>
<p>So, now you've built your JDK, and made your first patch, and want to contribute it back to the OpenJDK Community.</p>
<p>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.</p>
<p>The official place to start is the <a href="http://openjdk.java.net/contribute/">How to contribute page</a>. There is also an official (but somewhat outdated and skimpy on details) <a href="http://openjdk.java.net/guide/">Developers 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.java.net/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.java.net/mailman/listinfo/adoption-discuss">mail</a> or <a href="http://openjdk.java.net/irc/">IRC</a>.</p>
<p>The official place to start is the <a href="http://openjdk.java.net/contribute/">'How to contribute' page</a>. There is also an official (but somewhat outdated and skimpy on details) <a href="http://openjdk.java.net/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.java.net/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.java.net/mailman/listinfo/adoption-discuss">mail</a> or <a href="http://openjdk.java.net/irc/">IRC</a>.</p>
</body>
</html>

View File

@@ -48,7 +48,7 @@ JDK.
Make sure you are getting the correct version. As of JDK 10, the source is no
longer split into separate repositories so you only need to clone one single
repository. At the [OpenJDK Mercurial server](http://hg.openjdk.java.net/) you
can see a list of all available forests. If you want to build an older version,
can see a list of all available repositories. If you want to build an older version,
e.g. JDK 8, it is recommended that you get the `jdk8u` forest, which contains
incremental updates, instead of the `jdk8` forest, which was frozen at JDK 8 GA.
@@ -75,8 +75,8 @@ on where and how to check out the source code.
network share for the source code, see below for suggestions on how to keep
the build artifacts on a local disk.
* On Windows, extra care must be taken to make sure the [Cygwin](#cygwin)
environment is consistent. It is recommended that you follow this
* On Windows, if using [Cygwin](#cygwin), extra care must be taken to make sure
the environment is consistent. It is recommended that you follow this
procedure:
* Create the directory that is going to contain the top directory of the
@@ -120,7 +120,16 @@ At a minimum, a machine with 4 cores is advisable, as well as 4 GB of RAM. (The
more cores to use, the more memory you need.) At least 8 GB of free disk space
is required.
### Building on arm/aarch64
### Building on aarch64
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 free disk
space is required.
If you do not have access to sufficiently powerful hardware, it is also
possible to use [cross-compiling](#cross-compiling).
### Building on 32-bit arm
This is not recommended. Instead, see the section on [Cross-compiling](
#cross-compiling).
@@ -165,10 +174,10 @@ On Windows, it is important that you pay attention to the instructions in the
Windows is the only non-POSIX OS supported by the JDK, and as such, requires
some extra care. A POSIX support layer is required to build on Windows.
Currently, the only supported such layer is Cygwin. (Msys is no longer
supported due to a too old bash; msys2 and the new Windows Subsystem for Linux
(WSL) would likely be possible to support in a future version but that would
require effort to implement.)
Currently, the only supported such layers are Cygwin and Windows Subsystem for
Linux (WSL). (Msys is no longer supported due to a too old bash; msys2 would
likely be possible to support in a future version but that would require effort
to implement.)
Internally in the build system, all paths are represented as Unix-style paths,
e.g. `/cygdrive/c/hg/jdk9/Makefile` rather than `C:\hg\jdk9\Makefile`. This
@@ -179,7 +188,7 @@ on [Fixpath](#fixpath).
#### Cygwin
A functioning [Cygwin](http://www.cygwin.com/) environment is thus required for
A functioning [Cygwin](http://www.cygwin.com/) environment is required for
building the JDK on Windows. If you have a 64-bit OS, we strongly recommend
using the 64-bit version of Cygwin.
@@ -189,7 +198,7 @@ that whenever you add or update a package in Cygwin, you might (inadvertently)
update tools that are used by the JDK build process, and that can cause
unexpected build problems.
The JDK requires GNU Make 4.0 or greater on Windows. This is usually not a
The JDK requires GNU Make 4.0 or greater in Cygwin. This is usually not a
problem, since Cygwin currently only distributes GNU Make at a version above
4.0.
@@ -212,6 +221,30 @@ please check the Cygwin FAQ on the ["BLODA" list](
https://cygwin.com/faq/faq.html#faq.using.bloda) and the section on [fork()
failures](https://cygwin.com/faq/faq.html#faq.using.fixing-fork-failures).
#### Windows Subsystem for Linux (WSL)
Windows 10 1809 or newer is supported due to a dependency on the wslpath utility
and support for environment variable sharing through WSLENV. Version 1803 can
work but intermittent build failures have been observed.
It's possible to build both Windows and Linux binaries from WSL. To build
Windows binaries, you must use a Windows boot JDK (located in a
Windows-accessible directory). To build Linux binaries, you must use a Linux
boot JDK. The default behavior is to build for Windows. To build for Linux, pass
`--build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu` to
`configure`.
If building Windows binaries, the source code must be located in a Windows-
accessible directory. This is because Windows executables (such as Visual Studio
and the boot JDK) must be able to access the source code. Also, the drive where
the source is stored must be mounted as case-insensitive by changing either
/etc/fstab or /etc/wsl.conf in WSL. Individual directories may be corrected
using the fsutil tool in case the source was cloned before changing the mount
options.
Note that while it's possible to build on WSL, testing is still not fully
supported.
### Solaris
See `make/devkit/solaris11.1-package-list.txt` for a list of recommended
@@ -233,9 +266,8 @@ difficult for a project such as the JDK to keep pace with a continuously updated
machine running macOS. See the section on [Apple Xcode](#apple-xcode) on some
strategies to deal with this.
It is recommended that you use at least Mac OS X 10.9 (Mavericks). At the time
of writing, the JDK has been successfully compiled on macOS versions up to
10.12.5 (Sierra), using XCode 8.3.2 and `--disable-warnings-as-errors`.
It is recommended that you use at least Mac OS X 10.13 (High Sierra). At the time
of writing, the JDK has been successfully compiled on macOS 10.12 (Sierra).
The standard macOS environment contains the basic tooling needed to build, but
for external libraries a package manager is recommended. The JDK uses
@@ -292,9 +324,9 @@ issues.
Operating system Toolchain version
------------------ -------------------------------------------------------
Linux gcc 7.3.0
macOS Apple Xcode 6.3 (using clang 6.1.0)
macOS Apple Xcode 9.4 (using clang 9.1.0)
Solaris Oracle Solaris Studio 12.4 (with compiler version 5.13)
Windows Microsoft Visual Studio 2013 update 4
Windows Microsoft Visual Studio 2017 update 15.5.5
### gcc
@@ -315,7 +347,7 @@ To use clang instead of gcc on Linux, use `--with-toolchain-type=clang`.
### Apple Xcode
The oldest supported version of Xcode is 5.
The oldest supported version of Xcode is 8.
You will need the Xcode command lines developers tools to be able to build
the JDK. (Actually, *only* the command lines tools are needed, not the IDE.)
@@ -330,7 +362,7 @@ http://iosdevelopertips.com/xcode/install-multiple-versions-of-xcode.html) has
good suggestions on managing multiple Xcode versions. To use a specific version
of Xcode, use `xcode-select -s` before running `configure`, or use
`--with-toolchain-path` to point to the version of Xcode to use, e.g.
`configure --with-toolchain-path=/Applications/Xcode5.app/Contents/Developer/usr/bin`
`configure --with-toolchain-path=/Applications/Xcode8.app/Contents/Developer/usr/bin`
If you have recently (inadvertently) updated your OS and/or Xcode version, and
the JDK can no longer be built, please see the section on [Problems with the
@@ -372,11 +404,11 @@ CC: Sun C++ 5.13 SunOS_i386 151846-10 2015/10/30
The minimum accepted version of Visual Studio is 2010. Older versions will not
be accepted by `configure`. The maximum accepted version of Visual Studio is
2013.
2017. Versions older than 2017 are unlikely to continue working for long.
If you have multiple versions of Visual Studio installed, `configure` will by
default pick the latest. You can request a specific version to be used by
setting `--with-toolchain-version`, e.g. `--with-toolchain-version=2010`.
setting `--with-toolchain-version`, e.g. `--with-toolchain-version=2015`.
If you get `LINK: fatal error LNK1123: failure during conversion to COFF: file
invalid` when building using Visual Studio 2010, you have encountered
@@ -480,15 +512,15 @@ Certain [X11](http://www.x.org/) libraries and include files are required on
Linux and Solaris.
* To install on an apt-based Linux, try running `sudo apt-get install
libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev`.
libx11-dev libxext-dev libxrender-dev libxrandr-dev libxtst-dev libxt-dev`.
* To install on an rpm-based Linux, try running `sudo yum install
libXtst-devel libXt-devel libXrender-devel libXi-devel`.
libXtst-devel libXt-devel libXrender-devel libXrandr-devel libXi-devel`.
* To install on Solaris, try running `pkg install x11/header/x11-protocols
x11/library/libice x11/library/libpthread-stubs x11/library/libsm
x11/library/libx11 x11/library/libxau x11/library/libxcb
x11/library/libxdmcp x11/library/libxevie x11/library/libxext
x11/library/libxrender x11/library/libxscrnsaver x11/library/libxtst
x11/library/toolkit/libxt`.
x11/library/libxrender x11/library/libxrandr x11/library/libxscrnsaver
x11/library/libxtst x11/library/toolkit/libxt`.
Use `--with-x=<path>` if `configure` does not properly locate your X11 files.
@@ -654,6 +686,14 @@ features, use `bash configure --help=short` instead.)
platform, instead of doing a full cross-compile. (This is known as a
*reduced* build.)
On Linux, BSD and AIX, it is possible to override where Java by default
searches for runtime/JNI libraries. This can be useful in situations where
there is a special shared directory for system JNI libraries. This setting
can in turn be overriden at runtime by setting the `java.library.path` property.
* `--with-jni-libpath=<path>` - Use the specified path as a default
when searching for runtime libraries.
#### Configure Arguments for Native Compilation
* `--with-devkit=<path>` - Use this devkit for compilers, tools and resources
@@ -876,6 +916,64 @@ If all you want to do is to compile a 32-bit version, for the same OS, on a
full-blown cross-compilation. (While this surely is possible, it's a lot more
work and will take much longer to build.)
### Cross compiling the easy way with OpenJDK devkits
The OpenJDK build system provides out-of-the box support for creating and using
so called devkits. A `devkit` is basically a collection of a cross-compiling
toolchain and a sysroot environment which can easily be used together with the
`--with-devkit` configure option to cross compile the OpenJDK. On Linux/x86_64,
the following command:
```
bash configure --with-devkit=<devkit-path> --openjdk-target=ppc64-linux-gnu && make
```
will configure and build OpenJDK for Linux/ppc64 assuming that `<devkit-path>`
points to a Linux/x86_64 to Linux/ppc64 devkit.
Devkits can be created from the `make/devkit` directory by executing:
```
make [ TARGETS="<TARGET_TRIPLET>+" ] [ BASE_OS=<OS> ] [ BASE_OS_VERSION=<VER> ]
```
where `TARGETS` contains one or more `TARGET_TRIPLET`s of the form
described in [section 3.4 of the GNU Autobook](
https://sourceware.org/autobook/autobook/autobook_17.html). If no
targets are given, a native toolchain for the current platform will be
created. Currently, at least the following targets are known to work:
Supported devkit targets
-------------------------
x86_64-linux-gnu
aarch64-linux-gnu
arm-linux-gnueabihf
ppc64-linux-gnu
ppc64le-linux-gnu
s390x-linux-gnu
`BASE_OS` must be one of "OEL6" for Oracle Enterprise Linux 6 or
"Fedora" (if not specified "OEL6" will be the default). If the base OS
is "Fedora" the corresponding Fedora release can be specified with the
help of the `BASE_OS_VERSION` option (with "27" as default version).
If the build is successful, the new devkits can be found in the
`build/devkit/result` subdirectory:
```
cd make/devkit
make TARGETS="ppc64le-linux-gnu aarch64-linux-gnu" BASE_OS=Fedora BASE_OS_VERSION=21
ls -1 ../../build/devkit/result/
x86_64-linux-gnu-to-aarch64-linux-gnu
x86_64-linux-gnu-to-ppc64le-linux-gnu
```
Notice that devkits are not only useful for targeting different build
platforms. Because they contain the full build dependencies for a
system (i.e. compiler and root file system), they can easily be used
to build well-known, reliable and reproducible build environments. You
can for example create and use a devkit with GCC 7.3 and a Fedora 12
sysroot environment (with glibc 2.11) on Ubuntu 14.04 (which doesn't
have GCC 7.3 by default) to produce OpenJDK binaries which will run on
all Linux systems with runtime libraries newer than the ones from
Fedora 12 (e.g. Ubuntu 16.04, SLES 11 or RHEL 6).
### Boot JDK and Build JDK
When cross-compiling, make sure you use a boot JDK that runs on the *build*
@@ -988,6 +1086,7 @@ Note that X11 is needed even if you only want to build a headless JDK.
* libice-dev
* libxrender
* libxrender-dev
* libxrandr-dev
* libsm-dev
* libxt-dev
* libx11
@@ -1019,6 +1118,51 @@ Note that X11 is needed even if you only want to build a headless JDK.
* If the X11 libraries are not properly detected by `configure`, you can
point them out by `--with-x`.
### Creating And Using Sysroots With qemu-deboostrap
Fortunately, you can create sysroots for foreign architectures with tools
provided by your OS. On Debian/Ubuntu systems, one could use `qemu-deboostrap` to
create the *target* system chroot, which would have the native libraries and headers
specific to that *target* system. After that, we can use the cross-compiler on the *build*
system, pointing into chroot to get the build dependencies right. This allows building
for foreign architectures with native compilation speed.
For example, cross-compiling to AArch64 from x86_64 could be done like this:
* Install cross-compiler on the *build* system:
```
apt install g++-aarch64-linux-gnu gcc-aarch64-linux-gnu
```
* Create chroot on the *build* system, configuring it for *target* system:
```
sudo qemu-debootstrap --arch=arm64 --verbose \
--include=fakeroot,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype6-dev,libpng12-dev \
--resolve-deps jessie /chroots/arm64 http://httpredir.debian.org/debian/
```
* Configure and build with newly created chroot as sysroot/toolchain-path:
```
CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ sh ./configure --openjdk-target=aarch64-linux-gnu --with-sysroot=/chroots/arm64/ --with-toolchain-path=/chroots/arm64/
make images
ls build/linux-aarch64-normal-server-release/
```
The build does not create new files in that chroot, so it can be reused for multiple builds
without additional cleanup.
Architectures that are known to successfully cross-compile like this are:
Target `CC` `CXX` `--arch=...` `--openjdk-target=...`
------------ ------------------------- --------------------------- ------------- -----------------------
x86 default default i386 i386-linux-gnu
armhf gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf armhf arm-linux-gnueabihf
aarch64 gcc-aarch64-linux-gnu g++-aarch64-linux-gnu arm64 aarch64-linux-gnu
ppc64el gcc-powerpc64le-linux-gnu g++-powerpc64le-linux-gnu ppc64el powerpc64le-linux-gnu
s390x gcc-s390x-linux-gnu g++-s390x-linux-gnu s390x s390x-linux-gnu
Additional architectures might be supported by Debian/Ubuntu Ports.
### Building for ARM/aarch64
A common cross-compilation target is the ARM CPU. When building for ARM, it is
@@ -1027,14 +1171,6 @@ available using `--with-abi-profile`: arm-vfp-sflt, arm-vfp-hflt, arm-sflt,
armv5-vfp-sflt, armv6-vfp-hflt. Note that soft-float ABIs are no longer
properly supported by the JDK.
The JDK contains two different ports for the aarch64 platform, one is the
original aarch64 port from the [AArch64 Port Project](
http://openjdk.java.net/projects/aarch64-port) and one is a 64-bit version of
the Oracle contributed ARM port. When targeting aarch64, by the default the
original aarch64 port is used. To select the Oracle ARM 64 port, use
`--with-cpu-port=arm64`. Also set the corresponding value (`aarch64` or
`arm64`) to --with-abi-profile, to ensure a consistent build.
### Verifying the Build
The build will end up in a directory named like
@@ -1256,17 +1392,15 @@ Incremental rebuilds mean that when you modify part of the product, only the
affected parts get rebuilt. While this works great in most cases, and
significantly speed up the development process, from time to time complex
interdependencies will result in an incorrect build result. This is the most
common cause for unexpected build problems, together with inconsistencies
between the different Mercurial repositories in the forest.
common cause for unexpected build problems.
Here are a suggested list of things to try if you are having unexpected build
problems. Each step requires more time than the one before, so try them in
order. Most issues will be solved at step 1 or 2.
1. Make sure your forest is up-to-date
1. Make sure your repository is up-to-date
Run `bash get_source.sh` to make sure you have the latest version of all
repositories.
Run `hg pull -u` to make sure you have the latest changes.
2. Clean build results
@@ -1291,13 +1425,13 @@ order. Most issues will be solved at step 1 or 2.
make
```
4. Re-clone the Mercurial forest
4. Re-clone the Mercurial repository
Sometimes the Mercurial repositories themselves gets in a state that causes
the product to be un-buildable. In such a case, the simplest solution is
often the "sledgehammer approach": delete the entire forest, and re-clone
it. If you have local changes, save them first to a different location
using `hg export`.
Sometimes the Mercurial repository gets in a state that causes the product
to be un-buildable. In such a case, the simplest solution is often the
"sledgehammer approach": delete the entire repository, and re-clone it.
If you have local changes, save them first to a different location using
`hg export`.
### Specific Build Issues
@@ -1348,7 +1482,7 @@ contact the Adoption Group. See the section on [Contributing to OpenJDK](
## Hints and Suggestions for Advanced Users
### Setting Up a Forest for Pushing Changes (defpath)
### Setting Up a Repository for Pushing Changes (defpath)
To help you prepare a proper push path for a Mercurial repository, there exists
a useful tool known as [defpath](
@@ -1375,11 +1509,6 @@ You can now setup a proper push path using:
hg defpath -d -u <your OpenJDK username>
```
If you also have the `trees` extension installed in Mercurial, you will
automatically get a `tdefpath` command, which is even more useful. By running
`hg tdefpath -du <username>` in the top repository of your forest, all repos
will get setup automatically. This is the recommended usage.
### Bash Completion
The `configure` and `make` commands tries to play nice with bash command-line
@@ -1414,7 +1543,7 @@ Now `configure --en<tab>-dt<tab>` will result in `configure --enable-dtrace`.
### Using Multiple Configurations
You can have multiple configurations for a single source forest. When you
You can have multiple configurations for a single source repository. When you
create a new configuration, run `configure --with-conf-name=<name>` to create a
configuration with the name `<name>`. Alternatively, you can create a directory
under `build` and run `configure` from there, e.g. `mkdir build/<name> && cd
@@ -1429,7 +1558,7 @@ in the configuration directory, e.g. `cd build/<name> && make`.
### Handling Reconfigurations
If you update the forest and part of the configure script has changed, the
If you update the repository and part of the configure script has changed, the
build system will force you to re-run `configure`.
Most of the time, you will be fine by running `configure` again with the same

View File

@@ -11,48 +11,54 @@
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
</style>
<link rel="stylesheet" href="../make/data/docs-resources/resources/jdk-default.css">
<link rel="stylesheet" href="../make/data/docs-resources/resources/jdk-default.css" />
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
<style type="text/css">pre, code, tt { color: #1d6ae5; }</style>
</head>
<body>
<header>
<header id="title-block-header">
<h1 class="title">Testing the JDK</h1>
</header>
<nav id="TOC">
<ul>
<li><a href="#using-the-run-test-framework">Using the run-test framework</a><ul>
<li><a href="#using-make-test-the-run-test-framework">Using &quot;make test&quot; (the run-test framework)</a><ul>
<li><a href="#configuration">Configuration</a></li>
</ul></li>
<li><a href="#test-selection">Test selection</a><ul>
<li><a href="#jtreg">JTReg</a></li>
<li><a href="#gtest">Gtest</a></li>
<li><a href="#microbenchmarks">Microbenchmarks</a></li>
<li><a href="#special-tests">Special tests</a></li>
</ul></li>
<li><a href="#test-results-and-summary">Test results and summary</a></li>
<li><a href="#test-suite-control">Test suite control</a><ul>
<li><a href="#jtreg-keywords">JTReg keywords</a></li>
<li><a href="#gtest-keywords">Gtest keywords</a></li>
<li><a href="#microbenchmark-keywords">Microbenchmark keywords</a></li>
</ul></li>
</ul>
</nav>
<h2 id="using-the-run-test-framework">Using the run-test framework</h2>
<h2 id="using-make-test-the-run-test-framework">Using &quot;make test&quot; (the run-test framework)</h2>
<p>This new way of running tests is developer-centric. It assumes that you have built a JDK locally and want to test it. Running common test targets is simple, and more complex ad-hoc combination of tests is possible. The user interface is forgiving, and clearly report errors it cannot resolve.</p>
<p>The main target “run-test” uses the jdk-image as the tested product. There is also an alternate target “exploded-run-test” that uses the exploded image instead. Not all tests will run successfully on the exploded image, but using this target can greatly improve rebuild times for certain workflows.</p>
<p>The main target <code>test</code> uses the jdk-image as the tested product. There is also an alternate target <code>exploded-test</code> that uses the exploded image instead. Not all tests will run successfully on the exploded image, but using this target can greatly improve rebuild times for certain workflows.</p>
<p>Previously, <code>make test</code> was used invoke an old system for running test, and <code>make run-test</code> was used for the new test framework. For backward compatibility with scripts and muscle memory, <code>run-test</code> (and variants like <code>exploded-run-test</code> or <code>run-test-tier1</code>) are kept as aliases. The old system can still be accessed for some time using <code>cd test &amp;&amp; make</code>.</p>
<p>Some example command-lines:</p>
<pre><code>$ make run-test-tier1
$ make run-test-jdk_lang JTREG=&quot;JOBS=8&quot;
$ make run-test TEST=jdk_lang
$ make run-test-only TEST=&quot;gtest:LogTagSet gtest:LogTagSetDescriptions&quot; GTEST=&quot;REPEAT=-1&quot;
$ make run-test TEST=&quot;hotspot:hotspot_gc&quot; JTREG=&quot;JOBS=1;TIMEOUT=8;VM_OPTIONS=-XshowSettings -Xlog:gc+ref=debug&quot;
$ make run-test TEST=&quot;jtreg:test/hotspot:hotspot_gc test/hotspot/jtreg/native_sanity/JniVersion.java&quot;
$ make exploded-run-test TEST=tier2</code></pre>
<pre><code>$ make test-tier1
$ make test-jdk_lang JTREG=&quot;JOBS=8&quot;
$ make test TEST=jdk_lang
$ make test-only TEST=&quot;gtest:LogTagSet gtest:LogTagSetDescriptions&quot; GTEST=&quot;REPEAT=-1&quot;
$ make test TEST=&quot;hotspot:hotspot_gc&quot; JTREG=&quot;JOBS=1;TIMEOUT=8;VM_OPTIONS=-XshowSettings -Xlog:gc+ref=debug&quot;
$ make test TEST=&quot;jtreg:test/hotspot:hotspot_gc test/hotspot/jtreg/native_sanity/JniVersion.java&quot;
$ make test TEST=&quot;micro:java.lang.reflect&quot; MICRO=&quot;FORK=1;WARMUP_ITER=2&quot;
$ make exploded-test TEST=tier2</code></pre>
<h3 id="configuration">Configuration</h3>
<p>To be able to run JTReg tests, <code>configure</code> needs to know where to find the JTReg test framework. If it is not picked up automatically by configure, use the <code>--with-jtreg=&lt;path to jtreg home&gt;</code> option to point to the JTReg framework. Note that this option should point to the JTReg home, i.e. the top directory, containing <code>lib/jtreg.jar</code> etc. (An alternative is to set the <code>JT_HOME</code> environment variable to point to the JTReg home before running <code>configure</code>.)</p>
<p>To be able to run JTReg tests, <code>configure</code> needs to know where to find the JTReg test framework. If it is not picked up automatically by configure, use the <code>--with-jtreg=&lt;path to jtreg home&gt;</code> option to point to the JTReg framework. Note that this option should point to the JTReg home, i.e. the top directory, containing <code>lib/jtreg.jar</code> etc. (An alternative is to set the <code>JT_HOME</code> environment variable to point to the JTReg home before running <code>configure</code>.)</p>
<p>To be able to run microbenchmarks, <code>configure</code> needs to know where to find the JMH dependency. Use <code>--with-jmh=&lt;path to JMH jars&gt;</code> to point to a directory containing the core JMH and transitive dependencies. The recommended dependencies can be retrieved by running <code>sh make/devkit/createJMHBundle.sh</code>, after which <code>--with-jmh=build/jmh/jars</code> should work.</p>
<h2 id="test-selection">Test selection</h2>
<p>All functionality is available using the run-test make target. In this use case, the test or tests to be executed is controlled using the <code>TEST</code> variable. To speed up subsequent test runs with no source code changes, run-test-only can be used instead, which do not depend on the source and test image build.</p>
<p>For some common top-level tests, direct make targets have been generated. This includes all JTReg test groups, the hotspot gtest, and custom tests (if present). This means that <code>make run-test-tier1</code> is equivalent to <code>make run-test TEST=&quot;tier1&quot;</code>, but the latter is more tab-completion friendly. For more complex test runs, the <code>run-test TEST=&quot;x&quot;</code> solution needs to be used.</p>
<p>All functionality is available using the <code>test</code> make target. In this use case, the test or tests to be executed is controlled using the <code>TEST</code> variable. To speed up subsequent test runs with no source code changes, <code>test-only</code> can be used instead, which do not depend on the source and test image build.</p>
<p>For some common top-level tests, direct make targets have been generated. This includes all JTReg test groups, the hotspot gtest, and custom tests (if present). This means that <code>make test-tier1</code> is equivalent to <code>make test TEST=&quot;tier1&quot;</code>, but the latter is more tab-completion friendly. For more complex test runs, the <code>test TEST=&quot;x&quot;</code> solution needs to be used.</p>
<p>The test specifications given in <code>TEST</code> is parsed into fully qualified test descriptors, which clearly and unambigously show which tests will be run. As an example, <code>:tier1</code> will expand to <code>jtreg:$(TOPDIR)/test/hotspot/jtreg:tier1 jtreg:$(TOPDIR)/test/jdk:tier1 jtreg:$(TOPDIR)/test/langtools:tier1 jtreg:$(TOPDIR)/test/nashorn:tier1 jtreg:$(TOPDIR)/test/jaxp:tier1</code>. You can always submit a list of fully qualified test descriptors in the <code>TEST</code> variable if you want to shortcut the parser.</p>
<h3 id="jtreg">JTReg</h3>
<p>JTReg tests can be selected either by picking a JTReg test group, or a selection of files or directories containing JTReg tests.</p>
@@ -63,7 +69,17 @@ $ make exploded-run-test TEST=tier2</code></pre>
<h3 id="gtest">Gtest</h3>
<p>Since the Hotspot Gtest suite is so quick, the default is to run all tests. This is specified by just <code>gtest</code>, or as a fully qualified test descriptor <code>gtest:all</code>.</p>
<p>If you want, you can single out an individual test or a group of tests, for instance <code>gtest:LogDecorations</code> or <code>gtest:LogDecorations.level_test_vm</code>. This can be particularly useful if you want to run a shaky test repeatedly.</p>
<p>For Gtest, there is a separate test suite for each JVM variant. The JVM variant is defined by adding <code>/&lt;variant&gt;</code> to the test descriptor, e.g. <code>gtest:Log/client</code>. If you specify no variant, gtest will run once for each JVM variant present (e.g. server, client). So if you only have the server JVM present, then <code>gtest:all</code> will be equivalent to <code>gtest:all/server</code>.</p>
<p>For Gtest, there is a separate test suite for each JVM variant. The JVM variant is defined by adding <code>/&lt;variant&gt;</code> to the test descriptor, e.g. <code>gtest:Log/client</code>. If you specify no variant, gtest will run once for each JVM variant present (e.g. server, client). So if you only have the server JVM present, then <code>gtest:all</code> will be equivalent to <code>gtest:all/server</code>.</p>
<h3 id="microbenchmarks">Microbenchmarks</h3>
<p>Which microbenchmarks to run is selected using a regular expression following the <code>micro:</code> test descriptor, e.g., <code>micro:java.lang.reflect</code>. This delegates the test selection to JMH, meaning package name, class name and even benchmark method names can be used to select tests.</p>
<p>Using special characters like <code>|</code> in the regular expression is possible, but needs to be escaped multiple times: <code>micro:ArrayCopy\\\\\|reflect</code>.</p>
<h3 id="special-tests">Special tests</h3>
<p>A handful of odd tests that are not covered by any other testing framework are accessible using the <code>special:</code> test descriptor. Currently, this includes <code>failure-handler</code> and <code>make</code>.</p>
<ul>
<li><p>Failure handler testing is run using <code>special:failure-handler</code> or just <code>failure-handler</code> as test descriptor.</p></li>
<li><p>Tests for the build system, including both makefiles and related functionality, is run using <code>special:make</code> or just <code>make</code> as test descriptor. This is equivalent to <code>special:make:all</code>.</p>
<p>A specific make test can be run by supplying it as argument, e.g. <code>special:make:idea</code>. As a special syntax, this can also be expressed as <code>make-idea</code>, which allows for command lines as <code>make test-make-idea</code>.</p></li>
</ul>
<h2 id="test-results-and-summary">Test results and summary</h2>
<p>At the end of the test run, a summary of all tests run will be presented. This will have a consistent look, regardless of what test suites were used. This is a sample summary:</p>
<pre><code>==============================
@@ -77,14 +93,14 @@ Test summary
TEST FAILURE</code></pre>
<p>Tests where the number of TOTAL tests does not equal the number of PASSed tests will be considered a test failure. These are marked with the <code>&gt;&gt; ... &lt;&lt;</code> marker for easy identification.</p>
<p>The classification of non-passed tests differs a bit between test suites. In the summary, ERROR is used as a catch-all for tests that neither passed nor are classified as failed by the framework. This might indicate test framework error, timeout or other problems.</p>
<p>In case of test failures, <code>make run-test</code> will exit with a non-zero exit value.</p>
<p>All tests have their result stored in <code>build/$BUILD/test-results/$TEST_ID</code>, where TEST_ID is a path-safe conversion from the fully qualified test descriptor, e.g. for <code>jtreg:jdk/test:tier1</code> the TEST_ID is <code>jtreg_jdk_test_tier1</code>. This path is also printed in the log at the end of the test run.</p>
<p>In case of test failures, <code>make test</code> will exit with a non-zero exit value.</p>
<p>All tests have their result stored in <code>build/$BUILD/test-results/$TEST_ID</code>, where TEST_ID is a path-safe conversion from the fully qualified test descriptor, e.g. for <code>jtreg:jdk/test:tier1</code> the TEST_ID is <code>jtreg_jdk_test_tier1</code>. This path is also printed in the log at the end of the test run.</p>
<p>Additional work data is stored in <code>build/$BUILD/test-support/$TEST_ID</code>. For some frameworks, this directory might contain information that is useful in determining the cause of a failed test.</p>
<h2 id="test-suite-control">Test suite control</h2>
<p>It is possible to control various aspects of the test suites using make control variables.</p>
<p>These variables use a keyword=value approach to allow multiple values to be set. So, for instance, <code>JTREG=&quot;JOBS=1;TIMEOUT=8&quot;</code> will set the JTReg concurrency level to 1 and the timeout factor to 8. This is equivalent to setting <code>JTREG_JOBS=1 JTREG_TIMEOUT=8</code>, but using the keyword format means that the <code>JTREG</code> variable is parsed and verified for correctness, so <code>JTREG=&quot;TMIEOUT=8&quot;</code> would give an error, while <code>JTREG_TMIEOUT=8</code> would just pass unnoticed.</p>
<p>To separate multiple keyword=value pairs, use <code>;</code> (semicolon). Since the shell normally eats <code>;</code>, the recommended usage is to write the assignment inside qoutes, e.g. <code>JTREG=&quot;...;...&quot;</code>. This will also make sure spaces are preserved, as in <code>JTREG=&quot;VM_OPTIONS=-XshowSettings -Xlog:gc+ref=debug&quot;</code>.</p>
<p>(Other ways are possible, e.g. using backslash: <code>JTREG=JOBS=1\;TIMEOUT=8</code>. Also, as a special technique, the string <code>%20</code> will be replaced with space for certain options, e.g. <code>JTREG=VM_OPTIONS=-XshowSettings%20-Xlog:gc+ref=debug</code>. This can be useful if you have layers of scripts and have trouble getting proper quoting of command line arguments through.)</p>
<p>(Other ways are possible, e.g. using backslash: <code>JTREG=JOBS=1\;TIMEOUT=8</code>. Also, as a special technique, the string <code>%20</code> will be replaced with space for certain options, e.g. <code>JTREG=VM_OPTIONS=-XshowSettings%20-Xlog:gc+ref=debug</code>. This can be useful if you have layers of scripts and have trouble getting proper quoting of command line arguments through.)</p>
<p>As far as possible, the names of the keywords have been standardized between test suites.</p>
<h3 id="jtreg-keywords">JTReg keywords</h3>
<h4 id="jobs">JOBS</h4>
@@ -123,5 +139,22 @@ TEST FAILURE</code></pre>
<h4 id="options-1">OPTIONS</h4>
<p>Additional options to the Gtest test framework.</p>
<p>Use <code>GTEST=&quot;OPTIONS=--help&quot;</code> to see all available Gtest options.</p>
<h3 id="microbenchmark-keywords">Microbenchmark keywords</h3>
<h4 id="fork">FORK</h4>
<p>Override the number of benchmark forks to spawn. Same as specifying <code>-f &lt;num&gt;</code>.</p>
<h4 id="iter">ITER</h4>
<p>Number of measurement iterations per fork. Same as specifying <code>-i &lt;num&gt;</code>.</p>
<h4 id="time">TIME</h4>
<p>Amount of time to spend in each measurement iteration, in seconds. Same as specifying <code>-r &lt;num&gt;</code></p>
<h4 id="warmup_iter">WARMUP_ITER</h4>
<p>Number of warmup iterations to run before the measurement phase in each fork. Same as specifying <code>-wi &lt;num&gt;</code>.</p>
<h4 id="warmup_time">WARMUP_TIME</h4>
<p>Amount of time to spend in each warmup iteration. Same as specifying <code>-w &lt;num&gt;</code>.</p>
<h4 id="results_format">RESULTS_FORMAT</h4>
<p>Specify to have the test run save a log of the values. Accepts the same values as <code>-rff</code>, i.e., <code>text</code>, <code>csv</code>, <code>scsv</code>, <code>json</code>, or <code>latex</code>.</p>
<h4 id="vm_options-1">VM_OPTIONS</h4>
<p>Additional VM arguments to provide to forked off VMs. Same as <code>-jvmArgs &lt;args&gt;</code></p>
<h4 id="options-2">OPTIONS</h4>
<p>Additional arguments to send to JMH.</p>
</body>
</html>

View File

@@ -1,26 +1,33 @@
% Testing the JDK
## Using the run-test framework
## Using "make test" (the run-test framework)
This new way of running tests is developer-centric. It assumes that you have
built a JDK locally and want to test it. Running common test targets is simple,
and more complex ad-hoc combination of tests is possible. The user interface is
forgiving, and clearly report errors it cannot resolve.
The main target "run-test" uses the jdk-image as the tested product. There is
also an alternate target "exploded-run-test" that uses the exploded image
The main target `test` uses the jdk-image as the tested product. There is
also an alternate target `exploded-test` that uses the exploded image
instead. Not all tests will run successfully on the exploded image, but using
this target can greatly improve rebuild times for certain workflows.
Previously, `make test` was used invoke an old system for running test, and
`make run-test` was used for the new test framework. For backward compatibility
with scripts and muscle memory, `run-test` (and variants like
`exploded-run-test` or `run-test-tier1`) are kept as aliases. The old system
can still be accessed for some time using `cd test && make`.
Some example command-lines:
$ make run-test-tier1
$ make run-test-jdk_lang JTREG="JOBS=8"
$ make run-test TEST=jdk_lang
$ make run-test-only TEST="gtest:LogTagSet gtest:LogTagSetDescriptions" GTEST="REPEAT=-1"
$ make run-test TEST="hotspot:hotspot_gc" JTREG="JOBS=1;TIMEOUT=8;VM_OPTIONS=-XshowSettings -Xlog:gc+ref=debug"
$ make run-test TEST="jtreg:test/hotspot:hotspot_gc test/hotspot/jtreg/native_sanity/JniVersion.java"
$ make exploded-run-test TEST=tier2
$ make test-tier1
$ make test-jdk_lang JTREG="JOBS=8"
$ make test TEST=jdk_lang
$ make test-only TEST="gtest:LogTagSet gtest:LogTagSetDescriptions" GTEST="REPEAT=-1"
$ make test TEST="hotspot:hotspot_gc" JTREG="JOBS=1;TIMEOUT=8;VM_OPTIONS=-XshowSettings -Xlog:gc+ref=debug"
$ make test TEST="jtreg:test/hotspot:hotspot_gc test/hotspot/jtreg/native_sanity/JniVersion.java"
$ make test TEST="micro:java.lang.reflect" MICRO="FORK=1;WARMUP_ITER=2"
$ make exploded-test TEST=tier2
### Configuration
@@ -31,18 +38,24 @@ Note that this option should point to the JTReg home, i.e. the top directory,
containing `lib/jtreg.jar` etc. (An alternative is to set the `JT_HOME`
environment variable to point to the JTReg home before running `configure`.)
To be able to run microbenchmarks, `configure` needs to know where to find
the JMH dependency. Use `--with-jmh=<path to JMH jars>` to point to a directory
containing the core JMH and transitive dependencies. The recommended dependencies
can be retrieved by running `sh make/devkit/createJMHBundle.sh`, after which
`--with-jmh=build/jmh/jars` should work.
## Test selection
All functionality is available using the run-test make target. In this use
case, the test or tests to be executed is controlled using the `TEST` variable.
To speed up subsequent test runs with no source code changes, run-test-only can
be used instead, which do not depend on the source and test image build.
All functionality is available using the `test` make target. In this use case,
the test or tests to be executed is controlled using the `TEST` variable. To
speed up subsequent test runs with no source code changes, `test-only` can be
used instead, which do not depend on the source and test image build.
For some common top-level tests, direct make targets have been generated. This
includes all JTReg test groups, the hotspot gtest, and custom tests (if
present). This means that `make run-test-tier1` is equivalent to `make run-test
present). This means that `make test-tier1` is equivalent to `make test
TEST="tier1"`, but the latter is more tab-completion friendly. For more complex
test runs, the `run-test TEST="x"` solution needs to be used.
test runs, the `test TEST="x"` solution needs to be used.
The test specifications given in `TEST` is parsed into fully qualified test
descriptors, which clearly and unambigously show which tests will be run. As an
@@ -98,6 +111,33 @@ is defined by adding `/<variant>` to the test descriptor, e.g.
variant present (e.g. server, client). So if you only have the server JVM
present, then `gtest:all` will be equivalent to `gtest:all/server`.
### Microbenchmarks
Which microbenchmarks to run is selected using a regular expression
following the `micro:` test descriptor, e.g., `micro:java.lang.reflect`. This
delegates the test selection to JMH, meaning package name, class name and even
benchmark method names can be used to select tests.
Using special characters like `|` in the regular expression is possible, but
needs to be escaped multiple times: `micro:ArrayCopy\\\\\|reflect`.
### Special tests
A handful of odd tests that are not covered by any other testing framework are
accessible using the `special:` test descriptor. Currently, this includes
`failure-handler` and `make`.
* Failure handler testing is run using `special:failure-handler` or just
`failure-handler` as test descriptor.
* Tests for the build system, including both makefiles and related
functionality, is run using `special:make` or just `make` as test
descriptor. This is equivalent to `special:make:all`.
A specific make test can be run by supplying it as argument, e.g.
`special:make:idea`. As a special syntax, this can also be expressed as
`make-idea`, which allows for command lines as `make test-make-idea`.
## Test results and summary
At the end of the test run, a summary of all tests run will be presented. This
@@ -123,7 +163,7 @@ the summary, ERROR is used as a catch-all for tests that neither passed nor are
classified as failed by the framework. This might indicate test framework
error, timeout or other problems.
In case of test failures, `make run-test` will exit with a non-zero exit value.
In case of test failures, `make test` will exit with a non-zero exit value.
All tests have their result stored in `build/$BUILD/test-results/$TEST_ID`,
where TEST_ID is a path-safe conversion from the fully qualified test
@@ -230,6 +270,35 @@ Additional options to the Gtest test framework.
Use `GTEST="OPTIONS=--help"` to see all available Gtest options.
### Microbenchmark keywords
#### FORK
Override the number of benchmark forks to spawn. Same as specifying `-f <num>`.
#### ITER
Number of measurement iterations per fork. Same as specifying `-i <num>`.
#### TIME
Amount of time to spend in each measurement iteration, in seconds. Same as
specifying `-r <num>`
#### WARMUP_ITER
Number of warmup iterations to run before the measurement phase in each fork.
Same as specifying `-wi <num>`.
#### WARMUP_TIME
Amount of time to spend in each warmup iteration. Same as specifying `-w <num>`.
#### RESULTS_FORMAT
Specify to have the test run save a log of the values. Accepts the same values
as `-rff`, i.e., `text`, `csv`, `scsv`, `json`, or `latex`.
#### VM_OPTIONS
Additional VM arguments to provide to forked off VMs. Same as `-jvmArgs <args>`
#### OPTIONS
Additional arguments to send to JMH.
---
# Override some definitions in the global css file that are not optimal for
# this document.

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2015, 2018, 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
@@ -42,7 +42,7 @@ MODULES_SYMBOLS_FILES := $(foreach module, $(EXPORTED_SYMBOLS_MODULES), \
$(GLOBAL_SYMBOLS_FILE): $(MODULES_SYMBOLS_FILES)
$(call LogInfo, Generating global exported.symbols file)
$(MKDIR) -p $(@D)
$(call MakeTargetDir)
$(CAT) $^ > $@
TARGETS += $(GLOBAL_SYMBOLS_FILE)

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2016, 2018, 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
@@ -70,6 +70,7 @@ define SetupBundleFileBody
$$(call SetIfEmpty, $1_UNZIP_DEBUGINFO, false)
$(BUNDLES_OUTPUTDIR)/$$($1_BUNDLE_NAME): $$($1_FILES)
$$(call MakeTargetDir)
# If any of the files contain a space in the file name, CacheFind
# will have replaced it with ?. Tar does not accept that so need to
# switch it back.
@@ -79,7 +80,6 @@ define SetupBundleFileBody
$$(CAT) $$($1_$$d_LIST_FILE) | $$(TR) '?' ' ' > $$($1_$$d_LIST_FILE).tmp \
&& $(MV) $$($1_$$d_LIST_FILE).tmp $$($1_$$d_LIST_FILE) $$(NEWLINE) \
)
$$(call MakeDir, $$(@D))
ifneq ($$($1_SPECIAL_INCLUDES), )
$$(foreach i, $$($1_SPECIAL_INCLUDES), \
$$(foreach d, $$($1_BASE_DIRS), \
@@ -262,6 +262,21 @@ endif
################################################################################
ifneq ($(filter jcov-bundles, $(MAKECMDGOALS)), )
JCOV_BUNDLE_FILES := $(call CacheFind, $(JCOV_IMAGE_DIR))
$(eval $(call SetupBundleFile, BUILD_JCOV_BUNDLE, \
BUNDLE_NAME := $(JCOV_BUNDLE_NAME), \
FILES := $(JCOV_BUNDLE_FILES), \
BASE_DIRS := $(JCOV_IMAGE_DIR), \
SUBDIR := $(JDK_BUNDLE_SUBDIR), \
))
JCOV_TARGETS += $(BUILD_JCOV_BUNDLE)
endif
################################################################################
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, Bundles.gmk))
@@ -270,5 +285,6 @@ $(eval $(call IncludeCustomExtension, Bundles.gmk))
product-bundles: $(PRODUCT_TARGETS)
test-bundles: $(TEST_TARGETS)
docs-bundles: $(DOCS_TARGETS)
jcov-bundles: $(JCOV_TARGETS)
.PHONY: all default product-bundles test-bundles docs-bundles
.PHONY: all default product-bundles test-bundles docs-bundles jcov-bundles

60
make/CompileCommands.gmk Normal file
View File

@@ -0,0 +1,60 @@
#
# Copyright (c) 2018, 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
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
default: all
include $(SPEC)
include MakeBase.gmk
# When FIXPATH is set, let it process the file to make sure all paths are usable
# by system native tools. The FIXPATH tool assumes arguments preceeded by an @
# character points to a text file containing further arguments (similar to a
# linker). It replaces any such arguments with a different temporary filename,
# whose contents has been processed to make any paths native. To obtain a
# properly processed compile_commands.json, FIXPATH is then made to invoke an
# AWK script with the unprocessed json file as the only argument, prepended with
# an @ character. The AWK script simply copies the contents of this processed
# file.
#
# The sed command encloses the fragments inside brackets and removes the final
# trailing comma.
$(OUTPUTDIR)/compile_commands.json: $(wildcard $(MAKESUPPORT_OUTPUTDIR)/compile-commands/*.json)
$(call LogWarn, Updating compile_commands.json)
$(RM) $@
$(FIND) $(MAKESUPPORT_OUTPUTDIR)/compile-commands/ -name \*.json | \
$(SORT) | $(XARGS) $(CAT) >> $@.tmp
$(if $(FIXPATH),$(FIXPATH) $(AWK) 'BEGIN { \
tmpfile = substr(ARGV[2],2); \
cmd = "$(CP) " "\047" tmpfile "\047" " $@.tmp"; \
system(cmd); \
}' -- @$@.tmp)
$(SED) -e '1s/^/[\$(NEWLINE)/' -e '$(DOLLAR)s/,\s\{0,\}$(DOLLAR)/\$(NEWLINE)]/' $@.tmp > $@
$(RM) $@.tmp
TARGETS += $(OUTPUTDIR)/compile_commands.json
all: $(TARGETS)
.PHONY: all

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2018, 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

View File

@@ -321,7 +321,7 @@ jdk.jshell_COPY += .jsh .properties
################################################################################
jdk.internal.le_COPY += .properties
jdk.internal.le_COPY += .properties .caps .txt
################################################################################
@@ -450,21 +450,17 @@ jdk.internal.vm.compiler_ADD_JAVAC_FLAGS += -parameters -XDstringConcat=inline \
jdk.internal.vm.compiler_EXCLUDES += \
jdk.internal.vm.compiler.collections.test \
org.graalvm.compiler.processor \
org.graalvm.compiler.core.match.processor \
org.graalvm.compiler.nodeinfo.processor \
org.graalvm.compiler.options.processor \
org.graalvm.compiler.serviceprovider.processor \
org.graalvm.compiler.replacements.processor \
org.graalvm.compiler.replacements.jdk9.test \
jdk.tools.jaotc.test \
org.graalvm.compiler.api.directives.test \
org.graalvm.compiler.api.test \
org.graalvm.compiler.asm.aarch64.test \
org.graalvm.compiler.asm.amd64.test \
org.graalvm.compiler.asm.sparc.test \
org.graalvm.compiler.asm.test \
org.graalvm.compiler.core.aarch64.test \
org.graalvm.compiler.core.amd64.test \
org.graalvm.compiler.core.sparc.test \
org.graalvm.compiler.core.jdk9.test \
org.graalvm.compiler.core.match.processor \
org.graalvm.compiler.core.test \
org.graalvm.compiler.debug.test \
org.graalvm.compiler.graph.test \
@@ -477,10 +473,17 @@ jdk.internal.vm.compiler_EXCLUDES += \
org.graalvm.compiler.lir.test \
org.graalvm.compiler.loop.test \
org.graalvm.compiler.microbenchmarks \
org.graalvm.compiler.nodeinfo.processor \
org.graalvm.compiler.nodes.test \
org.graalvm.compiler.options.processor \
org.graalvm.compiler.options.test \
org.graalvm.compiler.phases.common.test \
org.graalvm.compiler.processor \
org.graalvm.compiler.replacements.jdk12.test \
org.graalvm.compiler.replacements.jdk9.test \
org.graalvm.compiler.replacements.processor \
org.graalvm.compiler.replacements.test \
org.graalvm.compiler.serviceprovider.processor \
org.graalvm.compiler.test \
org.graalvm.compiler.virtual.bench \
org.graalvm.micro.benchmarks \
@@ -511,6 +514,10 @@ jdk.aot_ADD_JAVAC_FLAGS += -parameters -XDstringConcat=inline \
--add-exports jdk.internal.vm.ci/jdk.vm.ci.sparc=jdk.internal.vm.compiler,jdk.aot \
#
jdk.aot_EXCLUDES += \
jdk.tools.jaotc.test
#
################################################################################
sun.charsets_COPY += .dat
@@ -621,9 +628,14 @@ $(JDK_OUTPUTDIR)/modules/%_zh_HK.properties: $(JDK_OUTPUTDIR)/modules/%_zh_TW.pr
$(install-file)
CreateHkTargets = \
$(patsubst $(TOPDIR)/src/%, $(JDK_OUTPUTDIR)/modules/%, \
$(subst /share/classes,, \
$(subst _zh_TW,_zh_HK, $(filter %_zh_TW.properties, $1))))
$(call FilterExcludedTranslations, \
$(patsubst $(TOPDIR)/src/%, $(JDK_OUTPUTDIR)/modules/%, \
$(subst /share/classes,, \
$(subst _zh_TW,_zh_HK, $(filter %_zh_TW.properties, $1)) \
) \
), \
.properties \
)
ifeq ($(MODULE), java.sql.rowset)
TARGETS += $(call CreateHkTargets, $(java.sql.rowset_CLEAN_FILES))

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2016, 2018, 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

View File

@@ -29,6 +29,7 @@ include $(SPEC)
include MakeBase.gmk
include JavaCompilation.gmk
include SetupJavaCompilers.gmk
include TextFileProcessing.gmk
################################################################################
@@ -46,6 +47,7 @@ $(eval $(call SetupJavaCompilation,BUILD_TOOLS_JDK, \
SETUP := GENERATE_OLDBYTECODE, \
SRC := $(BUILD_TOOLS_SRC_DIRS), \
EXCLUDES := \
build/tools/classlist \
build/tools/deps \
build/tools/docs \
build/tools/jigsaw \
@@ -86,4 +88,56 @@ TARGETS += $(COMPILE_DEPEND) $(DEPEND_SERVICE_PROVIDER)
################################################################################
# To be able to call the javascript filter when generating man pages using
# pandoc, we need to create this executable wrapper script.
ifneq ($(PANDOC), )
# PANDOC_TROFF_MANPAGE_FILTER is duplicated for export in ToolsJdk.gmk.
PANDOC_TROFF_MANPAGE_FILTER := \
$(BUILDTOOLS_OUTPUTDIR)/manpages/pandoc-troff-manpage-filter
PANDOC_TROFF_MANPAGE_FILTER_SETUP := \
$(BUILDTOOLS_OUTPUTDIR)/manpages/_pandoc_troff_manpage_filter_setup.marker
# Create a usable instance of the wrapper script that calls the pandoc filter
# (which is written in javascript).
$(eval $(call SetupTextFileProcessing, CREATE_PANDOC_TROFF_MANPAGE_FILTER, \
SOURCE_FILES := $(TOPDIR)/make/scripts/pandoc-troff-manpage-filter.sh.template, \
OUTPUT_FILE := $(PANDOC_TROFF_MANPAGE_FILTER), \
REPLACEMENTS := \
@@BOOT_JDK@@ => $(BOOT_JDK) ; \
@@TOPDIR@@ => $(TOPDIR) ; \
@@JJS_FLAGS@@ => $(addprefix -J, $(JAVA_FLAGS_SMALL)), \
))
# Created script must be made executable
$(PANDOC_TROFF_MANPAGE_FILTER_SETUP): $(CREATE_PANDOC_TROFF_MANPAGE_FILTER)
$(CHMOD) a+rx $(PANDOC_TROFF_MANPAGE_FILTER)
$(TOUCH) $@
TARGETS += $(PANDOC_TROFF_MANPAGE_FILTER_SETUP)
# PANDOC_HTML_MANPAGE_FILTER is duplicated for export in ToolsJdk.gmk.
PANDOC_HTML_MANPAGE_FILTER := \
$(BUILDTOOLS_OUTPUTDIR)/manpages/pandoc-html-manpage-filter
PANDOC_HTML_MANPAGE_FILTER_SETUP := \
$(BUILDTOOLS_OUTPUTDIR)/manpages/_pandoc_html_manpage_filter_setup.marker
# Create a usable instance of the wrapper script that calls the pandoc filter
# (which is written in javascript).
$(eval $(call SetupTextFileProcessing, CREATE_PANDOC_HTML_MANPAGE_FILTER, \
SOURCE_FILES := $(TOPDIR)/make/scripts/pandoc-html-manpage-filter.sh.template, \
OUTPUT_FILE := $(PANDOC_HTML_MANPAGE_FILTER), \
REPLACEMENTS := \
@@BOOT_JDK@@ => $(BOOT_JDK) ; \
@@TOPDIR@@ => $(TOPDIR) ; \
@@JJS_FLAGS@@ => $(addprefix -J, $(JAVA_FLAGS_SMALL)), \
))
# Created script must be made executable
$(PANDOC_HTML_MANPAGE_FILTER_SETUP): $(CREATE_PANDOC_HTML_MANPAGE_FILTER)
$(CHMOD) a+rx $(PANDOC_HTML_MANPAGE_FILTER)
$(TOUCH) $@
TARGETS += $(PANDOC_HTML_MANPAGE_FILTER_SETUP)
endif
all: $(TARGETS)

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2015, 2018, 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
@@ -33,7 +33,7 @@ include MakeBase.gmk
### CLDRConverter needs the JRE time zone names from the java.base source.
define cldrconverter_copytznames
$(MKDIR) -p '$(@D)'
$(call MakeTargetDir)
$(RM) '$@'
$(SED) -e "s/package sun.util.resources/package build.tools.cldrconverter/" \
-e "s/extends TimeZoneNamesBundle//" \
@@ -46,7 +46,7 @@ $(eval $(call SetupCopyFiles,COPY_INTERIM_CLDRCONVERTER, \
DEST := $(BUILDTOOLS_OUTPUTDIR)/interim_cldrconverter_classes/build/tools/cldrconverter, \
FILES := TimeZoneNames.java, \
MACRO := cldrconverter_copytznames))
##########################################################################################
all: $(COPY_INTERIM_CLDRCONVERTER)

56
make/Coverage.gmk Normal file
View File

@@ -0,0 +1,56 @@
#
# Copyright (c) 2018, 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
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
include $(SPEC)
include MakeBase.gmk
################################################################################
JCOV_INPUT_IMAGE_DIR :=
ifneq ($(JCOV_INPUT_JDK), )
JCOV_INPUT_IMAGE_DIR := $(JCOV_INPUT_JDK)
else
JCOV_INPUT_IMAGE_DIR := $(JDK_IMAGE_DIR)
endif
#moving instrumented jdk image in and out of jcov_temp because of CODETOOLS-7902299
JCOV_TEMP := $(SUPPORT_OUTPUTDIR)/jcov_temp
$(JCOV_IMAGE_DIR)/release: $(JCOV_INPUT_IMAGE_DIR)/release
$(call LogWarn, Creating instrumented jdk image with JCov)
$(call MakeDir, $(JCOV_TEMP) $(IMAGES_OUTPUTDIR))
$(RM) -r $(JCOV_IMAGE_DIR) $(JCOV_TEMP)/*
$(CP) -r $(JCOV_INPUT_IMAGE_DIR) $(JCOV_TEMP)/$(JCOV_IMAGE_SUBDIR)
$(JAVA) -Xmx3g -jar $(JCOV_HOME)/lib/jcov.jar JREInstr \
-t $(JCOV_TEMP)/$(JCOV_IMAGE_SUBDIR)/template.xml \
-rt $(JCOV_HOME)/lib/jcov_network_saver.jar \
-exclude 'java.lang.Object' \
-exclude 'jdk.internal.org.objectweb.**' \
-exclude jdk.test.Main -exclude '**\$Proxy*' \
$(JCOV_TEMP)/$(JCOV_IMAGE_SUBDIR)
$(MV) $(JCOV_TEMP)/$(JCOV_IMAGE_SUBDIR) $(JCOV_IMAGE_DIR)
$(RMDIR) $(JCOV_TEMP)
jcov-image: $(JCOV_IMAGE_DIR)/release

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2015, 2018, 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
@@ -41,7 +41,7 @@ COPY_CLASSES_TARGET := $(BUILDJDK_OUTPUTDIR)/jdk/modules/java.base/_the.buildjdk
$(COPY_CLASSES_TARGET): $(call CacheFind, $(wildcard \
$(addprefix $(JDK_OUTPUTDIR)/modules/, $(MODULES_TO_COPY))))
$(ECHO) $(LOG_INFO) "Copying java modules to buildjdk: $(MODULES_TO_COPY)"
$(call LogInfo, Copying java modules to buildjdk: $(MODULES_TO_COPY))
$(RM) -r $(BUILDJDK_OUTPUTDIR)/jdk/modules
$(MKDIR) -p $(BUILDJDK_OUTPUTDIR)/jdk/modules
$(foreach m, $(MODULES_TO_COPY), \

View File

@@ -1,4 +1,4 @@
# Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2018, 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

View File

@@ -27,10 +27,10 @@ default: all
include $(SPEC)
include MakeBase.gmk
include Modules.gmk
include ModuleTools.gmk
include ProcessMarkdown.gmk
include ToolsJdk.gmk
include ZipArchive.gmk
include $(TOPDIR)/make/ToolsJdk.gmk
include $(TOPDIR)/make/ModuleTools.gmk
# This is needed to properly setup DOCS_MODULES.
$(eval $(call ReadImportMetaData))
@@ -61,11 +61,11 @@ MODULES_SOURCE_PATH := $(call PathList, $(call GetModuleSrcPath) \
$(SUPPORT_OUTPUTDIR)/rmic/* $(TOPDIR)/src/*/share/doc/stub)
# URLs
JAVADOC_BASE_URL := http://www.oracle.com/pls/topic/lookup?ctx=javase10&amp;id=homepage
BUG_SUBMIT_URL := http://bugreport.java.com/bugreport/
JAVADOC_BASE_URL := https://docs.oracle.com/pls/topic/lookup?ctx=javase$(VERSION_NUMBER)&amp;id=homepage
BUG_SUBMIT_URL := https://bugreport.java.com/bugreport/
COPYRIGHT_URL := {@docroot}/../legal/copyright.html
LICENSE_URL := http://www.oracle.com/technetwork/java/javase/terms/license/java$(VERSION_NUMBER)speclicense.html
REDISTRIBUTION_URL := http://www.oracle.com/technetwork/java/redist-137594.html
LICENSE_URL := https://www.oracle.com/technetwork/java/javase/terms/license/java$(VERSION_NUMBER)speclicense.html
REDISTRIBUTION_URL := https://www.oracle.com/technetwork/java/redist-137594.html
# In order to get a specific ordering it's necessary to specify the total
# ordering of tags as the tags are otherwise ordered in order of definition.
@@ -168,14 +168,6 @@ JAVADOC_TOP := \
font-family: DejaVu Sans, Arial, Helvetica, sans-serif; \
font-weight: normal;">$(DRAFT_TEXT)</div>
JDK_INDEX_CONTENT := \
<!DOCTYPE html> \
<html lang="en"> \
<head> \
<meta http-equiv="refresh" content="0;url=api/index.html"> \
</head> \
</html>
################################################################################
# JDK javadoc titles/text snippets
@@ -228,7 +220,7 @@ define create_overview_file
<blockquote><dl> \
#
$1_OVERVIEW_TEXT += $$(foreach g, $$($1_GROUPS), \
<dt style="margin-top: 8px;"><a href="\#$$g">$$($$g_GROUP_NAME)</a></dt> \
<dt style="margin-top: 8px;">$$($$g_GROUP_NAME)</dt> \
<dd style="margin-top: 8px;">$$($$g_GROUP_DESCRIPTION)</dd> \
)
$1_OVERVIEW_TEXT += \
@@ -274,6 +266,8 @@ define SetupApiDocsGenerationBody
$1_INDIRECT_EXPORTS := $$(call FindTransitiveIndirectDepsForModules, $$($1_MODULES))
$1_ALL_MODULES := $$(sort $$($1_MODULES) $$($1_INDIRECT_EXPORTS))
$1_JAVA_ARGS := -Dextlink.spec.version=$$(VERSION_SPECIFICATION)
ifeq ($$(ENABLE_FULL_DOCS), true)
# Tell the ModuleGraph taglet to generate html links to soon-to-be-created
# png files with module graphs.
@@ -327,9 +321,10 @@ define SetupApiDocsGenerationBody
)
ifeq ($$($1_JAVADOC_CMD), )
$1_JAVADOC_CMD := $$(JAVA) -Djava.awt.headless=true \
-Dextlink.spec.version=$$(VERSION_SPECIFICATION) $$($1_JAVA_ARGS) \
$1_JAVADOC_CMD := $$(JAVA) -Djava.awt.headless=true $$($1_JAVA_ARGS) \
$$(NEW_JAVADOC)
else
$1_OPTIONS += $$(addprefix -J, $$($1_JAVA_ARGS))
endif
$1_VARDEPS := $$($1_JAVA_ARGS) $$($1_OPTIONS) $$(MODULES_SOURCE_PATH) \
@@ -463,7 +458,9 @@ $(eval $(call SetupApiDocsGeneration, JAVASE_API, \
# Setup generation of the reference Java SE API documentation (javadoc + modulegraph)
# The reference javadoc is just the same as javase, but using the BootJDK javadoc
# and a stable set of javadoc options.
# and a stable set of javadoc options. Typically it is used for generating
# diffs between the reference javadoc and a javadoc bundle of a specific build
# generated in the same way.
$(eval $(call SetupApiDocsGeneration, REFERENCE_API, \
MODULES := $(JAVASE_MODULES), \
@@ -480,14 +477,7 @@ $(eval $(call SetupApiDocsGeneration, REFERENCE_API, \
################################################################################
JDK_INDEX_HTML := $(DOCS_OUTPUTDIR)/index.html
$(JDK_INDEX_HTML):
$(ECHO) '$(JDK_INDEX_CONTENT)' > $@
JDK_INDEX_TARGETS += $(JDK_INDEX_HTML)
# Copy the global resources
# Copy the global resources, including the top-level redirect index.html
GLOBAL_SPECS_RESOURCES_DIR := $(TOPDIR)/make/data/docs-resources/
$(eval $(call SetupCopyFiles, COPY_GLOBAL_RESOURCES, \
SRC := $(GLOBAL_SPECS_RESOURCES_DIR), \
@@ -497,10 +487,9 @@ $(eval $(call SetupCopyFiles, COPY_GLOBAL_RESOURCES, \
JDK_INDEX_TARGETS += $(COPY_GLOBAL_RESOURCES)
# Copy the legal notices distributed with the docs bundle
DOCS_LEGAL_NOTICES := jquery.md jszip.md pako.md
$(eval $(call SetupCopyFiles, COPY_DOCS_LEGAL_NOTICES, \
SRC := $(TOPDIR)/src/jdk.javadoc/share/legal, \
FILES := $(DOCS_LEGAL_NOTICES), \
FILES := $(wildcard $(TOPDIR)/src/jdk.javadoc/share/legal/*), \
DEST := $(DOCS_OUTPUTDIR)/legal, \
))
JDK_INDEX_TARGETS += $(COPY_DOCS_LEGAL_NOTICES)
@@ -528,9 +517,9 @@ $(foreach m, $(ALL_MODULES), \
) \
)
ifeq ($(ENABLE_FULL_DOCS), true)
ifeq ($(ENABLE_PANDOC), true)
# For all markdown files in $module/share/specs directories, convert them to
# html.
# html, if we have pandoc (otherwise we'll just skip this).
GLOBAL_SPECS_DEFAULT_CSS_FILE := $(DOCS_OUTPUTDIR)/resources/jdk-default.css
@@ -538,7 +527,7 @@ ifeq ($(ENABLE_FULL_DOCS), true)
$(eval SPECS_$m := $(call FindModuleSpecsDirs, $m)) \
$(foreach d, $(SPECS_$m), \
$(if $(filter %.md, $(call CacheFind, $d)), \
$(eval $m_$d_NAME := CONVERT_MARKDOWN_$m_$(strip $(call RelativePath, $d, $(TOPDIR)))) \
$(eval $m_$d_NAME := SPECS_TO_HTML_$m_$(strip $(call RelativePath, $d, $(TOPDIR)))) \
$(eval $(call SetupProcessMarkdown, $($m_$d_NAME), \
SRC := $d, \
FILES := $(filter %.md, $(call CacheFind, $d)), \
@@ -549,6 +538,40 @@ ifeq ($(ENABLE_FULL_DOCS), true)
) \
) \
)
# For all markdown files in $module/share/man directories, convert them to
# html.
# Create dynamic man pages from markdown using pandoc. We need
# PANDOC_HTML_MANPAGE_FILTER, a wrapper around
# PANDOC_HTML_MANPAGE_FILTER_JAVASCRIPT. This is created by buildtools-jdk.
# We should also depend on the source javascript filter
PANDOC_HTML_MANPAGE_FILTER_JAVASCRIPT := \
$(TOPDIR)/make/scripts/pandoc-html-manpage-filter.js
$(foreach m, $(ALL_MODULES), \
$(eval MAN_$m := $(call FindModuleManDirs, $m)) \
$(foreach d, $(MAN_$m), \
$(if $(filter %.md, $(call CacheFind, $d)), \
$(eval $m_$d_NAME := MAN_TO_HTML_$m_$(strip $(call RelativePath, $d, $(TOPDIR)))) \
$(eval $(call SetupProcessMarkdown, $($m_$d_NAME), \
SRC := $d, \
FILES := $(filter %.md, $(call CacheFind, $d)), \
DEST := $(DOCS_OUTPUTDIR)/specs/man, \
FILTER := $(PANDOC_HTML_MANPAGE_FILTER), \
CSS := $(GLOBAL_SPECS_DEFAULT_CSS_FILE), \
REPLACEMENTS := @@VERSION_SHORT@@ => $(VERSION_SHORT), \
EXTRA_DEPS := $(PANDOC_HTML_MANPAGE_FILTER) \
$(PANDOC_HTML_MANPAGE_FILTER_JAVASCRIPT), \
)) \
$(eval JDK_SPECS_TARGETS += $($($m_$d_NAME))) \
) \
) \
)
# The html generated from markdown also needs the css file
JDK_SPECS_TARGETS += $(COPY_GLOBAL_RESOURCES)
endif
# Special treatment for generated documentation

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2016, 2018, 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
@@ -38,7 +38,7 @@ ALL_MODULEINFO_CLASSES := $(wildcard $(JDK_OUTPUTDIR)/modules/*/module_info.clas
$(PACKAGES_ATTRIBUTE_TARGET): $(ALL_MODULEINFO_CLASSES) $(BUILD_JIGSAW_CLASSES)
$(call LogInfo, Optimizing the exploded image)
$(TOOL_ADD_PACKAGES_ATTRIBUTE) $(JDK_OUTPUTDIR)
$(call ExecuteWithLog, $@, $(TOOL_ADD_PACKAGES_ATTRIBUTE) $(JDK_OUTPUTDIR))
$(TOUCH) $@
TARGETS := $(PACKAGES_ATTRIBUTE_TARGET)

View File

@@ -31,15 +31,17 @@ default: all
include $(SPEC)
include MakeBase.gmk
include JarArchive.gmk
include SetupJavaCompilers.gmk
################################################################################
# Create a jar with our generator class. Using a jar is intentional since it
# will load more classes
$(eval $(call SetupJarArchive, CLASSLIST_JAR, \
SRCS := $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes, \
$(eval $(call SetupJavaCompilation, CLASSLIST_JAR, \
SETUP := GENERATE_JDKBYTECODE, \
SRC := $(TOPDIR)/make/jdk/src/classes, \
INCLUDES := build/tools/classlist, \
BIN := $(BUILDTOOLS_OUTPUTDIR)/classlist_classes, \
JAR := $(SUPPORT_OUTPUTDIR)/classlist.jar, \
))

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2018, 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
@@ -35,18 +35,18 @@ SPEC_DOTFILES_DIR := $(GENGRAPHS_DIR)/spec-dotfiles
TOOLS_MODULE_SRCDIR := $(TOPDIR)/make/jdk/src/classes/build/tools/jigsaw
$(GENGRAPHS_DIR)/jdk.dot: $(BUILD_JIGSAW_TOOLS)
$(MKDIR) -p $(@D)
$(call MakeTargetDir)
$(TOOL_GENGRAPHS) --output $(GENGRAPHS_DIR)
$(SPEC_DOTFILES_DIR)/java.se.dot: $(BUILD_JIGSAW_TOOLS)
$(MKDIR) -p $(@D)
$(call MakeTargetDir)
$(TOOL_GENGRAPHS) --spec --output $(SPEC_DOTFILES_DIR)
$(GENGRAPHS_DIR)/technology-summary.html: $(TOOLS_MODULE_SRCDIR)/technology-summary.html
$(install-file)
$(GENGRAPHS_DIR)/module-summary.html: $(BUILD_JIGSAW_TOOLS) $(GENGRAPHS_DIR)/technology-summary.html
$(MKDIR) -p $(@D)
$(call MakeTargetDir)
$(TOOL_MODULESUMMARY) -o $@ --module-path $(IMAGES_OUTPUTDIR)/jmods
all: $(GENGRAPHS_DIR)/jdk.dot $(GENGRAPHS_DIR)/module-summary.html $(SPEC_DOTFILES_DIR)/java.se.dot

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2015, 2018, 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
@@ -79,7 +79,7 @@ ifneq ($(MOD_FILES), )
$(BUILD_TOOLS_JDK) \
$(MOD_FILES) \
$(call DependOnVariable, ALL_MODULES)
$(MKDIR) -p $(@D)
$(call MakeTargetDir)
$(RM) $@ $@.tmp
$(TOOL_GENMODULEINFOSOURCE) -o $@.tmp \
--source-file $< \

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2012, 2018, 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
@@ -55,10 +55,10 @@ help:
$(info $(_) make install # Install the generated images locally)
$(info $(_) make reconfigure # Rerun configure with the same arguments as last time)
$(info $(_) make help # Give some help on using make)
$(info $(_) make test # Run tests, default is all tests (see TEST below))
$(info $(_) make run-test-<test> # Run test, e.g. run-test-tier1)
$(info $(_) make run-test TEST=<t> # Run test(s) given by TEST specification)
$(info $(_) make exploded-run-test TEST=<t> # Run test(s) on the exploded image instead of)
$(info $(_) make check # Run basic testing (currently tier1))
$(info $(_) make test-<test> # Run test, e.g. test-tier1)
$(info $(_) make test TEST=<t> # Run test(s) given by TEST specification)
$(info $(_) make exploded-test TEST=<t> # Run test(s) on the exploded image instead of)
$(info $(_) # the full jdk image)
$(info )
$(info Targets for cleaning)
@@ -99,10 +99,13 @@ help:
$(info $(_) TEST_JOBS=<n> # Run <n> parallel test jobs)
$(info $(_) CONF_CHECK=<method> # What to do if spec file is out of date)
$(info $(_) # method is 'auto', 'ignore' or 'fail' (default))
$(info $(_) make test TEST=<test> # Only run the given test or tests, e.g.)
$(info $(_) # make test TEST="jdk_lang jdk_net")
$(info $(_) JTREG="OPT1=x;OPT2=y" # Control the JTREG test harness for run-test)
$(info $(_) GTEST="OPT1=x;OPT2=y" # Control the GTEST test harness for run-test)
$(info $(_) TEST="test1 ..." # Use the given test descriptor(s) for testing, e.g.)
$(info $(_) # make test TEST="jdk_lang gtest:all")
$(info $(_) JTREG="OPT1=x;OPT2=y" # Control the JTREG test harness)
$(info $(_) GTEST="OPT1=x;OPT2=y" # Control the GTEST test harness)
$(info $(_) MICRO="OPT1=x;OPT2=y" # Control the MICRO test harness)
$(info $(_) TEST_OPTS="OPT1=x;..." # Generic control of all test harnesses)
$(info $(_) TEST_VM_OPTS="ARG ..." # Same as setting TEST_OPTS to VM_OPTIONS="ARG ...")
$(info )
$(if $(all_confs), $(info Available configurations in $(build_dir):) $(foreach var,$(all_confs),$(info * $(var))),\
$(info No configurations were found in $(build_dir).) $(info Run 'bash configure' to create a configuration.))
@@ -119,7 +122,7 @@ print-configurations:
run-test-prebuilt:
@( cd $(topdir) && \
$(MAKE) --no-print-directory -r -R -I make/common/ -f make/RunTestsPrebuilt.gmk \
run-test-prebuilt TEST="$(TEST)" )
run-test-prebuilt CUSTOM_MAKE_DIR=$(CUSTOM_MAKE_DIR) TEST="$(TEST)" )
ALL_GLOBAL_TARGETS := help print-configurations run-test-prebuilt

View File

@@ -36,7 +36,7 @@ JRE_TARGETS :=
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, Images-pre.gmk))
############################################################################
################################################################################
# All modules for the current target platform.
ALL_MODULES := $(call FindAllModules)
@@ -57,7 +57,7 @@ BASE_RELEASE_FILE := $(JDK_OUTPUTDIR)/release
JMODS := $(wildcard $(IMAGES_OUTPUTDIR)/jmods/*.jmod)
# Use this file inside the image as target for make rule
JIMAGE_TARGET_FILE := bin/java$(EXE_SUFFIX)
JIMAGE_TARGET_FILE := release
JLINK_ORDER_RESOURCES := **module-info.class
JLINK_JLI_CLASSES :=
@@ -90,148 +90,39 @@ endif
$(JDK_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \
$(call DependOnVariable, JDK_MODULES_LIST) $(BASE_RELEASE_FILE)
$(ECHO) Creating jdk image
$(call LogWarn, Creating jdk image)
$(RM) -r $(JDK_IMAGE_DIR)
$(call ExecuteWithLog, $(SUPPORT_OUTPUTDIR)/images/jdk, \
$(JLINK_TOOL) --add-modules $(JDK_MODULES_LIST) \
$(JLINK_JDK_EXTRA_OPTS) \
--output $(JDK_IMAGE_DIR) \
)
ifeq ($(BUILD_CDS_ARCHIVE), true)
$(call LogWarn, Creating CDS archive for jdk image)
$(FIXPATH) $(JDK_IMAGE_DIR)/bin/java \
-Xshare:dump -Xmx128M -Xms128M $(LOG_INFO)
endif
$(TOUCH) $@
$(JRE_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \
$(call DependOnVariable, JRE_MODULES_LIST) $(BASE_RELEASE_FILE)
$(ECHO) Creating legacy jre image
$(call LogWarn, Creating legacy jre image)
$(RM) -r $(JRE_IMAGE_DIR)
$(call ExecuteWithLog, $(SUPPORT_OUTPUTDIR)/images/jre, \
$(JLINK_TOOL) --add-modules $(JRE_MODULES_LIST) \
$(JLINK_JRE_EXTRA_OPTS) \
--output $(JRE_IMAGE_DIR) \
)
ifeq ($(BUILD_CDS_ARCHIVE), true)
$(call LogWarn, Creating CDS archive for jre image)
$(FIXPATH) $(JRE_IMAGE_DIR)/bin/java \
-Xshare:dump -Xmx128M -Xms128M $(LOG_INFO)
endif
$(TOUCH) $@
TOOL_JRE_TARGETS := $(JRE_IMAGE_DIR)/$(JIMAGE_TARGET_FILE)
TOOL_JDK_TARGETS := $(JDK_IMAGE_DIR)/$(JIMAGE_TARGET_FILE)
################################################################################
# /man dir
#
# All variables in this section are assigned with simple =, without :, to enable
# more selective overriding from the custom version of this file.
#
# Avoid evaluating this whole section on windows for speed and stability
ifneq ($(OPENJDK_TARGET_OS), windows)
JRE_MAN_PAGES += \
java.1 \
jjs.1 \
keytool.1 \
orbd.1 \
pack200.1 \
rmid.1 \
rmiregistry.1 \
servertool.1 \
unpack200.1
JDK_MAN_PAGES += \
$(JRE_MAN_PAGES) \
idlj.1 \
jar.1 \
jarsigner.1 \
javac.1 \
javadoc.1 \
javap.1 \
jconsole.1 \
jcmd.1 \
jdb.1 \
jdeps.1 \
jinfo.1 \
jmap.1 \
jps.1 \
jrunscript.1 \
jstack.1 \
jstat.1 \
jstatd.1 \
rmic.1 \
serialver.1
# This variable is potentially overridden in the closed makefile.
MAN_SRC_BASEDIR ?= $(TOPDIR)/src
ifeq ($(OPENJDK_TARGET_OS), linux)
MAN_SRC_DIR = $(MAN_SRC_BASEDIR)/linux/doc
MAN1_SUBDIR = man
endif
ifeq ($(OPENJDK_TARGET_OS), solaris)
MAN_SRC_DIR = $(MAN_SRC_BASEDIR)/solaris/doc
MAN1_SUBDIR = sun/man/man1
endif
ifeq ($(OPENJDK_TARGET_OS), macosx)
MAN_SRC_DIR = $(MAN_SRC_BASEDIR)/bsd/doc
MAN1_SUBDIR = man
endif
$(JRE_IMAGE_DIR)/man/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/%
$(call LogInfo, Copying $(patsubst $(OUTPUTDIR)/%,%,$@))
$(install-file)
$(JDK_IMAGE_DIR)/man/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/%
$(call LogInfo, Copying $(patsubst $(OUTPUTDIR)/%,%,$@))
$(install-file)
$(JRE_IMAGE_DIR)/man/ja_JP.UTF-8/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/ja/%
$(call LogInfo, Copying $(patsubst $(OUTPUTDIR)/%,%,$@))
$(install-file)
$(JDK_IMAGE_DIR)/man/ja_JP.UTF-8/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/ja/%
$(call LogInfo, Copying $(patsubst $(OUTPUTDIR)/%,%,$@))
$(install-file)
ifeq ($(OPENJDK_TARGET_OS), solaris)
$(JRE_IMAGE_DIR)/man/ja/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/ja/%
$(call LogInfo, Converting $(patsubst $(OUTPUTDIR)/%,%,$@))
$(install-file)
$(JDK_IMAGE_DIR)/man/ja/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/ja/%
$(call LogInfo, Converting $(patsubst $(OUTPUTDIR)/%,%,$@))
$(install-file)
endif
ifneq ($(findstring $(OPENJDK_TARGET_OS), linux macosx), )
$(JRE_IMAGE_DIR)/man/ja:
$(call LogInfo, Creating $(patsubst $(OUTPUTDIR)/%,%,$@))
$(CD) $(@D) && $(RM) ja && $(LN) -s ja_JP.UTF-8 ja
$(JDK_IMAGE_DIR)/man/ja:
$(call LogInfo, Creating $(patsubst $(OUTPUTDIR)/%,%,$@))
$(CD) $(@D) && $(RM) ja && $(LN) -s ja_JP.UTF-8 ja
endif
ifeq ($(OPENJDK_TARGET_OS), solaris)
JRE_MAN_PAGE_LIST = $(addprefix $(JRE_IMAGE_DIR)/man/man1/, $(JRE_MAN_PAGES)) \
$(addprefix $(JRE_IMAGE_DIR)/man/ja/man1/, $(JRE_MAN_PAGES)) \
$(addprefix $(JRE_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JRE_MAN_PAGES)) \
$(addprefix $(JRE_IMAGE_DIR)/man/ja_JP.PCK/man1/, $(JRE_MAN_PAGES))
JDK_MAN_PAGE_LIST = $(addprefix $(JDK_IMAGE_DIR)/man/man1/, $(JDK_MAN_PAGES)) \
$(addprefix $(JDK_IMAGE_DIR)/man/ja/man1/, $(JDK_MAN_PAGES)) \
$(addprefix $(JDK_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JDK_MAN_PAGES)) \
$(addprefix $(JDK_IMAGE_DIR)/man/ja_JP.PCK/man1/, $(JDK_MAN_PAGES))
endif
ifneq ($(findstring $(OPENJDK_TARGET_OS), linux macosx), )
JRE_MAN_PAGE_LIST = $(addprefix $(JRE_IMAGE_DIR)/man/man1/, $(JRE_MAN_PAGES)) \
$(addprefix $(JRE_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JRE_MAN_PAGES)) \
$(JRE_IMAGE_DIR)/man/ja
JDK_MAN_PAGE_LIST = $(addprefix $(JDK_IMAGE_DIR)/man/man1/, $(JDK_MAN_PAGES)) \
$(addprefix $(JDK_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JDK_MAN_PAGES)) \
$(JDK_IMAGE_DIR)/man/ja
endif
JRE_TARGETS += $(JRE_MAN_PAGE_LIST)
JDK_TARGETS += $(JDK_MAN_PAGE_LIST)
endif # Windows
################################################################################
# src.zip

View File

@@ -240,6 +240,11 @@ else # HAS_SPEC=true
override BUILD_LOG_PIPE :=
endif
ifeq ($(filter dist-clean, $(SEQUENTIAL_TARGETS)), dist-clean)
# We can't have a log file if we're about to remove it.
override BUILD_LOG_PIPE :=
endif
ifeq ($(OUTPUT_SYNC_SUPPORTED), true)
OUTPUT_SYNC_FLAG := -O$(OUTPUT_SYNC)
endif

View File

@@ -50,7 +50,7 @@ ifeq ($(HAS_SPEC),)
# Make control variables, handled by Init.gmk
INIT_CONTROL_VARIABLES += LOG CONF CONF_NAME SPEC JOBS TEST_JOBS CONF_CHECK \
COMPARE_BUILD JTREG GTEST TEST_OPTS TEST_VM_OPTS
COMPARE_BUILD JTREG GTEST MICRO TEST_OPTS TEST_VM_OPTS
# All known make control variables
MAKE_CONTROL_VARIABLES := $(INIT_CONTROL_VARIABLES) TEST JDK_FILTER
@@ -264,9 +264,13 @@ ifeq ($(HAS_SPEC),)
endif
endif
# The --no-print-directory is needed to make the call from
# FindTest.gmk to Test.gmk work with LOG=debug/trace. See
# JDK-8213736
$$(main_targets_file):
@( cd $$(topdir) && \
$$(MAKE) $$(MAKE_LOG_FLAGS) -r -R -f $$(topdir)/make/Main.gmk \
$$(MAKE) $$(MAKE_LOG_FLAGS) -r -R --no-print-directory \
-f $$(topdir)/make/Main.gmk \
-I $$(topdir)/make/common SPEC=$(strip $2) NO_RECIPES=true \
$$(MAKE_LOG_VARS) \
create-main-targets-include )

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2016, 2018, 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

View File

@@ -1,107 +0,0 @@
#
# Copyright (c) 2012, 2016, 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
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
# This file contains targets and utilities needed by JPRT.
# Cygpath is only defined when running on Cygwin
ifneq ($(CYGPATH), )
# If we get JPRT_ARCHIVE_*BUNDLE externally, make sure they have /cygdrive
# style paths
ifdef JPRT_ARCHIVE_BUNDLE
override JPRT_ARCHIVE_BUNDLE := $(shell $(CYGPATH) -u $(JPRT_ARCHIVE_BUNDLE))
endif
ifdef JPRT_ARCHIVE_TEST_BUNDLE
override JPRT_ARCHIVE_TEST_BUNDLE := \
$(shell $(CYGPATH) -u $(JPRT_ARCHIVE_TEST_BUNDLE))
endif
ifdef JPRT_ARCHIVE_SYMBOLS_BUNDLE
override JPRT_ARCHIVE_SYMBOLS_BUNDLE := \
$(shell $(CYGPATH) -u $(JPRT_ARCHIVE_SYMBOLS_BUNDLE))
endif
endif
# When running in JPRT these will be provided. Need defaults so that this makefile
# is valid anyway.
ifndef JPRT_ARCHIVE_BUNDLE
JPRT_ARCHIVE_BUNDLE=/tmp/jprt_bundles/jdk-image.zip
endif
ifndef JPRT_ARCHIVE_TEST_BUNDLE
JPRT_ARCHIVE_TEST_BUNDLE=/tmp/jprt_bundles/test-image.zip
endif
ifndef JPRT_ARCHIVE_SYMBOLS_BUNDLE
JPRT_ARCHIVE_SYMBOLS_BUNDLE=/tmp/jprt_bundles/symbols-image.zip
endif
ifeq ($(SKIP_BOOT_CYCLE), false)
jprt_bundle: bootcycle-images
endif
################################################################################
# JPRT specific bundling targets
JPRT_TARGET ?= $(DEFAULT_MAKE_TARGET)
ifeq ($(JPRT_TARGET), $(DEFAULT_MAKE_TARGET))
jprt_bundle: $(DEFAULT_MAKE_TARGET) $(JPRT_ARCHIVE_BUNDLE) \
$(JPRT_ARCHIVE_TEST_BUNDLE)
SRC_JDK_IMAGE_DIR := $(JDK_IMAGE_DIR)
SRC_TEST_IMAGE_DIR := $(TEST_IMAGE_DIR)
# This target must be called in the context of a SPEC file
$(JPRT_ARCHIVE_BUNDLE): product-images
$(call MakeDir, $(@D))
$(CD) $(SRC_JDK_IMAGE_DIR) && $(ZIPEXE) -y -q -r $@ .
$(JPRT_ARCHIVE_TEST_BUNDLE): test-image
$(call MakeDir, $(@D))
$(CD) $(SRC_TEST_IMAGE_DIR) && $(ZIPEXE) -y -q -r $@ .
##############################################################################
# Optional symbols bundle
ifeq ($(GCOV_ENABLED), true)
jprt_bundle: $(JPRT_ARCHIVE_SYMBOLS_BUNDLE)
$(JPRT_ARCHIVE_SYMBOLS_BUNDLE): product-images
$(call MakeDir, $(@D))
$(CD) $(SYMBOLS_IMAGE_DIR) && $(ZIPEXE) -y -q -r $@ .
endif
##############################################################################
else
# Just fake the main bundle to satisfy JPRT
jprt_bundle: $(JPRT_TARGET)
@$(call TargetEnter)
$(MKDIR) -p $(OUTPUTDIR)/bundles
$(CD) $(TOPDIR) && $(TAR) cf - README | $(GZIP) > \
$(JPRT_ARCHIVE_BUNDLE)
@$(call TargetExit)
endif
ALL_TARGETS += jprt_bundle
################################################################################
$(eval $(call IncludeCustomExtension, Jprt.gmk))

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2018, 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
@@ -63,15 +63,15 @@ ifeq ($(OPENJDK_TARGET_OS), macosx)
$(JDK_MACOSX_CONTENTS_DIR)/MacOS/libjli.dylib:
$(call LogInfo, Creating link $(patsubst $(OUTPUTDIR)/%,%,$@))
$(MKDIR) -p $(@D)
$(call MakeTargetDir)
$(RM) $@
$(LN) -s ../Home/lib/jli/libjli.dylib $@
$(LN) -s ../Home/lib/libjli.dylib $@
$(JRE_MACOSX_CONTENTS_DIR)/MacOS/libjli.dylib:
$(call LogInfo, Creating link $(patsubst $(OUTPUTDIR)/%,%,$@))
$(MKDIR) -p $(@D)
$(call MakeTargetDir)
$(RM) $@
$(LN) -s ../Home/lib/jli/libjli.dylib $@
$(LN) -s ../Home/lib/libjli.dylib $@
$(eval $(call SetupTextFileProcessing, BUILD_JDK_PLIST, \
SOURCE_FILES := $(MACOSX_PLIST_SRC)/JDK-Info.plist, \

View File

@@ -262,6 +262,31 @@ hotspot-ide-project:
ALL_TARGETS += $(HOTSPOT_VARIANT_TARGETS) $(HOTSPOT_VARIANT_GENSRC_TARGETS) \
$(HOTSPOT_VARIANT_LIBS_TARGETS) hotspot-ide-project
################################################################################
# Generate libs and launcher targets for creating compile_commands.json fragments
define DeclareCompileCommandsRecipe
$1-compile-commands:
$$(call LogInfo, Generating compile_commands.json fragments for $1)
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f Main.gmk $1-only \
GENERATE_COMPILE_COMMANDS_ONLY=true)
COMPILE_COMMANDS_TARGETS_$2 += $1-compile-commands
endef
$(foreach t, $(HOTSPOT_VARIANT_LIBS_TARGETS), \
$(eval $(call DeclareCompileCommandsRecipe,$t,HOTSPOT)) \
)
$(foreach t, $(LIBS_TARGETS) $(LAUNCHER_TARGETS), \
$(eval $(call DeclareCompileCommandsRecipe,$t,JDK)) \
)
compile-commands compile-commands-hotspot:
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileCommands.gmk)
ALL_TARGETS += $(COMPILE_COMMANDS_TARGETS_HOTSPOT) $(COMPILE_COMMANDS_TARGETS_JDK)
ALL_TARGETS += compile-commands compile-commands-hotspot
################################################################################
# Build demos targets
@@ -346,10 +371,15 @@ release-file:
exploded-image-optimize:
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f ExplodedImageOptimize.gmk)
ifeq ($(JCOV_ENABLED), true)
jcov-image:
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f Coverage.gmk jcov-image)
endif
ALL_TARGETS += store-source-revision create-source-revision-tracker bootcycle-images zip-security \
zip-source jrtfs-jar jdk-image legacy-jre-image \
symbols-image mac-jdk-bundle mac-legacy-jre-bundle \
release-file exploded-image-optimize
release-file exploded-image-optimize jcov-image
################################################################################
# Docs targets
@@ -448,10 +478,10 @@ ALL_TARGETS += $(INTERIM_JMOD_TARGETS) interim-image generate-link-opt-data
#
define DeclareRunTestRecipe
run-test-$1:
test-$1:
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f RunTests.gmk run-test TEST="$1")
exploded-run-test-$1:
exploded-test-$1:
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f RunTests.gmk run-test \
TEST="$1" JDK_IMAGE_DIR=$(JDK_OUTPUTDIR))
@@ -459,13 +489,16 @@ endef
# ALL_NAMED_TESTS is defined in FindTests.gmk
$(foreach t, $(ALL_NAMED_TESTS), $(eval $(call DeclareRunTestRecipe,$t)))
ALL_TEST_TARGETS := $(addprefix run-test-, $(ALL_NAMED_TESTS))
ALL_EXPLODED_TEST_TARGETS := $(addprefix exploded-run-test-, $(ALL_NAMED_TESTS))
ALL_TEST_TARGETS := $(addprefix test-, $(ALL_NAMED_TESTS))
# We only support the "exploded-test-gtest" shortcut
ALL_EXPLODED_TESTS := gtest
ALL_EXPLODED_TEST_TARGETS := $(addprefix exploded-test-, $(ALL_EXPLODED_TESTS))
ALL_TARGETS += $(ALL_TEST_TARGETS) $(ALL_EXPLODED_TEST_TARGETS)
################################################################################
# Build tests
# Build tests and microbenchmarks
#
prepare-test-image:
@@ -495,13 +528,6 @@ test-image-hotspot-jtreg-graal:
+($(CD) $(TOPDIR)/make/test && $(MAKE) $(MAKE_ARGS) -f JtregGraalUnit.gmk \
test-image-hotspot-jtreg-graal)
run-test:
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f RunTests.gmk run-test TEST="$(TEST)")
exploded-run-test:
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f RunTests.gmk run-test \
TEST="$(TEST)" JDK_IMAGE_DIR=$(JDK_OUTPUTDIR))
ifeq ($(BUILD_GTEST), true)
test-image-hotspot-gtest:
+($(CD) $(TOPDIR)/make/hotspot/test && $(MAKE) $(MAKE_ARGS) -f GtestImage.gmk)
@@ -516,51 +542,33 @@ ifeq ($(BUILD_FAILURE_HANDLER), true)
+($(CD) $(TOPDIR)/make/test && $(MAKE) $(MAKE_ARGS) \
-f BuildFailureHandler.gmk build)
# Runs the tests for the failure handler jtreg extension
test-failure-handler:
+($(CD) $(TOPDIR)/make/test && $(MAKE) $(MAKE_ARGS) \
-f BuildFailureHandler.gmk test)
# Copies the failure handler jtreg extension into the test image
test-image-failure-handler:
+($(CD) $(TOPDIR)/make/test && $(MAKE) $(MAKE_ARGS) \
-f BuildFailureHandler.gmk images)
endif
build-microbenchmark:
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f test/BuildMicrobenchmark.gmk)
ALL_TARGETS += prepare-test-image build-test-hotspot-jtreg-native \
test-image-hotspot-jtreg-native build-test-jdk-jtreg-native \
test-image-jdk-jtreg-native build-test-lib build-test-failure-handler \
test-failure-handler test-image-failure-handler test-image-hotspot-gtest \
test-image-hotspot-jtreg-graal build-test-hotspot-jtreg-graal \
run-test exploded-run-test
build-microbenchmark
################################################################################
# Run tests
# Run tests specified by $(TEST), or the default test set.
test:
$(call RunTests, $(TEST), $(JDK_IMAGE_DIR))
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f RunTests.gmk run-test TEST="$(TEST)")
test-hotspot-jtreg:
$(call RunTests, "hotspot_all", $(JDK_IMAGE_DIR))
exploded-test:
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f RunTests.gmk run-test \
TEST="$(TEST)" JDK_IMAGE_DIR=$(JDK_OUTPUTDIR))
test-hotspot-jtreg-native:
$(call RunTests, "hotspot_native_sanity", $(JDK_IMAGE_DIR))
test-hotspot-internal:
$(call RunTests, "hotspot_internal", $(JDK_OUTPUTDIR))
test-hotspot-gtest:
$(call RunTests, "hotspot_gtest", $(JDK_OUTPUTDIR))
test-jdk-jtreg-native:
$(call RunTests, "jdk_native_sanity", $(JDK_IMAGE_DIR))
test-make:
($(CD) $(TOPDIR)/test/make && $(MAKE) $(MAKE_ARGS) -f TestMake.gmk $(TEST_TARGET))
ALL_TARGETS += test test-hotspot-jtreg test-hotspot-jtreg-native \
test-hotspot-internal test-hotspot-gtest test-jdk-jtreg-native test-make
ALL_TARGETS += test exploded-test
################################################################################
# Bundles
@@ -574,7 +582,12 @@ test-bundles:
docs-bundles:
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f Bundles.gmk docs-bundles)
ALL_TARGETS += product-bundles test-bundles docs-bundles
ifeq ($(JCOV_ENABLED), true)
jcov-bundles:
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f Bundles.gmk jcov-bundles)
endif
ALL_TARGETS += product-bundles test-bundles docs-bundles jcov-bundles
################################################################################
# Install targets
@@ -630,6 +643,7 @@ else
# Declare dependencies between hotspot-<variant>* targets
$(foreach v, $(JVM_VARIANTS), \
$(eval hotspot-$v: hotspot-$v-gensrc hotspot-$v-libs) \
$(eval hotspot-$v-gensrc: java.base-copy) \
$(eval hotspot-$v-libs: hotspot-$v-gensrc java.base-copy) \
)
@@ -691,16 +705,17 @@ else
# copied and processed.
java.desktop-gensrc-src: java.base-gensrc java.base-copy
# The annotation processing for jdk.internal.vm.ci and jdk.internal.vm.compiler
# needs classes from the current JDK.
jdk.internal.vm.ci-gensrc-src: $(addsuffix -java, \
$(call FindTransitiveDepsForModule, jdk.internal.vm.ci))
# The annotation processing for jdk.internal.vm.compiler
# and jdk.internal.vm.compiler.management needs classes from the current JDK.
jdk.internal.vm.compiler-gensrc-src: $(addsuffix -java, \
$(call FindTransitiveDepsForModule, jdk.internal.vm.compiler))
jdk.internal.vm.compiler.management-gensrc-src: $(addsuffix -java, \
$(call FindTransitiveDepsForModule, jdk.internal.vm.compiler.management))
# For jdk.internal.vm.compiler, the gensrc step is generating a module-info.java.extra
# For these modules, the gensrc step is generating a module-info.java.extra
# file to be processed by the gensrc-moduleinfo target.
jdk.internal.vm.compiler-gensrc-moduleinfo: jdk.internal.vm.compiler-gensrc-src
jdk.internal.vm.compiler.management-gensrc-moduleinfo: jdk.internal.vm.compiler.management-gensrc-src
jdk.jdeps-gendata: java rmic
@@ -735,6 +750,20 @@ else
$(foreach m, $(ALL_MODULES), $(eval $m-jmod: $($(m)_JMOD_DEPS)))
$(foreach m, $(INTERIM_IMAGE_MODULES), $(eval $m-interim-jmod: $($(m)_JMOD_DEPS)))
# Setup the minimal set of generated native source dependencies for hotspot
$(foreach v, $(JVM_VARIANTS), \
$(eval hotspot-$v-libs-compile-commands: hotspot-$v-gensrc) \
$(foreach m, $(filter java.desktop jdk.hotspot.agent, $(GENSRC_MODULES)), \
$(eval hotspot-$v-libs-compile-commands: $m-gensrc)) \
)
# For the full JDK compile commands, create all possible generated sources
$(foreach m, $(GENSRC_MODULES), $(eval $m-libs-compile-commands: $m-gensrc))
$(foreach m, $(filter $(JAVA_MODULES), $(LIBS_MODULES)), $(eval $m-libs-compile-commands: $m-java))
compile-commands-hotspot: $(COMPILE_COMMANDS_TARGETS_HOTSPOT)
compile-commands: $(COMPILE_COMMANDS_TARGETS_HOTSPOT) $(COMPILE_COMMANDS_TARGETS_JDK)
# Jmods cannot be created until we have the jmod tool ready to run. During
# a normal build we run it from the exploded image, but when cross compiling
# it's run from the buildjdk, which is either created at build time or user
@@ -775,6 +804,8 @@ else
jrtfs-jar: interim-langtools
build-microbenchmark: interim-langtools exploded-image
ifeq ($(ENABLE_GENERATE_CLASSLIST), true)
ifeq ($(CREATE_BUILDJDK), true)
# If creating a buildjdk, the interim image needs to be based on that.
@@ -800,6 +831,10 @@ else
mac-jdk-bundle: jdk-image
mac-legacy-jre-bundle: legacy-jre-image
ifeq ($(JCOV_INPUT_JDK), )
jcov-image: jdk-image
endif
# The optimize target can run as soon as the modules dir has been completely
# populated (java, copy and gendata targets) and the basic libs and launchers
# have been built.
@@ -827,17 +862,19 @@ else
docs-jdk-specs: $(JVM_DOCS_TARGETS) jdk.jdi-gensrc \
docs-jdk-index
docs-jdk-index: exploded-image buildtools-modules
docs-zip: docs-jdk
# Tests
test: jdk-image test-image
run-test: jdk-image test-image
exploded-run-test: exploded-image test-image
exploded-test: exploded-image test-image
test-make: clean-test-make compile-commands
test-make-compile-commands: compile-commands
# Declare dependency for all generated test targets
$(foreach t, $(ALL_TEST_TARGETS), $(eval $t: jdk-image test-image))
$(foreach t, $(filter-out test-make%, $(ALL_TEST_TARGETS)), $(eval $t: jdk-image test-image))
$(foreach t, $(ALL_EXPLODED_TEST_TARGETS), $(eval $t: exploded-image test-image))
create-buildjdk-copy: jdk.jlink-java java.base-gendata \
@@ -847,14 +884,10 @@ else
interim-image: $(INTERIM_JMOD_TARGETS)
test-make: clean-test-make
build-test-lib: exploded-image-optimize
build-test-failure-handler: interim-langtools
test-failure-handler: build-test-failure-handler
test-image-failure-handler: build-test-failure-handler
build-test-hotspot-jtreg-native: buildtools-jdk \
@@ -872,12 +905,6 @@ else
test-image-hotspot-gtest: hotspot
test-hotspot-internal: exploded-image
test-hotspot-jtreg: jdk-image test-image
test-hotspot-gtest: exploded-image test-image-hotspot-gtest
install: product-images
product-bundles: product-images
@@ -886,6 +913,8 @@ else
docs-bundles: docs-image
jcov-bundles: jcov-image
generate-summary: jmods buildtools-modules
update-x11wrappers: java.base-copy buildtools-jdk
@@ -1015,6 +1044,10 @@ test-image: prepare-test-image \
test-image-jdk-jtreg-native test-image-failure-handler \
test-image-demos-jdk $(JVM_TEST_IMAGE_TARGETS)
ifneq ($(JMH_CORE_JAR), )
test-image: build-microbenchmark
endif
################################################################################
# all-images builds all our deliverables as images.
@@ -1046,6 +1079,28 @@ all: all-images
ALL_TARGETS += default jdk images docs bundles all
# Aliases used for running tests.
# Let "run-test" be an alias for "test"
$(foreach t, $(ALL_NAMED_TESTS), $(eval run-test-$t: test-$t))
RUN_TEST_TARGETS := $(addprefix run-test-, $(ALL_NAMED_TESTS))
run-test: test
exploded-run-test: exploded-test
# "make check" is a common idiom for running basic testing
check: test-tier1
# Keep some old names as aliases
test-hotspot-jtreg: test-hotspot_all
test-hotspot-jtreg-native: test-hotspot_native_sanity
test-hotspot-gtest: exploded-test-gtest
test-jdk-jtreg-native: test-jdk_native_sanity
ALL_TARGETS += $(RUN_TEST_TARGETS) run-test exploded-run-test check \
test-hotspot-jtreg test-hotspot-jtreg-native test-hotspot-gtest \
test-jdk-jtreg-native
################################################################################
################################################################################
#
@@ -1071,7 +1126,7 @@ CLEAN_MODULE_PHASE_TARGETS := $(addprefix clean-, $(foreach m, $(ALL_MODULES), \
# Remove everything, except the output from configure.
clean: $(CLEAN_DIR_TARGETS)
($(CD) $(OUTPUTDIR) && $(RM) -r build*.log*)
($(CD) $(OUTPUTDIR) && $(RM) -r build*.log* compile_commands.json)
$(ECHO) Cleaned all build artifacts.
clean-docs:
@@ -1107,7 +1162,8 @@ clean-test: clean-test-results clean-test-support
# directory was created by configure and now becomes empty, remove it as well.
dist-clean: clean
($(CD) $(OUTPUTDIR) && \
$(RM) -r *spec.gmk $(CONFIGURESUPPORT_OUTPUTDIR) Makefile compare.sh ide)
$(RM) -r *spec.gmk $(CONFIGURESUPPORT_OUTPUTDIR) Makefile compare.sh ide \
configure.log* build.log*)
$(if $(filter $(CONF_NAME),$(notdir $(OUTPUTDIR))), \
if test "x`$(LS) $(OUTPUTDIR)`" != x; then \
$(ECHO) "Warning: Not removing non-empty configuration directory for '$(CONF_NAME)'" ; \
@@ -1130,11 +1186,6 @@ ALL_TARGETS += $(addsuffix -only, $(filter-out dist-clean clean%, $(ALL_TARGETS)
################################################################################
# Include JPRT targets
include $(TOPDIR)/make/Jprt.gmk
################################################################################
# The following targets are intentionally not added to ALL_TARGETS since they
# are internal only, to support Init.gmk.

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2018, 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
@@ -30,17 +30,6 @@
ifndef _MAINSUPPORT_GMK
_MAINSUPPORT_GMK := 1
# Run the tests specified by $1, with PRODUCT_HOME specified by $2
# JT_JAVA is picked up by the jtreg launcher and used to run Jtreg itself.
define RunTests
($(CD) $(TOPDIR)/test && $(MAKE) $(MAKE_ARGS) -j1 -k MAKEFLAGS= \
JT_HOME=$(JT_HOME) PRODUCT_HOME=$(strip $2) \
TEST_IMAGE_DIR=$(TEST_IMAGE_DIR) \
ALT_OUTPUTDIR=$(OUTPUTDIR) TEST_JOBS=$(TEST_JOBS) \
JT_JAVA=$(BOOT_JDK) JIB_JAR=$(JIB_JAR) \
JOBS=$(JOBS) $1) || true
endef
define CleanDocs
@$(PRINTF) "Cleaning docs ..."
@$(PRINTF) "\n" $(LOG_DEBUG)

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2018, 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
@@ -93,6 +93,12 @@ $(eval $(call SetupCopyFiles, COPY_CMDS, \
FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_cmds/$(MODULE)/%, $(TARGETS)), \
))
$(eval $(call SetupCopyFiles, COPY_MAN, \
SRC := $(SUPPORT_OUTPUTDIR)/modules_man/$(MODULE), \
DEST := $(JDK_OUTPUTDIR)/man, \
FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_man/$(MODULE)/%, $(TARGETS)), \
))
$(eval $(call SetupCopyFiles, COPY_CONF, \
SRC := $(SUPPORT_OUTPUTDIR)/modules_conf/$(MODULE), \
DEST := $(JDK_OUTPUTDIR)/conf, \
@@ -100,5 +106,9 @@ $(eval $(call SetupCopyFiles, COPY_CONF, \
$(TARGETS)), \
))
all: $(TARGETS) $(COPY_LIBS_TO_BIN) $(COPY_LIBS_TO_LIB) \
$(COPY_INCLUDE) $(COPY_CMDS) $(COPY_CONF) $(LINK_LIBS_TO_LIB)
ifeq ($(GENERATE_COMPILE_COMMANDS_ONLY), true)
all: $(filter $(MAKESUPPORT_OUTPUTDIR)/compile-commands/%, $(TARGETS))
else
all: $(TARGETS) $(COPY_LIBS_TO_BIN) $(COPY_LIBS_TO_LIB) \
$(COPY_INCLUDE) $(COPY_CMDS) $(COPY_MAN) $(COPY_CONF) $(LINK_LIBS_TO_LIB)
endif

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2016, 2018, 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
@@ -45,8 +45,8 @@ ifneq ($(TEST_VM_OPTS), )
endif
$(eval $(call ParseKeywordVariable, TEST_OPTS, \
KEYWORDS := JOBS TIMEOUT, \
STRING_KEYWORDS := VM_OPTIONS, \
SINGLE_KEYWORDS := JOBS TIMEOUT_FACTOR AOT_MODULES, \
STRING_KEYWORDS := VM_OPTIONS JAVA_OPTIONS, \
))
# Helper function to propagate TEST_OPTS values.
@@ -65,10 +65,14 @@ ifeq ($(OPENJDK_TARGET_OS), windows)
ifndef _NT_SYMBOL_PATH
# Can't use PathList here as it adds quotes around the value.
_NT_SYMBOL_PATH := \
$(subst $(SPACE),;, $(foreach p, $(sort $(dir $(wildcard \
$(addprefix $(SYMBOLS_IMAGE_DIR)/bin/, *.pdb */*.pdb)))), $(call FixPath, $p)))
$(subst $(SPACE),;,$(strip \
$(foreach p, $(sort $(dir $(wildcard \
$(addprefix $(SYMBOLS_IMAGE_DIR)/bin/, *.pdb */*.pdb)))), \
$(call FixPath, $p) \
) \
))
export _NT_SYMBOL_PATH
$(info _NT_SYMBOL_PATH $(_NT_SYMBOL_PATH))
$(info _NT_SYMBOL_PATH=$(_NT_SYMBOL_PATH))
endif
endif
@@ -103,6 +107,129 @@ endif
GTEST_LAUNCHER_DIRS := $(patsubst %/gtestLauncher, %, $(wildcard $(TEST_IMAGE_DIR)/hotspot/gtest/*/gtestLauncher))
GTEST_VARIANTS := $(strip $(patsubst $(TEST_IMAGE_DIR)/hotspot/gtest/%, %, $(GTEST_LAUNCHER_DIRS)))
################################################################################
# Optionally create AOT libraries for specified modules before running tests.
# Note, this could not be done during JDK build time.
################################################################################
# Note, this could not be done during JDK build time.
# Parameter 1 is the name of the rule.
#
# Remaining parameters are named arguments.
# MODULE The module to generate a library for
# BIN Output directory in which to put the library
# VM_OPTIONS List of JVM arguments to use when creating library
# OPTIONS_VAR Name of variable to put AOT java options in
# PREREQS_VAR Name of variable to put all AOT prerequisite rule targets in
# for test rules to depend on
#
SetupAotModule = $(NamedParamsMacroTemplate)
define SetupAotModuleBody
$1_AOT_LIB := $$($1_BIN)/$$(call SHARED_LIBRARY,$$($1_MODULE))
$1_AOT_CCLIST := $$(wildcard $$(TOPDIR)/test/hotspot/jtreg/compiler/aot/scripts/$$($1_MODULE)-list.txt)
ifeq ($(OPENJDK_TARGET_OS), windows)
$1_LD := $$(addsuffix $$(EXE_SUFFIX), $$(filter-out $$(FIXPATH), $$(LD)))
else
$1_LD := $$(LD)
endif
# Create jaotc flags.
# VM flags which don't affect AOT code generation are filtered out: -Xcomp, -XX:+-TieredCompilation
$1_JAOTC_OPTS := \
-J-Xmx4g --info \
$$(addprefix -J, $$(filter-out -Xcomp %TieredCompilation, $$($1_VM_OPTIONS))) \
$$(addprefix --compile-commands$(SPACE), $$($1_AOT_CCLIST)) \
--linker-path $$($1_LD) \
#
ifneq ($$(filter -ea, $$($1_VM_OPTIONS)), )
$1_JAOTC_OPTS += --compile-with-assertions
endif
$$($1_AOT_LIB): $$(JDK_IMAGE_DIR)/release \
$$(call DependOnVariable, $1_JAOTC_OPTS) \
$$(call DependOnVariable, JDK_IMAGE_DIR)
$$(call LogWarn, Generating $$(patsubst $$(OUTPUTDIR)/%, %, $$@))
$$(call MakeTargetDir)
$$(call ExecuteWithLog, $$@, \
$$(FIXPATH) $$(JDK_IMAGE_DIR)/bin/jaotc \
$$($1_JAOTC_OPTS) --output $$@ --module $$($1_MODULE) \
)
$$(call ExecuteWithLog, $$@.check, \
$$(FIXPATH) $$(JDK_IMAGE_DIR)/bin/java \
$$($1_VM_OPTIONS) -XX:+PrintAOT -XX:+UseAOTStrictLoading -XX:AOTLibrary=$$@ -version \
> $$@.verify-aot \
)
$1_AOT_OPTIONS += -XX:AOTLibrary=$$($1_AOT_LIB)
$1_AOT_TARGETS += $$($1_AOT_LIB)
endef
# Parameter 1 is the name of the rule.
#
# Remaining parameters are named arguments.
# MODULES The modules to generate a library for
# VM_OPTIONS List of JVM arguments to use when creating libraries
#
# After calling this, the following variables are defined
# $1_AOT_OPTIONS List of all java options needed to use the AOT libraries
# $1_AOT_TARGETS List of all targets that the test rule will need to depend on
#
SetupAot = $(NamedParamsMacroTemplate)
define SetupAotBody
$$(info Running with AOTd libraries for $$($1_MODULES))
# Put aot libraries in a separate directory so they are not deleted between
# test runs and may be reused between make invocations.
$$(foreach m, $$($1_MODULES), \
$$(eval $$(call SetupAotModule, $1_$$m, \
MODULE := $$m, \
BIN := $$(TEST_SUPPORT_DIR)/aot/$1, \
VM_OPTIONS := $$($1_VM_OPTIONS), \
)) \
$$(eval $1_AOT_OPTIONS += $$($1_$$m_AOT_OPTIONS)) \
$$(eval $1_AOT_TARGETS += $$($1_$$m_AOT_TARGETS)) \
)
endef
################################################################################
# Setup global test running parameters
################################################################################
# Each factor variable comes in 3 variants. The first one is reserved for users
# to use on command line. The other two are for predifined configurations in JDL
# and for machine specific configurations respectively.
TEST_JOBS_FACTOR ?= 1
TEST_JOBS_FACTOR_JDL ?= 1
TEST_JOBS_FACTOR_MACHINE ?= 1
ifeq ($(TEST_JOBS), 0)
CORES_DIVIDER := 2
ifeq ($(OPENJDK_TARGET_CPU_ARCH), sparc)
# For smaller SPARC machines we see reasonable scaling of throughput up to
# cpus/4 without affecting test reliability. On the bigger machines, cpus/4
# causes intermittent timeouts.
ifeq ($(shell $(EXPR) $(NUM_CORES) \> 16), 1)
CORES_DIVIDER := 5
else
CORES_DIVIDER := 4
endif
endif
MEMORY_DIVIDER := 2048
TEST_JOBS := $(shell $(AWK) \
'BEGIN { \
c = $(NUM_CORES) / $(CORES_DIVIDER); \
m = $(MEMORY_SIZE) / $(MEMORY_DIVIDER); \
if (c > m) c = m; \
c = c * $(TEST_JOBS_FACTOR); \
c = c * $(TEST_JOBS_FACTOR_JDL); \
c = c * $(TEST_JOBS_FACTOR_MACHINE); \
if (c < 1) c = 1; \
printf "%.0f", c; \
}')
endif
################################################################################
# Parse control variables
################################################################################
@@ -110,16 +237,20 @@ GTEST_VARIANTS := $(strip $(patsubst $(TEST_IMAGE_DIR)/hotspot/gtest/%, %, $(GTE
ifneq ($(TEST_OPTS), )
# Inform the user
$(info Running tests using TEST_OPTS control variable '$(TEST_OPTS)')
$(eval $(call SetTestOpt,VM_OPTIONS,JTREG))
$(eval $(call SetTestOpt,VM_OPTIONS,GTEST))
$(eval $(call SetTestOpt,JOBS,JTREG))
$(eval $(call SetTestOpt,TIMEOUT,JTREG))
endif
### Jtreg
$(eval $(call SetTestOpt,VM_OPTIONS,JTREG))
$(eval $(call SetTestOpt,JAVA_OPTIONS,JTREG))
$(eval $(call SetTestOpt,AOT_MODULES,JTREG))
$(eval $(call SetTestOpt,JOBS,JTREG))
$(eval $(call SetTestOpt,TIMEOUT_FACTOR,JTREG))
$(eval $(call ParseKeywordVariable, JTREG, \
KEYWORDS := JOBS TIMEOUT TEST_MODE ASSERT VERBOSE RETAIN MAX_MEM, \
SINGLE_KEYWORDS := JOBS TIMEOUT_FACTOR TEST_MODE ASSERT VERBOSE RETAIN MAX_MEM \
EXTRA_PROBLEM_LISTS KEYWORDS AOT_MODULES, \
STRING_KEYWORDS := OPTIONS JAVA_OPTIONS VM_OPTIONS, \
))
@@ -128,9 +259,15 @@ ifneq ($(JTREG), )
$(info Running tests using JTREG control variable '$(JTREG)')
endif
### Gtest
$(eval $(call SetTestOpt,VM_OPTIONS,GTEST))
$(eval $(call SetTestOpt,JAVA_OPTIONS,GTEST))
$(eval $(call SetTestOpt,AOT_MODULES,GTEST))
$(eval $(call ParseKeywordVariable, GTEST, \
KEYWORDS := REPEAT, \
STRING_KEYWORDS := OPTIONS VM_OPTIONS, \
SINGLE_KEYWORDS := REPEAT AOT_MODULES, \
STRING_KEYWORDS := OPTIONS VM_OPTIONS JAVA_OPTIONS, \
))
ifneq ($(GTEST), )
@@ -138,22 +275,26 @@ ifneq ($(GTEST), )
$(info Running tests using GTEST control variable '$(GTEST)')
endif
### Microbenchmarks
$(eval $(call SetTestOpt,VM_OPTIONS,MICRO))
$(eval $(call SetTestOpt,JAVA_OPTIONS,MICRO))
$(eval $(call ParseKeywordVariable, MICRO, \
SINGLE_KEYWORDS := ITER FORK TIME WARMUP_ITER WARMUP_TIME, \
STRING_KEYWORDS := OPTIONS JAVA_OPTIONS VM_OPTIONS RESULTS_FORMAT TEST_JDK BENCHMARKS_JAR, \
))
ifneq ($(MICRO), )
# Inform the user
$(info Running tests using MICRO control variable '$(MICRO)')
endif
################################################################################
# Component-specific Jtreg settings
################################################################################
ifeq ($(TEST_JOBS), 0)
# If TEST_JOBS is not specified, hotspot fallback default is
# min(num_cores / 2, 12).
hotspot_JTREG_JOBS := $(shell $(EXPR) $(NUM_CORES) / 2)
ifeq ($(hotspot_JTREG_JOBS), 0)
hotspot_JTREG_JOBS := 1
else ifeq ($(shell $(EXPR) $(hotspot_JTREG_JOBS) \> 12), 1)
hotspot_JTREG_JOBS := 12
endif
endif
hotspot_JTREG_MAX_MEM := 0
hotspot_JTREG_ASSERT := false
hotspot_JTREG_NATIVEPATH := $(TEST_IMAGE_DIR)/hotspot/jtreg/native
@@ -165,6 +306,8 @@ langtools_JTREG_PROBLEM_LIST += $(TOPDIR)/test/langtools/ProblemList.txt
nashorn_JTREG_PROBLEM_LIST += $(TOPDIR)/test/nashorn/ProblemList.txt
hotspot_JTREG_PROBLEM_LIST += $(TOPDIR)/test/hotspot/jtreg/ProblemList.txt
langtools_JTREG_MAX_MEM := 768m
################################################################################
# Parse test selection
#
@@ -203,6 +346,24 @@ define ParseGtestTestSelection
)
endef
# Helper function to determine if a test specification is a microbenchmark test
#
# It is a microbenchmark test if it is either "micro", or "micro:" followed by an optional
# test filter string.
define ParseMicroTestSelection
$(if $(filter micro%, $1), \
$(if $(filter micro, $1), \
micro:all \
, \
$(if $(filter micro:, $1), \
micro:all \
, \
$1 \
) \
) \
)
endef
# Helper function that removes the TOPDIR part
CleanupJtregPath = \
$(strip $(patsubst %/, %, $(subst $(JTREG_TOPDIR)/,, $1)))
@@ -277,16 +438,32 @@ endef
# Helper function to determine if a test specification is a special test
#
# It is a special test if it is "special:" followed by a test name.
# It is a special test if it is "special:" followed by a test name,
# if it is "make:" or "make-" followed by a make test, or any of the special test names
# as a single word.
define ParseSpecialTestSelection
$(if $(filter special:%, $1), \
$1 \
) \
$(if $(filter make%, $1), \
$(if $(filter make:%, $1), \
special:$(strip $1) \
) \
$(if $(filter make-%, $1), \
special:$(patsubst make-%,make:%, $1) \
) \
$(if $(filter make, $1), \
special:make:all \
)
) \
$(if $(filter failure-handler, $1), \
special:$(strip $1) \
)
endef
ifeq ($(TEST), )
$(info No test selection given in TEST!)
$(info Please use e.g. 'run-test TEST=tier1' or 'run-test-tier1')
$(info Please use e.g. 'make test TEST=tier1' or 'make test-tier1')
$(info See doc/testing.[md|html] for help)
$(error Cannot continue)
endif
@@ -299,6 +476,9 @@ $(foreach test, $(TEST), \
$(if $(strip $(PARSED_TESTS)), , \
$(eval PARSED_TESTS += $(call ParseGtestTestSelection, $(test))) \
) \
$(if $(strip $(PARSED_TESTS)), , \
$(eval PARSED_TESTS += $(call ParseMicroTestSelection, $(test))) \
) \
$(if $(strip $(PARSED_TESTS)), , \
$(eval PARSED_TESTS += $(call ParseJtregTestSelection, $(test))) \
) \
@@ -368,15 +548,23 @@ define SetupRunGtestTestBody
$1_GTEST_REPEAT :=--gtest_repeat=$$(GTEST_REPEAT)
endif
run-test-$1:
ifneq ($$(GTEST_AOT_MODULES), )
$$(eval $$(call SetupAot, $1, \
MODULES := $$(GTEST_AOT_MODULES), \
VM_OPTIONS := $$(GTEST_VM_OPTIONS) $$(GTEST_JAVA_OPTIONS), \
))
endif
run-test-$1: $$($1_AOT_TARGETS)
$$(call LogWarn)
$$(call LogWarn, Running test '$$($1_TEST)')
$$(call MakeDir, $$($1_TEST_RESULTS_DIR) $$($1_TEST_SUPPORT_DIR))
$$(call ExecuteWithLog, $$($1_TEST_SUPPORT_DIR)/gtest, \
$$(FIXPATH) $$(TEST_IMAGE_DIR)/hotspot/gtest/$$($1_VARIANT)/gtestLauncher \
-jdk $(JDK_IMAGE_DIR) $$($1_GTEST_FILTER) \
--gtest_output=xml:$$($1_TEST_RESULTS_DIR)/gtest.xml \
$$($1_GTEST_REPEAT) $$(GTEST_OPTIONS) $$(GTEST_VM_OPTIONS) \
-jdk $(JDK_IMAGE_DIR) $$($1_GTEST_FILTER) \
--gtest_output=xml:$$($1_TEST_RESULTS_DIR)/gtest.xml \
$$($1_GTEST_REPEAT) $$(GTEST_OPTIONS) $$(GTEST_VM_OPTIONS) \
$$(GTEST_JAVA_OPTIONS) $$($1_AOT_OPTIONS) \
> >($(TEE) $$($1_TEST_RESULTS_DIR)/gtest.txt) \
&& $$(ECHO) $$$$? > $$($1_EXITCODE) \
|| $$(ECHO) $$$$? > $$($1_EXITCODE) \
@@ -414,6 +602,113 @@ endef
################################################################################
### Rules for Microbenchmarks
# Helper function for SetupRunMicroTest. Set a MICRO_* variable from, in order:
# 1) Specified by user on command line
# 2) Generic default
#
# Note: No spaces are allowed around the arguments.
# Arg $1 The test ID (i.e. $1 in SetupRunMicroTest)
# Arg $2 Base variable, e.g. MICRO_TEST_JDK
# Arg $3 The default value (optional)
define SetMicroValue
ifneq ($$($2), )
$1_$2 := $$($2)
else
ifneq ($3, )
$1_$2 := $3
endif
endif
endef
SetupRunMicroTest = $(NamedParamsMacroTemplate)
define SetupRunMicroTestBody
$1_TEST_RESULTS_DIR := $$(TEST_RESULTS_DIR)/$1
$1_TEST_SUPPORT_DIR := $$(TEST_SUPPORT_DIR)/$1
$1_EXITCODE := $$($1_TEST_RESULTS_DIR)/exitcode.txt
$1_TEST_NAME := $$(strip $$(patsubst micro:%, %, $$($1_TEST)))
$$(eval $$(call SetMicroValue,$1,MICRO_BENCHMARKS_JAR,$$(TEST_IMAGE_DIR)/micro/benchmarks.jar))
$$(eval $$(call SetMicroValue,$1,MICRO_TEST_JDK,$$(JDK_IMAGE_DIR)))
$$(eval $$(call SetMicroValue,$1,MICRO_JAVA_OPTIONS))
# Current tests needs to open java.io
$1_MICRO_JAVA_OPTIONS += --add-opens=java.base/java.io=ALL-UNNAMED
# Save output as JSON or CSV file
ifneq ($$(MICRO_RESULTS_FORMAT), )
$1_MICRO_BASIC_OPTIONS += -rf $$(MICRO_RESULTS_FORMAT) -rff $$($1_TEST_RESULTS_DIR)/jmh-result.$(MICRO_RESULTS_FORMAT)
endif
ifneq ($$(MICRO_VM_OPTIONS)$$(MICRO_JAVA_OPTIONS), )
$1_MICRO_VM_OPTIONS := -jvmArgs $$(MICRO_VM_OPTIONS) $$(MICRO_JAVA_OPTIONS)
endif
ifneq ($$(MICRO_ITER), )
$1_MICRO_ITER := -i $$(MICRO_ITER)
endif
ifneq ($$(MICRO_FORK), )
$1_MICRO_FORK := -f $$(MICRO_FORK)
endif
ifneq ($$(MICRO_TIME), )
$1_MICRO_TIME := -r $$(MICRO_TIME)
endif
ifneq ($$(MICRO_WARMUP_ITER), )
$1_MICRO_WARMUP_ITER := -wi $$(MICRO_WARMUP_ITER)
endif
ifneq ($$(MICRO_WARMUP_TIME), )
$1_MICRO_WARMUP_TIME := -w $$(MICRO_WARMUP_TIME)
endif
run-test-$1:
$$(call LogWarn)
$$(call LogWarn, Running test '$$($1_TEST)')
$$(call MakeDir, $$($1_TEST_RESULTS_DIR) $$($1_TEST_SUPPORT_DIR))
$$(call ExecuteWithLog, $$($1_TEST_SUPPORT_DIR)/micro, \
$$($1_MICRO_TEST_JDK)/bin/java $$($1_MICRO_JAVA_OPTIONS) -jar $$($1_MICRO_BENCHMARKS_JAR) \
$$($1_MICRO_ITER) $$($1_MICRO_FORK) $$($1_MICRO_TIME) \
$$($1_MICRO_WARMUP_ITER) $$($1_MICRO_WARMUP_TIME) \
$$($1_MICRO_VM_OPTIONS) $$($1_MICRO_BASIC_OPTIONS) $$(MICRO_OPTIONS) \
$$($1_TEST_NAME) \
> >($(TEE) $$($1_TEST_RESULTS_DIR)/micro.txt) \
&& $$(ECHO) $$$$? > $$($1_EXITCODE) \
|| $$(ECHO) $$$$? > $$($1_EXITCODE) \
)
$1_RESULT_FILE := $$($1_TEST_RESULTS_DIR)/micro.txt
parse-test-$1: run-test-$1
$$(call LogWarn, Finished running test '$$($1_TEST)')
$$(call LogWarn, Test report is stored in $$(strip \
$$(subst $$(TOPDIR)/, , $$($1_TEST_RESULTS_DIR))))
$$(if $$(wildcard $$($1_EXITCODE)), \
$$(eval $1_EXIT_CODE := $$(shell $$(CAT) $$($1_EXITCODE))) \
$$(if $$(filter 0, $$($1_EXIT_CODE)), \
$$(eval $1_PASSED := 1) \
$$(eval $1_ERROR := 0) \
, \
$$(eval $1_PASSED := 0) \
$$(eval $1_ERROR := 1) \
) \
$$(eval $1_FAILED := 0) \
$$(eval $1_TOTAL := $$(shell \
$$(EXPR) $$($1_PASSED) + $$($1_ERROR))) \
, \
$$(eval $1_PASSED := 0) \
$$(eval $1_FAILED := 0) \
$$(eval $1_ERROR := 1) \
$$(eval $1_TOTAL := 1) \
)
$1: run-test-$1 parse-test-$1
TARGETS += $1
endef
################################################################################
### Rules for Jtreg
# Helper function for SetupRunJtregTest. Set a JTREG_* variable from, in order:
@@ -447,12 +742,11 @@ define SetupRunJtregTestBody
$1_TEST_NAME := $$(strip $$(patsubst jtreg:%, %, $$($1_TEST)))
$1_COMPONENT := \
$1_TEST_ROOT := \
$$(strip $$(foreach root, $$(JTREG_TESTROOTS), \
$$(if $$(filter $$(root)%, $$(JTREG_TOPDIR)/$$($1_TEST_NAME)), \
$$(lastword $$(subst /, $$(SPACE), $$(root))) \
) \
$$(if $$(filter $$(root)%, $$(JTREG_TOPDIR)/$$($1_TEST_NAME)), $$(root)) \
))
$1_COMPONENT := $$(lastword $$(subst /, $$(SPACE), $$($1_TEST_ROOT)))
# This will work only as long as just hotspot has the additional "jtreg" directory
ifeq ($$($1_COMPONENT), jtreg)
$1_COMPONENT := hotspot
@@ -475,11 +769,12 @@ define SetupRunJtregTestBody
$$(eval $$(call SetJtregValue,$1,JTREG_BASIC_OPTIONS))
$$(eval $$(call SetJtregValue,$1,JTREG_PROBLEM_LIST))
# Only the problem list for the current test root should be used.
$1_JTREG_PROBLEM_LIST := $$(filter $$($1_TEST_ROOT)%, $$($1_JTREG_PROBLEM_LIST))
ifneq ($(TEST_JOBS), 0)
# User has specified TEST_JOBS, use that as fallback default
$$(eval $$(call SetJtregValue,$1,JTREG_JOBS,$$(TEST_JOBS)))
else
# Use JOBS as default (except for hotspot)
$$(eval $$(call SetJtregValue,$1,JTREG_JOBS,$$(JOBS)))
endif
@@ -487,7 +782,12 @@ define SetupRunJtregTestBody
# we may end up with a lot of JVM's
$1_JTREG_MAX_RAM_PERCENTAGE := $$(shell $$(EXPR) 25 / $$($1_JTREG_JOBS))
JTREG_TIMEOUT ?= 4
# SPARC is in general slower per core so need to scale up timeouts a bit.
ifeq ($(OPENJDK_TARGET_CPU_ARCH), sparc)
JTREG_TIMEOUT_FACTOR ?= 8
else
JTREG_TIMEOUT_FACTOR ?= 4
endif
JTREG_VERBOSE ?= fail,error,summary
JTREG_RETAIN ?= fail,error
@@ -498,10 +798,10 @@ define SetupRunJtregTestBody
$1_JTREG_BASIC_OPTIONS += -$$($1_JTREG_TEST_MODE) \
-verbose:$$(JTREG_VERBOSE) -retain:$$(JTREG_RETAIN) \
-concurrency:$$($1_JTREG_JOBS) -timeoutFactor:$$(JTREG_TIMEOUT) \
-concurrency:$$($1_JTREG_JOBS) -timeoutFactor:$$(JTREG_TIMEOUT_FACTOR) \
-vmoption:-XX:MaxRAMPercentage=$$($1_JTREG_MAX_RAM_PERCENTAGE)
$1_JTREG_BASIC_OPTIONS += -automatic -keywords:\!ignore -ignore:quiet
$1_JTREG_BASIC_OPTIONS += -automatic -ignore:quiet
# Make it possible to specify the JIB_DATA_DIR for tests using the
# JIB Artifact resolver
@@ -531,8 +831,16 @@ define SetupRunJtregTestBody
$1_JTREG_BASIC_OPTIONS += $$(addprefix -exclude:, $$($1_JTREG_PROBLEM_LIST))
endif
ifneq ($$(JIB_JAR), )
$1_JTREG_BASIC_OPTIONS += -cpa:$$(JIB_JAR)
ifneq ($$(JTREG_EXTRA_PROBLEM_LISTS), )
# Accept both absolute paths as well as relative to the current test root.
$1_JTREG_BASIC_OPTIONS += $$(addprefix -exclude:, $$(wildcard \
$$(JTREG_EXTRA_PROBLEM_LISTS) \
$$(addprefix $$($1_TEST_ROOT)/, $$(JTREG_EXTRA_PROBLEM_LISTS)) \
))
endif
ifneq ($$(JIB_HOME), )
$1_JTREG_BASIC_OPTIONS += -e:JIB_HOME=$$(JIB_HOME)
endif
$1_JTREG_BASIC_OPTIONS += -e:TEST_IMAGE_GRAAL_DIR=${TEST_IMAGE_DIR}/hotspot/jtreg/graal
@@ -541,10 +849,32 @@ define SetupRunJtregTestBody
$1_JTREG_LAUNCHER_OPTIONS += -Djava.library.path="$(JTREG_FAILURE_HANDLER_DIR)"
endif
ifneq ($$(JTREG_KEYWORDS), )
# The keywords string may contain problematic characters and may be quoted
# already when it arrives here. Remove any existing quotes and replace them
# with one set of single quotes.
$1_JTREG_KEYWORDS := \
$$(strip $$(subst $$(SQUOTE),,$$(subst $$(DQUOTE),,$$(JTREG_KEYWORDS))))
ifneq ($$($1_JTREG_KEYWORDS), )
$1_JTREG_BASIC_OPTIONS += -k:'$$($1_JTREG_KEYWORDS)'
endif
endif
ifneq ($$(JTREG_AOT_MODULES), )
$$(eval $$(call SetupAot, $1, \
MODULES := $$(JTREG_AOT_MODULES), \
VM_OPTIONS := $$(JTREG_VM_OPTIONS) $$(JTREG_JAVA_OPTIONS), \
))
endif
ifneq ($$($1_AOT_OPTIONS), )
$1_JTREG_BASIC_OPTIONS += -vmoptions:"$$($1_AOT_OPTIONS)"
endif
clean-workdir-$1:
$$(RM) -r $$($1_TEST_SUPPORT_DIR)
run-test-$1: clean-workdir-$1
run-test-$1: clean-workdir-$1 $$($1_AOT_TARGETS)
$$(call LogWarn)
$$(call LogWarn, Running test '$$($1_TEST)')
$$(call MakeDir, $$($1_TEST_RESULTS_DIR) $$($1_TEST_SUPPORT_DIR))
@@ -615,14 +945,14 @@ define SetupRunSpecialTestBody
$1_TEST_ARGS :=
endif
ifeq ($$($1_TEST_NAME), hotspot-internal)
$1_TEST_COMMAND_LINE := \
$$(JDK_IMAGE_DIR)/bin/java -XX:+ExecuteInternalVMTests \
-XX:+ShowMessageBoxOnError -version
else ifeq ($$($1_TEST_NAME), failure-handler)
$1_TEST_COMMAND_LINE := \
($(CD) $(TOPDIR)/make/test && $(MAKE) $(MAKE_ARGS) -f \
BuildFailureHandler.gmk test)
ifeq ($$($1_TEST_NAME), failure-handler)
ifeq ($(BUILD_FAILURE_HANDLER), true)
$1_TEST_COMMAND_LINE := \
($(CD) $(TOPDIR)/make/test && $(MAKE) $(MAKE_ARGS) -f \
BuildFailureHandler.gmk test)
else
$$(error Cannot test failure handler if it is not built)
endif
else ifeq ($$($1_TEST_NAME), make)
$1_TEST_COMMAND_LINE := \
($(CD) $(TOPDIR)/test/make && $(MAKE) $(MAKE_ARGS) -f \
@@ -631,7 +961,7 @@ define SetupRunSpecialTestBody
$$(error Invalid special test specification: $$($1_TEST_NAME))
endif
run-test-$1:
run-test-$1: $(TEST_PREREQS)
$$(call LogWarn)
$$(call LogWarn, Running test '$$($1_TEST)')
$$(call MakeDir, $$($1_TEST_RESULTS_DIR) $$($1_TEST_SUPPORT_DIR))
@@ -668,6 +998,9 @@ endef
UseGtestTestHandler = \
$(if $(filter gtest:%, $1), true)
UseMicroTestHandler = \
$(if $(filter micro:%, $1), true)
UseJtregTestHandler = \
$(if $(filter jtreg:%, $1), true)
@@ -689,6 +1022,11 @@ $(foreach test, $(TESTS_TO_RUN), \
TEST := $(test), \
)) \
) \
$(if $(call UseMicroTestHandler, $(test)), \
$(eval $(call SetupRunMicroTest, $(TEST_ID), \
TEST := $(test), \
)) \
) \
$(if $(call UseJtregTestHandler, $(test)), \
$(eval $(call SetupRunJtregTest, $(TEST_ID), \
TEST := $(test), \

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2017, 2018, 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
@@ -49,10 +49,11 @@ TOPDIR := $(strip $(patsubst %/make/, %, $(dir $(makefile_path))))
# given.
# Note: No spaces are allowed around the arguments.
#
# $1: The name of the argument
# $1: The name of the variable
# $2: The default value, if any, or OPTIONAL (do not provide a default but
# do not exit if it is missing)
# $3: If NO_CHECK, disable checking for target file/directory existence
# If MKDIR, create the default directory
define SetupVariable
ifeq ($$($1), )
ifeq ($2, )
@@ -75,10 +76,17 @@ define SetupVariable
endif
# If $1 has a value (is not optional), and $3 is not set (to NO_CHECK),
# and if wildcard is empty, then complain that the file is missing.
ifeq ($$(strip $$(if $$($1), , OPTIONAL) $$(wildcard $$($1)) $3), )
$$(info Error: Prebuilt variable $1 points to missing file/directory:)
$$(info '$$($1)')
$$(error Cannot continue.)
ifeq ($3, MKDIR)
ifneq ($$(findstring $$(LOG), info debug trace), )
$$(info Creating directory for $1)
endif
$$(shell mkdir -p $$($1))
else ifneq ($3, NO_CHECK)
ifeq ($$(strip $$(if $$($1), , OPTIONAL) $$(wildcard $$($1))), )
$$(info Error: Prebuilt variable $1 points to missing file/directory:)
$$(info '$$($1)')
$$(error Cannot continue.)
endif
endif
endef
@@ -87,12 +95,12 @@ endef
# $1: The output file name
# $2..$N: The lines to output to the file
define CreateNewSpec
$(if $(strip $(26)), \
$(if $(strip $(31)), \
$(error Internal makefile error: \
Too many arguments to macro, please update CreateNewSpec in RunTestsPrebuilt.gmk) \
) \
$(shell $(RM) $1) \
$(foreach i, $(call sequence, 2, 25), \
$(foreach i, $(call sequence, 2, 30), \
$(if $(strip $($i)), \
$(call AppendFile, $(strip $($i)), $1) \
) \
@@ -106,14 +114,14 @@ endef
# Verify that user has given correct additional input.
# These variables are absolutely necessary
$(eval $(call SetupVariable,OUTPUTDIR))
$(eval $(call SetupVariable,OUTPUTDIR,$(TOPDIR)/build/run-test-prebuilt,MKDIR))
$(eval $(call SetupVariable,BOOT_JDK))
$(eval $(call SetupVariable,JT_HOME))
# These can have default values based on the ones above
$(eval $(call SetupVariable,JDK_IMAGE_DIR,$(OUTPUTDIR)/images/jdk))
$(eval $(call SetupVariable,TEST_IMAGE_DIR,$(OUTPUTDIR)/images/test))
$(eval $(call SetupVariable,SYMBOLS_IMAGE_DIR,$(OUTPUTDIR)/images/symbols))
$(eval $(call SetupVariable,SYMBOLS_IMAGE_DIR,$(OUTPUTDIR)/images/symbols,NO_CHECK))
# Provide default values for tools that we need
$(eval $(call SetupVariable,MAKE,make,NO_CHECK))
@@ -202,8 +210,8 @@ endif
ifeq ($(OPENJDK_TARGET_OS), windows)
ifeq ($(wildcard $(TEST_IMAGE_DIR)/bin/fixpath.exe), )
$$(info Error: fixpath is missing from test image '$(TEST_IMAGE_DIR)')
$$(error Cannot continue.)
$(info Error: fixpath is missing from test image '$(TEST_IMAGE_DIR)')
$(error Cannot continue.)
endif
FIXPATH := $(TEST_IMAGE_DIR)/bin/fixpath.exe -c
PATH_SEP:=;
@@ -212,17 +220,62 @@ else
PATH_SEP:=:
endif
# Check number of cores
# Check number of cores and memory in MB
ifeq ($(OPENJDK_TARGET_OS), linux)
NUM_CORES := $(shell $(CAT) /proc/cpuinfo | $(GREP) -c processor)
NUM_CORES := $(shell $(CAT) /proc/cpuinfo | $(GREP) -c processor)
MEMORY_SIZE := $(shell \
$(EXPR) `$(CAT) /proc/meminfo | $(GREP) MemTotal | $(AWK) '{print $$2}'` / 1024 \
)
else ifeq ($(OPENJDK_TARGET_OS), macosx)
NUM_CORES := $(shell /usr/sbin/sysctl -n hw.ncpu)
NUM_CORES := $(shell /usr/sbin/sysctl -n hw.ncpu)
MEMORY_SIZE := $(shell $(EXPR) `/usr/sbin/sysctl -n hw.memsize` / 1024 / 1024)
else ifeq ($(OPENJDK_TARGET_OS), solaris)
NUM_CORES := $(shell LC_MESSAGES=C /usr/sbin/psrinfo -v | $(GREP) -c on-line)
NUM_CORES := $(shell LC_MESSAGES=C /usr/sbin/psrinfo -v | $(GREP) -c on-line)
MEMORY_SIZE := $(shell \
/usr/sbin/prtconf 2> /dev/null | $(GREP) "^Memory [Ss]ize" | $(AWK) '{print $$3}' \
)
else ifeq ($(OPENJDK_TARGET_OS), windows)
NUM_CORES := $(NUMBER_OF_PROCESSORS)
NUM_CORES := $(NUMBER_OF_PROCESSORS)
MEMORY_SIZE := $(shell \
$(EXPR) `wmic computersystem get totalphysicalmemory -value | $(GREP) = \
| $(CUT) -d "=" -f 2-` / 1024 / 1024 \
)
endif
ifeq ($(NUM_CORES), )
$(warn Could not find number of CPUs, assuming 1)
NUM_CORES := 1
endif
ifeq ($(MEMORY_SIZE), )
$(warn Could not find memory size, assuming 1024 MB)
MEMORY_SIZE := 1024
endif
# Setup LD for AOT support
ifneq ($(DEVKIT_HOME), )
ifeq ($(OPENJDK_TARGET_OS), windows)
LD := $(DEVKIT_HOME)/VC/bin/x64/link
LIBRARY_PREFIX :=
SHARED_LIBRARY_SUFFIX := .dll
EXE_SUFFIX := .exe
else ifeq ($(OPENJDK_TARGET_OS), linux)
LD := $(DEVKIT_HOME)/bin/ld
LIBRARY_PREFIX := lib
SHARED_LIBRARY_SUFFIX := .so
EXE_SUFFIX :=
else ifeq ($(OPENJDK_TARGET_OS), macosx)
LD := $(DEVKIT_HOME)/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
LIBRARY_PREFIX := lib
SHARED_LIBRARY_SUFFIX := .dylib
EXE_SUFFIX :=
else ifeq ($(OPENJDK_TARGET_OS), solaris)
# Prefer system linker for AOT on Solaris.
LD := ld
LIBRARY_PREFIX := lib
SHARED_LIBRARY_SUFFIX := .so
EXE_SUFFIX :=
endif
else
NUM_CORES := 1
LD := ld
endif
################################################################################
@@ -260,6 +313,11 @@ $(call CreateNewSpec, $(NEW_SPEC), \
OPENJDK_TARGET_CPU_BITS := $(OPENJDK_TARGET_CPU_BITS), \
OPENJDK_TARGET_CPU_ENDIAN := $(OPENJDK_TARGET_CPU_ENDIAN), \
NUM_CORES := $(NUM_CORES), \
MEMORY_SIZE := $(MEMORY_SIZE), \
LD := $(LD), \
LIBRARY_PREFIX := $(LIBRARY_PREFIX), \
SHARED_LIBRARY_SUFFIX := $(SHARED_LIBRARY_SUFFIX), \
EXE_SUFFIX := $(EXE_SUFFIX), \
include $(TOPDIR)/make/RunTestsPrebuiltSpec.gmk, \
$(CUSTOM_NEW_SPEC_LINE), \
)
@@ -276,9 +334,6 @@ run-test-prebuilt:
@$(RM) -f $(MAKESUPPORT_OUTPUTDIR)/exit-with-error
@cd $(TOPDIR) && $(MAKE) $(MAKE_ARGS) -f make/RunTests.gmk run-test \
TEST="$(TEST)"
@if test -f $(MAKESUPPORT_OUTPUTDIR)/exit-with-error ; then \
exit 1 ; \
fi
all: run-test-prebuilt

View File

@@ -124,7 +124,7 @@ JLINK := $(FIXPATH) $(JLINK_CMD)
JMOD := $(FIXPATH) $(JMOD_CMD)
JARSIGNER := $(FIXPATH) $(JARSIGNER_CMD)
BUILD_JAVA := $(JAVA)
BUILD_JAVA := $(JDK_IMAGE_DIR)/bin/JAVA
################################################################################
# Some common tools. Assume most common name and no path.
AWK := awk
@@ -172,3 +172,21 @@ UNZIP := unzip
EXPR := expr
FILE := file
HG := hg
# On Solaris gnu versions of some tools are required.
ifeq ($(OPENJDK_BUILD_OS), solaris)
AWK := gawk
GREP := ggrep
EGREP := ggrep -E
FGREP := grep -F
SED := gsed
TAR := gtar
endif
ifeq ($(OPENJDK_BUILD_OS), windows)
CYGPATH := cygpath
endif
################################################################################
# Simple macros from spec.gmk.in
SHARED_LIBRARY=$(LIBRARY_PREFIX)$1$(SHARED_LIBRARY_SUFFIX)

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2016, 2018, 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
@@ -23,33 +23,43 @@
# questions.
#
default: all
include $(SPEC)
include MakeBase.gmk
$(eval $(call IncludeCustomExtension, SourceRevision.gmk))
$(eval $(call IncludeCustomExtension, SourceRevision-pre.gmk))
################################################################################
# Keep track of what source revision is used to create the build, by creating
# a tracker file in the output directory. This tracker file is included in the
# image, and can be used to recreate the source revision used.
# source image, and can be used to recreate the source revision used.
#
# We're either building directly from a mercurial forest, and if so, use the
# current revision from mercurial. Otherwise, we are building from a source
# bundle. As a part of creating this source bundle, the current mercurial
# revisions of all repos will be stored in a file in the top dir, which is then
# used when creating the tracker file.
# We're either building directly from an SCM repository, and if so, use the
# current revision from that SCM. Otherwise, we are building from a source
# bundle. As a part of creating this source bundle, the current SCM revisions of
# all repos will be stored in a file in the top dir, which is then used when
# creating the tracker file.
STORED_SOURCE_REVISION := $(TOPDIR)/.src-rev
# Are we using mercurial?
USE_SCM := false
ifneq ($(and $(HG), $(wildcard $(TOPDIR)/.hg)), )
USE_SCM := true
SCM_DIR := .hg
ID_COMMAND := $(PRINTF) "hg:%s" "$$($(HG) id -i)"
else ifneq ($(and $(GIT), $(wildcard $(TOPDIR)/.git)), )
USE_SCM := true
SCM_DIR := .git
ID_COMMAND := $(PRINTF) "git:%s%s\n" \
"$$(git log -n1 --format=%H | cut -c1-12)" \
"$$(if test -n "$$(git status --porcelain)"; then printf '+'; fi)"
endif
ifeq ($(USE_SCM), true)
# Verify that the entire forest is consistent
$(foreach repo, $(call FindAllReposRel), \
$(if $(wildcard $(TOPDIR)/$(repo)/.hg),, \
$(error Inconsistent revision control: $(repo) is missing .hg directory)) \
$(if $(wildcard $(TOPDIR)/$(repo)/$(SCM_DIR)),, \
$(error Inconsistent revision control: $(repo) is missing $(SCM_DIR) directory)) \
)
# Replace "." with "_top" and "/" with "-"
@@ -58,7 +68,9 @@ ifneq ($(and $(HG), $(wildcard $(TOPDIR)/.hg)), )
################################################################################
# SetupGetRevisionForRepo defines a make rule for creating a file containing
# the name of the repository and the output of "hg id" for that repository.
# the name of the repository and the output of the scm command for that
# repository.
#
# Argument 1 is the relative path to the repository from the top dir.
#
SetupGetRevisionForRepo = $(NamedParamsMacroTemplate)
@@ -68,7 +80,7 @@ ifneq ($(and $(HG), $(wildcard $(TOPDIR)/.hg)), )
$$(SUPPORT_OUTPUTDIR)/src-rev/$$($1_FILENAME): FRC
$$(call MakeDir, $$(@D))
$$(ECHO) $$(strip $1):`$$(HG) id -i --repository $$($1_REPO_PATH)` > $$@
$$(ECHO) $$(strip $1):`$$(CD) $$($1_REPO_PATH) && $$(ID_COMMAND)` > $$@
REPO_REVISIONS += $$(SUPPORT_OUTPUTDIR)/src-rev/$$($1_FILENAME)
endef
@@ -94,40 +106,58 @@ ifneq ($(and $(HG), $(wildcard $(TOPDIR)/.hg)), )
$(eval $(call CreateSourceRevisionFile, $(STORED_SOURCE_REVISION)))
store-source-revision: $(STORED_SOURCE_REVISION)
scm-store-source-revision: $(STORED_SOURCE_REVISION)
$(eval $(call CreateSourceRevisionFile, $(SOURCE_REVISION_TRACKER)))
create-source-revision-tracker: $(SOURCE_REVISION_TRACKER)
scm-create-source-revision-tracker: $(SOURCE_REVISION_TRACKER)
STORE_SOURCE_REVISION_TARGET := scm-store-source-revision
CREATE_SOURCE_REVISION_TRACKER_TARGET := scm-create-source-revision-tracker
.PHONY: scm-store-source-revision scm-create-source-revision-tracker
else
# Not using HG
# Not using any SCM
ifneq ($(wildcard $(STORED_SOURCE_REVISION)), )
# We have a stored source revision (.src-rev)
store-source-revision:
$(call LogInfo, No mercurial configuration present$(COMMA) not updating .src-rev)
src-store-source-revision:
$(call LogInfo, No SCM configuration present$(COMMA) not updating .src-rev)
$(SOURCE_REVISION_TRACKER): $(STORED_SOURCE_REVISION)
$(install-file)
create-source-revision-tracker: $(SOURCE_REVISION_TRACKER)
src-create-source-revision-tracker: $(SOURCE_REVISION_TRACKER)
else
# We don't have a stored source revision. Can't do anything, really.
store-source-revision:
$(call LogWarn, Error: No mercurial configuration present$(COMMA) cannot create .src-rev)
src-store-source-revision:
$(call LogWarn, Error: No SCM configuration present$(COMMA) cannot create .src-rev)
exit 2
create-source-revision-tracker:
$(call LogWarn, Warning: No mercurial configuration present and no .src-rev)
src-create-source-revision-tracker:
$(call LogWarn, Warning: No SCM configuration present and no .src-rev)
endif
STORE_SOURCE_REVISION_TARGET := src-store-source-revision
CREATE_SOURCE_REVISION_TRACKER_TARGET := src-create-source-revision-tracker
.PHONY: src-store-source-revision src-create-source-revision-tracker
endif
all: store-source-revision create-source-revision-tracker
################################################################################
$(eval $(call IncludeCustomExtension, SourceRevision-post.gmk))
################################################################################
store-source-revision: $(STORE_SOURCE_REVISION_TARGET)
create-source-revision-tracker: $(CREATE_SOURCE_REVISION_TRACKER_TARGET)
FRC: # Force target
.PHONY: all store-source-revision create-source-revision-tracker
.PHONY: store-source-revision create-source-revision-tracker

View File

@@ -47,9 +47,6 @@ TOOL_COMPILEFONTCONFIG = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_cla
TOOL_COMPILEPROPERTIES = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
build.tools.compileproperties.CompileProperties
TOOL_JARREORDER = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
build.tools.jarreorder.JarReorder
TOOL_GENERATECHARACTER = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
build.tools.generatecharacter.GenerateCharacter
@@ -67,9 +64,6 @@ TOOL_GENERATEBREAKITERATORDATA = $(JAVA_SMALL) \
TOOL_GENERATECURRENCYDATA = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
build.tools.generatecurrencydata.GenerateCurrencyData
TOOL_HASHER = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
build.tools.hasher.Hasher
TOOL_TZDB = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
build.tools.tzdb.TzdbZoneRulesCompiler
@@ -109,10 +103,6 @@ TOOL_CLDRCONVERTER = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes
TOOL_GENERATELSREQUIVMAPS = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
build.tools.generatelsrequivmaps.EquivMapsGenerator
TOOL_GENMODULESXML = $(JAVA_SMALL) $(INTERIM_LANGTOOLS_BOOTCLASSPATH) \
-cp $(call PathList, $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes) \
build.tools.module.GenJdepsModulesXml
TOOL_GENMODULEINFOSOURCE = $(JAVA_SMALL) $(INTERIM_LANGTOOLS_BOOTCLASSPATH) \
-cp $(call PathList, $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes) \
build.tools.module.GenModuleInfoSource
@@ -126,4 +116,11 @@ TOOL_PUBLICSUFFIXLIST = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_clas
##########################################################################################
# Executable javascript filter for man page generation using pandoc.
PANDOC_TROFF_MANPAGE_FILTER := $(BUILDTOOLS_OUTPUTDIR)/manpages/pandoc-troff-manpage-filter
PANDOC_HTML_MANPAGE_FILTER := $(BUILDTOOLS_OUTPUTDIR)/manpages/pandoc-html-manpage-filter
##########################################################################################
endif # _TOOLS_GMK

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2018, 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

View File

@@ -168,7 +168,7 @@ AC_DEFUN([ADD_JVM_ARG_IF_OK],
[
$ECHO "Check if jvm arg is ok: $1" >&AS_MESSAGE_LOG_FD
$ECHO "Command: $3 $1 -version" >&AS_MESSAGE_LOG_FD
OUTPUT=`$3 $1 -version 2>&1`
OUTPUT=`$3 $1 $USER_BOOT_JDK_OPTIONS -version 2>&1`
FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn`
FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""`
if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
@@ -223,6 +223,8 @@ AC_DEFUN([BASIC_FIXUP_PATH],
BASIC_FIXUP_PATH_CYGWIN($1)
elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
BASIC_FIXUP_PATH_MSYS($1)
elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
BASIC_FIXUP_PATH_WSL($1)
else
# We're on a unix platform. Hooray! :)
path="[$]$1"
@@ -270,6 +272,8 @@ AC_DEFUN([BASIC_FIXUP_EXECUTABLE],
BASIC_FIXUP_EXECUTABLE_CYGWIN($1)
elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
BASIC_FIXUP_EXECUTABLE_MSYS($1)
elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
BASIC_FIXUP_EXECUTABLE_WSL($1)
else
# We're on a unix platform. Hooray! :)
# First separate the path from the arguments. This will split at the first
@@ -569,7 +573,8 @@ AC_DEFUN_ONCE([BASIC_SETUP_FUNDAMENTAL_TOOLS],
BASIC_REQUIRE_PROGS(GZIP, pigz gzip)
BASIC_REQUIRE_PROGS(LN, ln)
BASIC_REQUIRE_PROGS(LS, ls)
BASIC_REQUIRE_PROGS(MKDIR, mkdir)
# gmkdir is known to be safe for concurrent invocations with -p flag.
BASIC_REQUIRE_PROGS(MKDIR, [gmkdir mkdir])
BASIC_REQUIRE_PROGS(MKTEMP, mktemp)
BASIC_REQUIRE_PROGS(MV, mv)
BASIC_REQUIRE_PROGS(NAWK, [nawk gawk awk])
@@ -606,10 +611,21 @@ AC_DEFUN_ONCE([BASIC_SETUP_FUNDAMENTAL_TOOLS],
# These are not required on all platforms
BASIC_PATH_PROGS(CYGPATH, cygpath)
BASIC_PATH_PROGS(WSLPATH, wslpath)
BASIC_PATH_PROGS(DF, df)
BASIC_PATH_PROGS(CPIO, [cpio bsdcpio])
BASIC_PATH_PROGS(NICE, nice)
BASIC_PATH_PROGS(PANDOC, pandoc)
if test -n "$PANDOC"; then
ENABLE_PANDOC="true"
else
ENABLE_PANDOC="false"
fi
AC_SUBST(ENABLE_PANDOC)
BASIC_PATH_PROGS(LSB_RELEASE, lsb_release)
BASIC_PATH_PROGS(CMD, [cmd.exe /mnt/c/Windows/System32/cmd.exe])
])
###############################################################################
@@ -630,11 +646,14 @@ AC_DEFUN_ONCE([BASIC_SETUP_PATHS],
if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
PATH_SEP=";"
EXE_SUFFIX=".exe"
BASIC_CHECK_PATHS_WINDOWS
else
PATH_SEP=":"
EXE_SUFFIX=""
fi
AC_SUBST(PATH_SEP)
AC_SUBST(EXE_SUFFIX)
# We get the top-level directory from the supporting wrappers.
AC_MSG_CHECKING([for top-level directory])
@@ -862,7 +881,7 @@ AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
# Create a default ./build/target-variant-debuglevel output root.
if test "x${CONF_NAME}" = x; then
AC_MSG_RESULT([in default location])
CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}"
CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}"
else
AC_MSG_RESULT([in build directory with custom name])
fi
@@ -979,6 +998,8 @@ AC_DEFUN([BASIC_CHECK_MAKE_VERSION],
MAKE_EXPECTED_ENV='cygwin'
elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
MAKE_EXPECTED_ENV='msys'
elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
MAKE_EXPECTED_ENV='x86_64-pc-linux-gnu'
else
AC_MSG_ERROR([Unknown Windows environment])
fi
@@ -1190,6 +1211,7 @@ AC_DEFUN_ONCE([BASIC_SETUP_COMPLEX_TOOLS],
BASIC_PATH_PROGS(READELF, [greadelf readelf])
BASIC_PATH_PROGS(DOT, dot)
BASIC_PATH_PROGS(HG, hg)
BASIC_PATH_PROGS(GIT, git)
BASIC_PATH_PROGS(STAT, stat)
BASIC_PATH_PROGS(TIME, time)
BASIC_PATH_PROGS(FLOCK, flock)
@@ -1265,7 +1287,18 @@ AC_DEFUN([BASIC_CHECK_DIR_ON_LOCAL_DISK],
if $DF $DF_LOCAL_ONLY_OPTION $1 > /dev/null 2>&1; then
$2
else
$3
# In WSL, local Windows drives are considered remote by df, but we are
# required to build into a directory accessible from windows, so consider
# them local here.
if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
if $DF $1 | $GREP -q "^[[A-Z]]:"; then
$2
else
$3
fi
else
$3
fi
fi
fi
])

View File

@@ -32,6 +32,13 @@ AC_DEFUN([BASIC_WINDOWS_REWRITE_AS_UNIX_PATH],
elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
$1="$unix_path"
elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
# wslpath does not check the input, only call if an actual windows path was
# given.
if $ECHO "$windows_path" | $GREP -q ["^[a-zA-Z]:[\\\\/]"]; then
unix_path=`$WSLPATH -u "$windows_path"`
$1="$unix_path"
fi
fi
])
@@ -44,6 +51,9 @@ AC_DEFUN([BASIC_WINDOWS_REWRITE_AS_WINDOWS_MIXED_PATH],
elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
windows_path=`cmd //c echo $unix_path`
$1="$windows_path"
elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
windows_path=`$WSLPATH -m "$unix_path"`
$1="$windows_path"
fi
])
@@ -100,6 +110,31 @@ AC_DEFUN([BASIC_MAKE_WINDOWS_SPACE_SAFE_MSYS],
fi
])
# Helper function which possibly converts a path using DOS-style short mode.
# If so, the updated path is stored in $new_path.
# $1: The path to check
AC_DEFUN([BASIC_MAKE_WINDOWS_SPACE_SAFE_WSL],
[
input_path="$1"
# Check if we need to convert this using DOS-style short mode. If the path
# contains just simple characters, use it. Otherwise (spaces, weird characters),
# take no chances and rewrite it.
# Note: m4 eats our [], so we need to use @<:@ and @:>@ instead.
has_forbidden_chars=`$ECHO "$input_path" | $GREP [[^-_/:a-zA-Z0-9\\.]]`
if test "x$has_forbidden_chars" != x; then
# Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
TOPDIR_windows="$TOPDIR"
BASIC_WINDOWS_REWRITE_AS_WINDOWS_MIXED_PATH([TOPDIR_windows])
# First convert to Windows path to make input valid for cmd
BASIC_WINDOWS_REWRITE_AS_WINDOWS_MIXED_PATH([input_path])
new_path=`$CMD /c $TOPDIR_windows/make/scripts/windowsShortName.bat "$input_path" \
| $SED -e 's|\r||g' \
| $TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
# Rewrite back to unix style
BASIC_WINDOWS_REWRITE_AS_UNIX_PATH([new_path])
fi
])
# FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
# and could probably be heavily simplified. However, all changes in this
# area tend to need lot of testing in different scenarios, and in lack of
@@ -157,6 +192,23 @@ AC_DEFUN([BASIC_FIXUP_PATH_MSYS],
all_fixpath_prefixes=("${all_fixpath_prefixes@<:@@@:>@}" "${new_path:0:10}")
])
AC_DEFUN([BASIC_FIXUP_PATH_WSL],
[
# Input might be given as Windows format, start by converting to
# unix format.
new_path="[$]$1"
BASIC_WINDOWS_REWRITE_AS_UNIX_PATH([new_path])
# Call helper function which possibly converts this using DOS-style short mode.
# If so, the updated path is stored in $new_path.
BASIC_MAKE_WINDOWS_SPACE_SAFE_WSL([$new_path])
if test "x$path" != "x$new_path"; then
$1="$new_path"
AC_MSG_NOTICE([Rewriting $1 to "$new_path"])
fi
])
AC_DEFUN([BASIC_FIXUP_EXECUTABLE_CYGWIN],
[
# First separate the path from the arguments. This will split at the first
@@ -305,6 +357,79 @@ AC_DEFUN([BASIC_FIXUP_EXECUTABLE_MSYS],
fi
])
AC_DEFUN([BASIC_FIXUP_EXECUTABLE_WSL],
[
# First separate the path from the arguments. This will split at the first
# space.
complete="[$]$1"
path="${complete%% *}"
tmp="$complete EOL"
arguments="${tmp#* }"
# Input might be given as Windows format, start by converting to
# unix format.
new_path="$path"
BASIC_WINDOWS_REWRITE_AS_UNIX_PATH([new_path])
# Now try to locate executable using which
new_path_bak="$new_path"
new_path=`$WHICH "$new_path" 2> /dev/null`
# bat and cmd files are not considered executable in WSL
if test "x$new_path" = x \
&& test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
&& test "x`$LS \"$path\" 2>/dev/null`" != x; then
new_path="$new_path_back"
fi
if test "x$new_path" = x; then
# Oops. Which didn't find the executable.
# The splitting of arguments from the executable at a space might have been incorrect,
# since paths with space are more likely in Windows. Give it another try with the whole
# argument.
path="$complete"
arguments="EOL"
new_path="$path"
BASIC_WINDOWS_REWRITE_AS_UNIX_PATH([new_path])
new_path_bak="$new_path"
new_path=`$WHICH "$new_path" 2> /dev/null`
# bat and cmd files are not considered executable in WSL
if test "x$new_path" = x \
&& test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
&& test "x`$LS \"$path\" 2>/dev/null`" != x; then
new_path="$new_path_bak"
fi
if test "x$new_path" = x; then
# It's still not found. Now this is an unrecoverable error.
AC_MSG_NOTICE([The path of $1, which resolves as "$complete", is not found.])
has_space=`$ECHO "$complete" | $GREP " "`
if test "x$has_space" != x; then
AC_MSG_NOTICE([You might be mixing spaces in the path and extra arguments, which is not allowed.])
fi
AC_MSG_ERROR([Cannot locate the the path of $1])
fi
fi
# In WSL, suffixes must be present for Windows executables
if test ! -f "$new_path"; then
# Try adding .exe or .cmd
if test -f "${new_path}.exe"; then
input_to_shortpath="${new_path}.exe"
elif test -f "${new_path}.cmd"; then
input_to_shortpath="${new_path}.cmd"
else
AC_MSG_NOTICE([The path of $1, which resolves as "$new_path", is invalid.])
AC_MSG_NOTICE([Neither "$new_path" nor "$new_path.exe/cmd" can be found])
AC_MSG_ERROR([Cannot locate the the path of $1])
fi
else
input_to_shortpath="$new_path"
fi
# Call helper function which possibly converts this using DOS-style short mode.
# If so, the updated path is stored in $new_path.
new_path="$input_to_shortpath"
BASIC_MAKE_WINDOWS_SPACE_SAFE_WSL([$input_to_shortpath])
])
# Setup basic configuration paths, and platform-specific stuff related to PATHs.
AC_DEFUN([BASIC_CHECK_PATHS_WINDOWS],
[
@@ -353,8 +478,28 @@ AC_DEFUN([BASIC_CHECK_PATHS_WINDOWS],
BASIC_WINDOWS_REWRITE_AS_UNIX_PATH(MSYS_ROOT_PATH)
AC_MSG_RESULT([$MSYS_ROOT_PATH])
WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
AC_MSG_CHECKING([Windows version])
# m4 replaces [ and ] so we use @<:@ and @:>@ instead
WINDOWS_VERSION=`$CMD /c ver.exe | $EGREP -o '(@<:@0-9@:>@+\.)+@<:@0-9@:>@+'`
AC_MSG_RESULT([$WINDOWS_VERSION])
AC_MSG_CHECKING([WSL kernel version])
WSL_KERNEL_VERSION=`$UNAME -v`
AC_MSG_RESULT([$WSL_KERNEL_VERSION])
AC_MSG_CHECKING([WSL kernel release])
WSL_KERNEL_RELEASE=`$UNAME -r`
AC_MSG_RESULT([$WSL_KERNEL_RELEASE])
AC_MSG_CHECKING([WSL distribution])
WSL_DISTRIBUTION=`$LSB_RELEASE -d | sed 's/Description:\t//'`
AC_MSG_RESULT([$WSL_DISTRIBUTION])
WINDOWS_ENV_VENDOR='WSL'
WINDOWS_ENV_VERSION="$WSL_DISTRIBUTION $WSL_KERNEL_VERSION $WSL_KERNEL_RELEASE (on Windows build $WINDOWS_VERSION)"
else
AC_MSG_ERROR([Unknown Windows environment. Neither cygwin nor msys was detected.])
AC_MSG_ERROR([Unknown Windows environment. Neither cygwin, msys, nor wsl was detected.])
fi
# Test if windows or unix (cygwin/msys) find is first in path.
@@ -395,6 +540,8 @@ AC_DEFUN_ONCE([BASIC_COMPILE_FIXPATH],
| tr ' ' '\n' | $GREP '^/./' | $SORT | $UNIQ`
fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'`
FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list"
elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.wsl; then
FIXPATH="$FIXPATH_BIN -w"
fi
FIXPATH_SRC_W="$FIXPATH_SRC"
FIXPATH_BIN_W="$FIXPATH_BIN"
@@ -412,6 +559,17 @@ AC_DEFUN_ONCE([BASIC_COMPILE_FIXPATH],
AC_MSG_ERROR([Could not create $FIXPATH_BIN])
fi
AC_MSG_RESULT([yes])
if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
OLD_WSLENV="$WSLENV"
WSLENV=`$ECHO $WSLENV | $SED 's/PATH\/l://'`
BASIC_APPEND_TO_PATH(WSLENV, "FIXPATH_PATH")
export WSLENV
export FIXPATH_PATH=$VS_PATH_WINDOWS
AC_MSG_NOTICE([FIXPATH_PATH is $FIXPATH_PATH])
AC_MSG_NOTICE([Rewriting WSLENV from $OLD_WSLENV to $WSLENV])
fi
AC_MSG_CHECKING([if fixpath.exe works])
cd $FIXPATH_DIR
$FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2018, 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
@@ -63,18 +63,29 @@ AC_DEFUN([BOOTJDK_DO_CHECK],
# If previous step claimed to have found a JDK, check it to see if it seems to be valid.
if test "x$BOOT_JDK_FOUND" = xmaybe; then
# Do we have a bin/java?
if test ! -x "$BOOT_JDK/bin/java"; then
if test ! -x "$BOOT_JDK/bin/java$EXE_SUFFIX"; then
AC_MSG_NOTICE([Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring])
BOOT_JDK_FOUND=no
else
# Do we have a bin/javac?
if test ! -x "$BOOT_JDK/bin/javac"; then
if test ! -x "$BOOT_JDK/bin/javac$EXE_SUFFIX"; then
AC_MSG_NOTICE([Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring])
AC_MSG_NOTICE([(This might be an JRE instead of an JDK)])
BOOT_JDK_FOUND=no
else
# Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java$EXE_SUFFIX" $USER_BOOT_JDK_OPTIONS -version 2>&1 | $HEAD -n 1`
if [ [[ "$BOOT_JDK_VERSION" =~ "Picked up" ]] ]; then
AC_MSG_NOTICE([You have _JAVA_OPTIONS or JAVA_TOOL_OPTIONS set. This can mess up the build. Please use --with-boot-jdk-jvmargs instead.])
AC_MSG_NOTICE([Java reports: "$BOOT_JDK_VERSION".])
AC_MSG_ERROR([Cannot continue])
fi
if [ [[ "$BOOT_JDK_VERSION" =~ "Unrecognized option" ]] ]; then
AC_MSG_NOTICE([The specified --with-boot-jdk-jvmargs is invalid for the tested java])
AC_MSG_NOTICE([Error message: "$BOOT_JDK_VERSION".])
AC_MSG_NOTICE([Please fix arguments, or point to an explicit boot JDK which accept these arguments])
AC_MSG_ERROR([Cannot continue])
fi
# Extra M4 quote needed to protect [] in grep expression.
[FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION \
@@ -90,7 +101,7 @@ AC_DEFUN([BOOTJDK_DO_CHECK],
AC_MSG_CHECKING([for Boot JDK])
AC_MSG_RESULT([$BOOT_JDK])
AC_MSG_CHECKING([Boot JDK version])
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '`
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java$EXE_SUFFIX" $USER_BOOT_JDK_OPTIONS -version 2>&1 | $TR '\n\r' ' '`
AC_MSG_RESULT([$BOOT_JDK_VERSION])
fi # end check jdk version
fi # end check javac
@@ -283,6 +294,11 @@ AC_DEFUN_ONCE([BOOTJDK_SETUP_BOOT_JDK],
AC_ARG_WITH(boot-jdk, [AS_HELP_STRING([--with-boot-jdk],
[path to Boot JDK (used to bootstrap build) @<:@probed@:>@])])
AC_ARG_WITH(boot-jdk-jvmargs, [AS_HELP_STRING([--with-boot-jdk-jvmargs],
[specify additional arguments to be passed to Boot JDK tools @<:@none@:>@])])
USER_BOOT_JDK_OPTIONS="$with_boot_jdk_jvmargs"
# We look for the Boot JDK through various means, going from more certain to
# more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
# we detected something (if so, the path to the jdk is in BOOT_JDK). But we
@@ -319,11 +335,11 @@ AC_DEFUN_ONCE([BOOTJDK_SETUP_BOOT_JDK],
AC_SUBST(BOOT_JDK)
# Setup tools from the Boot JDK.
BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JAVA, java)
BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JAVAC, javac)
BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JAVADOC, javadoc)
BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JAR, jar)
BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JARSIGNER, jarsigner)
BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JAVA, java$EXE_SUFFIX)
BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JAVAC, javac$EXE_SUFFIX)
BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JAVADOC, javadoc$EXE_SUFFIX)
BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JAR, jar$EXE_SUFFIX)
BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JARSIGNER, jarsigner$EXE_SUFFIX)
# Finally, set some other options...
@@ -372,10 +388,6 @@ AC_DEFUN_ONCE([BOOTJDK_SETUP_BOOT_JDK_ARGUMENTS],
# Specify jvm options for anything that is run with the Boot JDK.
# Not all JVM:s accept the same arguments on the command line.
#
AC_ARG_WITH(boot-jdk-jvmargs, [AS_HELP_STRING([--with-boot-jdk-jvmargs],
[specify JVM arguments to be passed to all java invocations of boot JDK, overriding the default values,
e.g --with-boot-jdk-jvmargs="-Xmx8G -enableassertions"])])
AC_MSG_CHECKING([flags for boot jdk java command] )
# Force en-US environment
@@ -389,8 +401,8 @@ AC_DEFUN_ONCE([BOOTJDK_SETUP_BOOT_JDK_ARGUMENTS],
ADD_JVM_ARG_IF_OK([-Xshare:auto],boot_jdk_jvmargs,[$JAVA])
fi
# Apply user provided options.
ADD_JVM_ARG_IF_OK([$with_boot_jdk_jvmargs],boot_jdk_jvmargs,[$JAVA])
# Finally append user provided options to allow them to override.
ADD_JVM_ARG_IF_OK([$USER_BOOT_JDK_OPTIONS],boot_jdk_jvmargs,[$JAVA])
AC_MSG_RESULT([$boot_jdk_jvmargs])

View File

@@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2012, 2018, 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
@@ -60,6 +60,15 @@ if test $? = 0; then
esac
fi
# Test and fix wsl
echo $OUT | grep x86_64-unknown-linux-gnu > /dev/null 2> /dev/null
if test $? = 0; then
uname -r | grep Microsoft > /dev/null 2> /dev/null
if test $? = 0; then
OUT="x86_64-pc-wsl"
fi
fi
# Test and fix architecture string on AIX
# On AIX 'config.guess' returns 'powerpc' as architecture but 'powerpc' is
# implicitely handled as 32-bit architecture in 'platform.m4' so we check

View File

@@ -29,7 +29,13 @@
DIR=`dirname $0`
# First, filter out everything that doesn't begin with "aarch64-"
# Allow wsl
if echo $* | grep x86_64-pc-wsl >/dev/null ; then
echo $*
exit
fi
# Filter out everything that doesn't begin with "aarch64-"
if ! echo $* | grep '^aarch64-' >/dev/null ; then
. $DIR/autoconf-config.sub "$@"
# autoconf-config.sub exits, so we never reach here, but just in

View File

@@ -31,6 +31,7 @@
export LEGACY_BUILD_DIR=@OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU_LEGACY@
export OPENJDK_BUILD_OS_ENV="@OPENJDK_BUILD_OS_ENV@"
export OPENJDK_TARGET_OS="@OPENJDK_TARGET_OS@"
export OPENJDK_TARGET_CPU="@OPENJDK_TARGET_CPU@"
export DEBUG_LEVEL="@DEBUG_LEVEL@"
@@ -73,18 +74,23 @@ export TOPDIR="@TOPDIR@"
export OUTPUTDIR="@OUTPUTDIR@"
if [ "@COMPILE_TYPE@" != "cross" ]; then
export JAVAP="@FIXPATH@ $OUTPUTDIR/jdk/bin/javap @JAVA_TOOL_FLAGS_SMALL@"
export JIMAGE="@FIXPATH@ $OUTPUTDIR/jdk/bin/jimage"
export JAVAP="@FIXPATH@ $OUTPUTDIR/jdk/bin/javap @JAVA_TOOL_FLAGS_SMALL@"
export JIMAGE="@FIXPATH@ $OUTPUTDIR/jdk/bin/jimage"
elif [ "@CREATE_BUILDJDK@" = "true" ]; then
export JAVAP="@FIXPATH@ $OUTPUTDIR/buildjdk/jdk/bin/javap @JAVA_TOOL_FLAGS_SMALL@"
export JIMAGE="@FIXPATH@ $OUTPUTDIR/buildjdk/jdk/bin/jimage"
export JAVAP="@FIXPATH@ $OUTPUTDIR/buildjdk/jdk/bin/javap @JAVA_TOOL_FLAGS_SMALL@"
export JIMAGE="@FIXPATH@ $OUTPUTDIR/buildjdk/jdk/bin/jimage"
else
export JAVAP="@FIXPATH@ @BUILD_JDK@/bin/javap @JAVA_TOOL_FLAGS_SMALL@"
export JIMAGE="@FIXPATH@ @BUILD_JDK@/bin/jimage"
export JAVAP="@FIXPATH@ @BUILD_JDK@/bin/javap @JAVA_TOOL_FLAGS_SMALL@"
export JIMAGE="@FIXPATH@ @BUILD_JDK@/bin/jimage"
fi
if [ "$OPENJDK_TARGET_OS" = "windows" ]; then
export PATH="@VS_PATH@"
if [ "$OPENJDK_BUILD_OS_ENV" = "windows.wsl" ]; then
export FIXPATH_PATH="@VS_PATH_WINDOWS@"
export WSLENV="$WSLENV:FIXPATH_PATH:DEBUG_FIXPATH"
else
export PATH="@VS_PATH@"
fi
fi
# Now locate the main script and run it.

View File

@@ -122,14 +122,18 @@ generate_configure_script() {
if test "x$CUSTOM_CONFIG_DIR" != x; then
# Generate configure script with custom hooks compiled in.
custom_patcher='sed -e "s|#CUSTOM_AUTOCONF_INCLUDE|m4_include([$custom_hook])|"'
custom_script_dir_include="-I$CUSTOM_CONFIG_DIR"
else
custom_patcher='cat'
custom_script_dir_include=""
fi
mkdir -p $build_support_dir
# Call autoconf but replace the "magic" variable in configure.ac if requested.
cat $conf_script_dir/configure.ac | eval $custom_patcher | \
${AUTOCONF} -W all -I$conf_script_dir - > $generated_script
${AUTOCONF} -W all $custom_script_dir_include -I$conf_script_dir - \
> $generated_script
rm -rf autom4te.cache
# Sanity check

View File

@@ -91,7 +91,6 @@ BASIC_SETUP_PATHS
JDKOPT_SETUP_OPEN_OR_CUSTOM
# These are needed to be able to create a configuration name (and thus the output directory)
JDKOPT_SETUP_JDK_VARIANT
JDKOPT_SETUP_DEBUG_LEVEL
HOTSPOT_SETUP_JVM_VARIANTS
@@ -181,6 +180,9 @@ TOOLCHAIN_MISC_CHECKS
# Setup the JTReg Regression Test Harness.
TOOLCHAIN_SETUP_JTREG
# Setup the Java Microbenchmark Harness (JMH)
LIB_TESTS_SETUP_JMH
# Setup Jib dependency tool
TOOLCHAIN_SETUP_JIB
@@ -233,6 +235,8 @@ JDKOPT_DETECT_INTREE_EC
JDKOPT_ENABLE_DISABLE_FAILURE_HANDLER
JDKOPT_ENABLE_DISABLE_GENERATE_CLASSLIST
JDKOPT_EXCLUDE_TRANSLATIONS
JDKOPT_ENABLE_DISABLE_MANPAGES
JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE
###############################################################################
#

View File

@@ -106,11 +106,17 @@ AC_DEFUN([FLAGS_SETUP_SHARED_LIBS],
AC_DEFUN([FLAGS_SETUP_DEBUG_SYMBOLS],
[
# By default don't set any specific assembler debug
# info flags for toolchains unless we know they work.
# See JDK-8207057.
ASFLAGS_DEBUG_SYMBOLS=""
# Debug symbols
if test "x$TOOLCHAIN_TYPE" = xgcc; then
CFLAGS_DEBUG_SYMBOLS="-g"
ASFLAGS_DEBUG_SYMBOLS="-g"
elif test "x$TOOLCHAIN_TYPE" = xclang; then
CFLAGS_DEBUG_SYMBOLS="-g"
ASFLAGS_DEBUG_SYMBOLS="-g"
elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
# -g0 enables debug symbols without disabling inlining.
CFLAGS_DEBUG_SYMBOLS="-g0 -xs"
@@ -121,6 +127,7 @@ AC_DEFUN([FLAGS_SETUP_DEBUG_SYMBOLS],
fi
AC_SUBST(CFLAGS_DEBUG_SYMBOLS)
AC_SUBST(ASFLAGS_DEBUG_SYMBOLS)
])
AC_DEFUN([FLAGS_SETUP_WARNINGS],
@@ -154,14 +161,35 @@ AC_DEFUN([FLAGS_SETUP_WARNINGS],
microsoft)
DISABLE_WARNING_PREFIX="-wd"
CFLAGS_WARNINGS_ARE_ERRORS="-WX"
WARNINGS_ENABLE_ALL="-W3"
DISABLED_WARNINGS="4800"
;;
solstudio)
DISABLE_WARNING_PREFIX="-erroff="
CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all"
CFLAGS_WARNINGS_ARE_ERRORS="-errwarn=%all"
WARNINGS_ENABLE_ALL_CFLAGS="-v"
WARNINGS_ENABLE_ALL_CXXFLAGS="+w"
DISABLED_WARNINGS_C=""
DISABLED_WARNINGS_CXX=""
;;
gcc)
DISABLE_WARNING_PREFIX="-Wno-"
CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
# Additional warnings that are not activated by -Wall and -Wextra
WARNINGS_ENABLE_ADDITIONAL="-Wpointer-arith -Wsign-compare \
-Wunused-function -Wundef -Wunused-value -Wreturn-type"
WARNINGS_ENABLE_ADDITIONAL_CXX="-Woverloaded-virtual -Wreorder"
WARNINGS_ENABLE_ALL_CFLAGS="-Wall -Wextra -Wformat=2 $WARNINGS_ENABLE_ADDITIONAL"
WARNINGS_ENABLE_ALL_CXXFLAGS="$WARNINGS_ENABLE_ALL_CFLAGS $WARNINGS_ENABLE_ADDITIONAL_CXX"
DISABLED_WARNINGS="unused-parameter unused"
# Repeate the check for the BUILD_CC and BUILD_CXX. Need to also reset
# CFLAGS since any target specific flags will likely not work with the
# build compiler
@@ -176,18 +204,40 @@ AC_DEFUN([FLAGS_SETUP_WARNINGS],
CXX="$CXX_OLD"
CFLAGS="$CFLAGS_OLD"
;;
clang)
DISABLE_WARNING_PREFIX="-Wno-"
CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
# Additional warnings that are not activated by -Wall and -Wextra
WARNINGS_ENABLE_ADDITIONAL="-Wpointer-arith -Wsign-compare -Wreorder \
-Wunused-function -Wundef -Wunused-value -Woverloaded-virtual"
WARNINGS_ENABLE_ALL="-Wall -Wextra -Wformat=2 $WARNINGS_ENABLE_ADDITIONAL"
DISABLED_WARNINGS="unused-parameter unused"
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
# missing-method-return-type triggers in JavaNativeFoundation framework
DISABLED_WARNINGS="$DISABLED_WARNINGS missing-method-return-type"
fi
;;
xlc)
DISABLE_WARNING_PREFIX="-qsuppress="
CFLAGS_WARNINGS_ARE_ERRORS="-qhalt=w"
# Possibly a better subset than "all" is "lan:trx:ret:zea:cmp:ret"
WARNINGS_ENABLE_ALL="-qinfo=all -qformat=all"
DISABLED_WARNINGS=""
;;
esac
AC_SUBST(DISABLE_WARNING_PREFIX)
AC_SUBST(BUILD_CC_DISABLE_WARNING_PREFIX)
AC_SUBST(CFLAGS_WARNINGS_ARE_ERRORS)
AC_SUBST(DISABLED_WARNINGS)
AC_SUBST(DISABLED_WARNINGS_C)
AC_SUBST(DISABLED_WARNINGS_CXX)
])
AC_DEFUN([FLAGS_SETUP_QUALITY_CHECKS],
@@ -366,16 +416,19 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS],
FLAGS_SETUP_CFLAGS_CPU_DEP([BUILD], [OPENJDK_BUILD_])
# Tests are only ever compiled for TARGET
CFLAGS_TESTLIB="$CFLAGS_JDKLIB"
CXXFLAGS_TESTLIB="$CXXFLAGS_JDKLIB"
CFLAGS_TESTEXE="$CFLAGS_JDKEXE"
CXXFLAGS_TESTEXE="$CXXFLAGS_JDKEXE"
AC_SUBST(CFLAGS_TESTLIB)
AC_SUBST(CFLAGS_TESTEXE)
AC_SUBST(CXXFLAGS_TESTLIB)
AC_SUBST(CXXFLAGS_TESTEXE)
COMPILER_FP_CONTRACT_OFF_FLAG="-ffp-contract=off"
# Check that the compiler supports -ffp-contract=off flag
# Set FDLIBM_CFLAGS to -ffp-contract=off if it does. Empty
# otherwise.
# These flags are required for GCC-based builds of
# fdlibm with optimization without losing precision.
# Notably, -ffp-contract=off needs to be added for GCC >= 4.6.
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [${COMPILER_FP_CONTRACT_OFF_FLAG}],
IF_TRUE: [FDLIBM_CFLAGS=${COMPILER_FP_CONTRACT_OFF_FLAG}],
IF_FALSE: [FDLIBM_CFLAGS=""])
fi
AC_SUBST(FDLIBM_CFLAGS)
])
################################################################################
@@ -502,11 +555,14 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
TOOLCHAIN_CFLAGS_JDK_CONLY="-fno-strict-aliasing" # technically NOT for CXX
fi
elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
TOOLCHAIN_CFLAGS_JDK="-mt"
TOOLCHAIN_CFLAGS_JDK_CONLY="-xc99=%none -xCC -Xa -v -W0,-noglobal" # C only
TOOLCHAIN_FLAGS="-errtags -errfmt"
TOOLCHAIN_CFLAGS="-errshort=tags"
TOOLCHAIN_CFLAGS_JDK="-mt $TOOLCHAIN_FLAGS"
TOOLCHAIN_CFLAGS_JDK_CONLY="-xCC -Xa -W0,-noglobal $TOOLCHAIN_CFLAGS" # C only
TOOLCHAIN_CFLAGS_JDK_CXXONLY="-features=no%except -norunpath -xnolib" # CXX only
TOOLCHAIN_CFLAGS_JVM="-template=no%extdef -features=no%split_init \
-library=stlport4 -mt -features=no%except"
-library=stlport4 -mt -features=no%except $TOOLCHAIN_FLAGS"
if test "x$DEBUG_LEVEL" = xslowdebug; then
# Previously -g was used instead of -g0 for slowdebug; this is equivalent
# to setting +d.
@@ -514,6 +570,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
fi
elif test "x$TOOLCHAIN_TYPE" = xxlc; then
# Suggested additions: -qsrcmsg to get improved error reporting
TOOLCHAIN_CFLAGS_JDK="-qchars=signed -qfullpath -qsaveopt" # add on both CFLAGS
TOOLCHAIN_CFLAGS_JVM="-qtune=balanced \
-qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \
@@ -525,37 +582,24 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
# CFLAGS WARNINGS STUFF
# Set JVM_CFLAGS warning handling
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
# COMMON to gcc and clang
WARNING_CFLAGS_JVM="-Wpointer-arith -Wsign-compare -Wunused-function"
if ! HOTSPOT_CHECK_JVM_VARIANT(zero); then
# Non-zero builds have stricter warnings
WARNING_CFLAGS_JVM="$WARNING_CFLAGS_JVM -Wundef -Wformat=2"
fi
fi
if test "x$TOOLCHAIN_TYPE" = xgcc; then
WARNING_CFLAGS_JDK="-Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2"
WARNING_CFLAGS_JVM="$WARNING_CFLAGS_JVM -Wunused-value -Woverloaded-virtual"
WARNING_CFLAGS_JDK_CONLY="$WARNINGS_ENABLE_ALL_CFLAGS"
WARNING_CFLAGS_JDK_CXXONLY="$WARNINGS_ENABLE_ALL_CXXFLAGS"
WARNING_CFLAGS_JVM="$WARNINGS_ENABLE_ALL_CXXFLAGS"
if ! HOTSPOT_CHECK_JVM_VARIANT(zero); then
# Non-zero builds have stricter warnings
WARNING_CFLAGS_JVM="$WARNING_CFLAGS_JVM -Wreturn-type"
fi
elif test "x$TOOLCHAIN_TYPE" = xclang; then
WARNING_CFLAGS_JVM="$WARNING_CFLAGS_JVM -Wno-deprecated"
if test "x$OPENJDK_TARGET_OS" = xlinux; then
WARNING_CFLAGS_JVM="$WARNING_CFLAGS_JVM -Wno-sometimes-uninitialized"
WARNING_CFLAGS_JDK="-Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2"
fi
WARNING_CFLAGS="$WARNINGS_ENABLE_ALL"
elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
WARNING_CFLAGS_JDK_CONLY="-errshort=tags"
WARNING_CFLAGS_JDK_CXXONLY="+w"
WARNING_CFLAGS_JDK="-errtags=yes -errfmt"
WARNING_CFLAGS_JDK_CONLY="$WARNINGS_ENABLE_ALL_CFLAGS"
WARNING_CFLAGS_JDK_CXXONLY="$WARNINGS_ENABLE_ALL_CXXFLAGS"
WARNING_CFLAGS_JVM="$WARNINGS_ENABLE_ALL_CXXFLAGS"
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
WARNING_CFLAGS="-W3"
WARNING_CFLAGS_JDK="-wd4800"
WARNING_CFLAGS_JVM="-wd4800"
WARNING_CFLAGS="$WARNINGS_ENABLE_ALL"
elif test "x$TOOLCHAIN_TYPE" = xxlc; then
WARNING_CFLAGS="" # currently left empty
fi
# Set some additional per-OS defines.
@@ -703,10 +747,6 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
# -Wno-psabi to get rid of annoying "note: the mangling of 'va_list' has changed in GCC 4.4"
$1_CFLAGS_CPU="-fsigned-char -Wno-psabi $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS -DJDK_ARCH_ABI_PROP_NAME='\"\$(JDK_ARCH_ABI_PROP_NAME)\"'"
$1_CFLAGS_CPU_JVM="-DARM"
elif test "x$FLAGS_CPU" = xaarch64; then
if test "x$HOTSPOT_TARGET_CPU_PORT" = xarm64; then
$1_CFLAGS_CPU_JVM="-fsigned-char -DARM"
fi
elif test "x$FLAGS_CPU_ARCH" = xppc; then
$1_CFLAGS_CPU_JVM="-minsert-sched-nops=regroup_exact -mno-multiple -mno-string"
if test "x$FLAGS_CPU" = xppc64; then

View File

@@ -51,9 +51,7 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS],
FLAGS_SETUP_LDFLAGS_CPU_DEP([BUILD], [OPENJDK_BUILD_])
LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB"
LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE ${TARGET_LDFLAGS_JDK_LIBPATH}"
AC_SUBST(LDFLAGS_TESTLIB)
LDFLAGS_TESTEXE="${TARGET_LDFLAGS_JDK_LIBPATH}"
AC_SUBST(LDFLAGS_TESTEXE)
])
@@ -74,10 +72,8 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
# Add -z defs, to forbid undefined symbols in object files.
BASIC_LDFLAGS="$BASIC_LDFLAGS -Wl,-z,defs"
BASIC_LDFLAGS_JVM_ONLY="-Wl,-z,noexecstack -Wl,-O1 -Wl,-z,relro"
BASIC_LDFLAGS_JVM_ONLY="-Wl,-O1 -Wl,-z,relro"
BASIC_LDFLAGS_JDK_LIB_ONLY="-Wl,-z,noexecstack"
LIBJSIG_NOEXECSTACK_LDFLAGS="-Wl,-z,noexecstack"
elif test "x$TOOLCHAIN_TYPE" = xclang; then
BASIC_LDFLAGS_JVM_ONLY="-mno-omit-leaf-frame-pointer -mstack-alignment=16 \
@@ -103,6 +99,12 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
BASIC_LDFLAGS_JVM_ONLY="-opt:icf,8 -subsystem:windows"
fi
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
if test -n "$HAS_NOEXECSTACK"; then
BASIC_LDFLAGS="$BASIC_LDFLAGS -Wl,-z,noexecstack"
fi
fi
# Setup OS-dependent LDFLAGS
if test "x$TOOLCHAIN_TYPE" = xclang || test "x$TOOLCHAIN_TYPE" = xgcc; then
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
@@ -137,6 +139,14 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
fi
fi
# Setup warning flags
if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
LDFLAGS_WARNINGS_ARE_ERRORS="-Wl,-z,fatal-warnings"
else
LDFLAGS_WARNINGS_ARE_ERRORS=""
fi
AC_SUBST(LDFLAGS_WARNINGS_ARE_ERRORS)
# Setup LDFLAGS for linking executables
if test "x$TOOLCHAIN_TYPE" = xgcc; then
EXECUTABLE_LDFLAGS="$EXECUTABLE_LDFLAGS -Wl,--allow-shlib-undefined"
@@ -163,10 +173,6 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_CPU_DEP],
elif test "x$OPENJDK_$1_CPU" = xarm; then
$1_CPU_LDFLAGS_JVM_ONLY="${$1_CPU_LDFLAGS_JVM_ONLY} -fsigned-char"
$1_CPU_LDFLAGS="$ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS"
elif test "x$FLAGS_CPU" = xaarch64; then
if test "x$HOTSPOT_TARGET_CPU_PORT" = xarm64; then
$1_CPU_LDFLAGS_JVM_ONLY="${$1_CPU_LDFLAGS_JVM_ONLY} -fsigned-char"
fi
fi
elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then

View File

@@ -31,9 +31,7 @@
AC_DEFUN([FLAGS_SETUP_ARFLAGS],
[
# FIXME: figure out if we should select AR flags depending on OS or toolchain.
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
ARFLAGS="-r -mmacosx-version-min=$MACOSX_VERSION_MIN"
elif test "x$OPENJDK_TARGET_OS" = xaix; then
if test "x$OPENJDK_TARGET_OS" = xaix; then
ARFLAGS="-X64"
elif test "x$OPENJDK_TARGET_OS" = xwindows; then
# lib.exe is used as AR to create static libraries.
@@ -121,6 +119,12 @@ AC_DEFUN([FLAGS_SETUP_ASFLAGS_CPU_DEP],
# Misuse EXTRA_CFLAGS to mimic old behavior
$2JVM_ASFLAGS="$JVM_BASIC_ASFLAGS ${$2EXTRA_CFLAGS}"
if test "x$1" = "xTARGET" && \
test "x$TOOLCHAIN_TYPE" = xgcc && \
test "x$OPENJDK_TARGET_CPU" = xarm; then
$2JVM_ASFLAGS="${$2JVM_ASFLAGS} $ARM_ARCH_TYPE_ASFLAGS $ARM_FLOAT_TYPE_ASFLAGS"
fi
AC_SUBST($2JVM_ASFLAGS)
])

View File

@@ -34,7 +34,7 @@ m4_include([flags-other.m4])
AC_DEFUN([FLAGS_SETUP_ABI_PROFILE],
[
AC_ARG_WITH(abi-profile, [AS_HELP_STRING([--with-abi-profile],
[specify ABI profile for ARM builds (arm-vfp-sflt,arm-vfp-hflt,arm-sflt, armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64) @<:@toolchain dependent@:>@ ])])
[specify ABI profile for ARM builds (arm-vfp-sflt,arm-vfp-hflt,arm-sflt, armv5-vfp-sflt,armv6-vfp-hflt,aarch64) @<:@toolchain dependent@:>@ ])])
if test "x$with_abi_profile" != x; then
if test "x$OPENJDK_TARGET_CPU" != xarm && \
@@ -46,45 +46,59 @@ AC_DEFUN([FLAGS_SETUP_ABI_PROFILE],
AC_MSG_CHECKING([for ABI profle])
AC_MSG_RESULT([$OPENJDK_TARGET_ABI_PROFILE])
# --- Arm-sflt CFLAGS and ASFLAGS ---
# Armv5te is required for assembler, because pld insn used in arm32 hotspot is only in v5E and above.
# However, there is also a GCC bug which generates unaligned strd/ldrd instructions on armv5te:
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82445, and it was fixed only quite recently.
# The resulting compromise is to enable v5TE for assembler and let GCC generate code for v5T.
if test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-vfp-sflt; then
ARM_FLOAT_TYPE=vfp-sflt
ARM_ARCH_TYPE_FLAGS='-march=armv7-a -mthumb'
ARM_ARCH_TYPE_ASFLAGS='-march=armv7-a -mthumb'
elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-vfp-hflt; then
ARM_FLOAT_TYPE=vfp-hflt
ARM_ARCH_TYPE_FLAGS='-march=armv7-a -mthumb'
ARM_ARCH_TYPE_ASFLAGS='-march=armv7-a -mthumb'
elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-sflt; then
ARM_FLOAT_TYPE=sflt
ARM_ARCH_TYPE_FLAGS='-march=armv5t -marm'
ARM_ARCH_TYPE_ASFLAGS='-march=armv5te'
elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarmv5-vfp-sflt; then
ARM_FLOAT_TYPE=vfp-sflt
ARM_ARCH_TYPE_FLAGS='-march=armv5t -marm'
ARM_ARCH_TYPE_ASFLAGS='-march=armv5te'
elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarmv6-vfp-hflt; then
ARM_FLOAT_TYPE=vfp-hflt
ARM_ARCH_TYPE_FLAGS='-march=armv6 -marm'
elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm64; then
# No special flags, just need to trigger setting JDK_ARCH_ABI_PROP_NAME
ARM_FLOAT_TYPE=
ARM_ARCH_TYPE_FLAGS=
ARM_ARCH_TYPE_ASFLAGS='-march=armv6'
elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xaarch64; then
# No special flags, just need to trigger setting JDK_ARCH_ABI_PROP_NAME
ARM_FLOAT_TYPE=
ARM_ARCH_TYPE_FLAGS=
ARM_ARCH_TYPE_ASFLAGS=
else
AC_MSG_ERROR([Invalid ABI profile: "$OPENJDK_TARGET_ABI_PROFILE"])
fi
if test "x$ARM_FLOAT_TYPE" = xvfp-sflt; then
ARM_FLOAT_TYPE_FLAGS='-mfloat-abi=softfp -mfpu=vfp -DFLOAT_ARCH=-vfp-sflt'
ARM_FLOAT_TYPE_ASFLAGS="-mfloat-abi=softfp -mfpu=vfp"
elif test "x$ARM_FLOAT_TYPE" = xvfp-hflt; then
ARM_FLOAT_TYPE_FLAGS='-mfloat-abi=hard -mfpu=vfp -DFLOAT_ARCH=-vfp-hflt'
ARM_FLOAT_TYPE_ASFLAGS="-mfloat-abi=hard -mfpu=vfp"
elif test "x$ARM_FLOAT_TYPE" = xsflt; then
ARM_FLOAT_TYPE_FLAGS='-msoft-float -mfpu=vfp'
ARM_FLOAT_TYPE_ASFLAGS="-mfloat-abi=soft -mfpu=vfp"
fi
AC_MSG_CHECKING([for $ARM_FLOAT_TYPE floating point flags])
AC_MSG_RESULT([$ARM_FLOAT_TYPE_FLAGS])
AC_MSG_CHECKING([for $ARM_FLOAT_TYPE floating point flags for assembler])
AC_MSG_RESULT([$ARM_FLOAT_TYPE_ASFLAGS])
AC_MSG_CHECKING([for arch type flags])
AC_MSG_RESULT([$ARM_ARCH_TYPE_FLAGS])
AC_MSG_CHECKING([for arch type flags for assembler])
AC_MSG_RESULT([$ARM_ARCH_TYPE_ASFLAGS])
# Now set JDK_ARCH_ABI_PROP_NAME. This is equivalent to the last part of the
# autoconf target triplet.
@@ -241,7 +255,8 @@ AC_DEFUN_ONCE([FLAGS_PRE_TOOLCHAIN],
elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
MACHINE_FLAG="-m${OPENJDK_TARGET_CPU_BITS}"
elif test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86 ||
if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86 &&
test "x$OPENJDK_TARGET_CPU" != xx32 ||
test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc ||
test "x$OPENJDK_TARGET_CPU_ARCH" = xppc; then
MACHINE_FLAG="-m${OPENJDK_TARGET_CPU_BITS}"
@@ -335,8 +350,12 @@ AC_DEFUN([FLAGS_SETUP_TOOLCHAIN_CONTROL],
CC_OUT_OPTION='-o$(SPACE)'
# When linking, how to specify the output
LD_OUT_OPTION='-o$(SPACE)'
# When archiving, how to specify the to be create static archive for object files.
AR_OUT_OPTION='rcs$(SPACE)'
# When archiving, how to specify the destination static archive.
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
AR_OUT_OPTION='-r -cs$(SPACE)'
else
AR_OUT_OPTION='-rcs$(SPACE)'
fi
fi
AC_SUBST(CC_OUT_OPTION)
AC_SUBST(LD_OUT_OPTION)

View File

@@ -102,7 +102,7 @@ apt_help() {
ffi)
PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
x11)
PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxrandr-dev libxtst-dev libxt-dev" ;;
ccache)
PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
dtrace)
@@ -125,7 +125,7 @@ yum_help() {
freetype)
PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
x11)
PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXrandr-devel libXi-devel" ;;
ccache)
PKGHANDLER_COMMAND="sudo yum install ccache" ;;
esac

View File

@@ -25,7 +25,7 @@
# All valid JVM features, regardless of platform
VALID_JVM_FEATURES="compiler1 compiler2 zero minimal dtrace jvmti jvmci \
graal vm-structs jni-check services management cmsgc epsilongc g1gc parallelgc serialgc zgc nmt cds \
graal vm-structs jni-check services management cmsgc epsilongc g1gc parallelgc serialgc shenandoahgc zgc nmt cds \
static-build link-time-opt aot jfr"
# Deprecated JVM features (these are ignored, but with a warning)
@@ -72,8 +72,6 @@ AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_VARIANTS],
AC_ARG_WITH([jvm-variants], [AS_HELP_STRING([--with-jvm-variants],
[JVM variants (separated by commas) to build (server,client,minimal,core,zero,custom) @<:@server@:>@])])
SETUP_HOTSPOT_TARGET_CPU_PORT
if test "x$with_jvm_variants" = x; then
with_jvm_variants="server"
fi
@@ -201,8 +199,6 @@ AC_DEFUN_ONCE([HOTSPOT_ENABLE_DISABLE_AOT],
ENABLE_AOT="true"
elif test "x$enable_aot" = "xno"; then
ENABLE_AOT="false"
AC_MSG_CHECKING([if aot should be enabled])
AC_MSG_RESULT([no, forced])
else
AC_MSG_ERROR([Invalid value for --enable-aot: $enable_aot])
fi
@@ -228,7 +224,7 @@ AC_DEFUN_ONCE([HOTSPOT_ENABLE_DISABLE_AOT],
else
ENABLE_AOT="false"
if test "x$enable_aot" = "xyes"; then
AC_MSG_ERROR([AOT is currently only supported on x86_64. Remove --enable-aot.])
AC_MSG_ERROR([AOT is currently only supported on x86_64 and aarch64. Remove --enable-aot.])
fi
fi
fi
@@ -254,14 +250,6 @@ AC_DEFUN_ONCE([HOTSPOT_ENABLE_DISABLE_CDS],
AC_MSG_ERROR([Invalid value for --enable-cds: $enable_cds])
fi
# Disable CDS on AIX.
if test "x$OPENJDK_TARGET_OS" = "xaix"; then
ENABLE_CDS="false"
if test "x$enable_cds" = "xyes"; then
AC_MSG_ERROR([CDS is currently not supported on AIX. Remove --enable-cds.])
fi
fi
AC_SUBST(ENABLE_CDS)
])
@@ -309,9 +297,6 @@ AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_FEATURES],
if test "x$OPENJDK_TARGET_CPU" = xarm; then
HOTSPOT_TARGET_CPU=arm_32
HOTSPOT_TARGET_CPU_DEFINE="ARM32"
elif test "x$OPENJDK_TARGET_CPU" = xaarch64 && test "x$HOTSPOT_TARGET_CPU_PORT" = xarm64; then
HOTSPOT_TARGET_CPU=arm_64
HOTSPOT_TARGET_CPU_ARCH=arm
fi
# Verify that dependencies are met for explicitly set features.
@@ -333,22 +318,34 @@ AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_FEATURES],
# Enable JFR by default, except for Zero, linux-sparcv9 and on minimal.
if ! HOTSPOT_CHECK_JVM_VARIANT(zero); then
if test "x$OPENJDK_TARGET_OS" != xlinux || test "x$OPENJDK_TARGET_CPU" != xsparcv9; then
NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jfr"
if test "x$OPENJDK_TARGET_OS" != xaix; then
if test "x$OPENJDK_TARGET_OS" != xlinux || test "x$OPENJDK_TARGET_CPU" != xsparcv9; then
NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jfr"
fi
fi
fi
# Only enable ZGC on Linux x86_64
AC_MSG_CHECKING([if zgc should be built])
if HOTSPOT_CHECK_JVM_FEATURE(zgc); then
if test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
AC_MSG_RESULT([yes])
else
DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES zgc"
AC_MSG_RESULT([no, platform not supported])
fi
# Only enable Shenandoah on supported arches
AC_MSG_CHECKING([if shenandoah can be built])
if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES shenandoahgc"
AC_MSG_RESULT([no, platform not supported])
fi
# Only enable ZGC on supported platforms
AC_MSG_CHECKING([if zgc can be built])
if test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
AC_MSG_RESULT([yes])
else
DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES zgc"
AC_MSG_RESULT([no, platform not supported])
fi
# Disable unsupported GCs for Zero
if HOTSPOT_CHECK_JVM_VARIANT(zero); then
DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES epsilongc g1gc zgc shenandoahgc"
fi
# Turn on additional features based on other parts of configure
@@ -374,57 +371,106 @@ AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_FEATURES],
fi
fi
# Only enable jvmci on x86_64, sparcv9 and aarch64.
if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \
test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \
test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then
JVM_FEATURES_jvmci="jvmci"
else
AC_MSG_CHECKING([if jvmci module jdk.internal.vm.ci should be built])
# Check if jvmci is diabled
DISABLE_JVMCI=`$ECHO $DISABLED_JVM_FEATURES | $GREP jvmci`
if test "x$DISABLE_JVMCI" = "xjvmci"; then
AC_MSG_RESULT([no, forced])
JVM_FEATURES_jvmci=""
INCLUDE_JVMCI="false"
else
# Only enable jvmci on x86_64, sparcv9 and aarch64
if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \
test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \
test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then
AC_MSG_RESULT([yes])
JVM_FEATURES_jvmci="jvmci"
INCLUDE_JVMCI="true"
else
AC_MSG_RESULT([no])
JVM_FEATURES_jvmci=""
INCLUDE_JVMCI="false"
if HOTSPOT_CHECK_JVM_FEATURE(jvmci); then
AC_MSG_ERROR([JVMCI is currently not supported on this platform.])
fi
fi
fi
AC_MSG_CHECKING([if jdk.internal.vm.compiler should be built])
if HOTSPOT_CHECK_JVM_FEATURE(graal); then
AC_MSG_RESULT([yes, forced])
if test "x$JVM_FEATURES_jvmci" != "xjvmci" ; then
AC_MSG_ERROR([Specified JVM feature 'graal' requires feature 'jvmci'])
fi
INCLUDE_GRAAL="true"
AC_SUBST(INCLUDE_JVMCI)
AC_MSG_CHECKING([if graal module jdk.internal.vm.compiler should be built])
# Check if graal is diabled
DISABLE_GRAAL=`$ECHO $DISABLED_JVM_FEATURES | $GREP graal`
if test "x$DISABLE_GRAAL" = "xgraal"; then
AC_MSG_RESULT([no, forced])
JVM_FEATURES_graal=""
INCLUDE_GRAAL="false"
else
# By default enable graal build on x64 or where AOT is available.
# graal build requires jvmci.
if test "x$JVM_FEATURES_jvmci" = "xjvmci" && \
(test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \
test "x$ENABLE_AOT" = "xtrue") ; then
AC_MSG_RESULT([yes])
if HOTSPOT_CHECK_JVM_FEATURE(graal); then
AC_MSG_RESULT([yes, forced])
if test "x$JVM_FEATURES_jvmci" != "xjvmci" ; then
AC_MSG_ERROR([Specified JVM feature 'graal' requires feature 'jvmci'])
fi
JVM_FEATURES_graal="graal"
INCLUDE_GRAAL="true"
else
AC_MSG_RESULT([no])
JVM_FEATURES_graal=""
INCLUDE_GRAAL="false"
# By default enable graal build on x64 or where AOT is available.
# graal build requires jvmci.
if test "x$JVM_FEATURES_jvmci" = "xjvmci" && \
(test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \
test "x$ENABLE_AOT" = "xtrue") ; then
AC_MSG_RESULT([yes])
JVM_FEATURES_graal="graal"
INCLUDE_GRAAL="true"
else
AC_MSG_RESULT([no])
JVM_FEATURES_graal=""
INCLUDE_GRAAL="false"
fi
fi
fi
AC_SUBST(INCLUDE_GRAAL)
# Disable aot with '--with-jvm-features=-aot'
DISABLE_AOT=`$ECHO $DISABLED_JVM_FEATURES | $GREP aot`
if test "x$DISABLE_AOT" = "xaot"; then
ENABLE_AOT="false"
fi
AC_MSG_CHECKING([if aot should be enabled])
if test "x$ENABLE_AOT" = "xtrue"; then
if test "x$enable_aot" = "xyes"; then
AC_MSG_RESULT([yes, forced])
if test "x$JVM_FEATURES_graal" != "xgraal"; then
if test "x$enable_aot" = "xyes" || HOTSPOT_CHECK_JVM_FEATURE(aot); then
AC_MSG_RESULT([yes, forced])
AC_MSG_ERROR([Specified JVM feature 'aot' requires feature 'graal'])
else
AC_MSG_RESULT([no])
fi
JVM_FEATURES_aot=""
ENABLE_AOT="false"
else
AC_MSG_RESULT([yes])
if test "x$enable_aot" = "xyes" || HOTSPOT_CHECK_JVM_FEATURE(aot); then
AC_MSG_RESULT([yes, forced])
else
AC_MSG_RESULT([yes])
fi
JVM_FEATURES_aot="aot"
fi
JVM_FEATURES_aot="aot"
else
if test "x$enable_aot" = "xno"; then
if test "x$enable_aot" = "xno" || test "x$DISABLE_AOT" = "xaot"; then
AC_MSG_RESULT([no, forced])
else
AC_MSG_RESULT([no])
fi
JVM_FEATURES_aot=""
if HOTSPOT_CHECK_JVM_FEATURE(aot); then
AC_MSG_ERROR([To enable aot, you must use --enable-aot])
fi
fi
AC_SUBST(ENABLE_AOT)
if test "x$OPENJDK_TARGET_CPU" = xarm ; then
# Default to use link time optimizations on minimal on arm
JVM_FEATURES_link_time_opt="link-time-opt"
@@ -433,7 +479,35 @@ AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_FEATURES],
fi
# All variants but minimal (and custom) get these features
NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cmsgc g1gc parallelgc serialgc epsilongc jni-check jvmti management nmt services vm-structs"
NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cmsgc g1gc parallelgc serialgc epsilongc shenandoahgc jni-check jvmti management nmt services vm-structs zgc"
# Disable CDS on AIX.
if test "x$OPENJDK_TARGET_OS" = "xaix"; then
ENABLE_CDS="false"
if test "x$enable_cds" = "xyes"; then
AC_MSG_ERROR([CDS is currently not supported on AIX. Remove --enable-cds.])
fi
fi
# Disable CDS if user requested it with --with-jvm-features=-cds.
DISABLE_CDS=`$ECHO $DISABLED_JVM_FEATURES | $GREP cds`
if test "x$DISABLE_CDS" = "xcds"; then
ENABLE_CDS="false"
if test "x$enable_cds" = "xyes"; then
AC_MSG_ERROR([CDS was disabled by --with-jvm-features=-cds. Remove --enable-cds.])
fi
fi
# Disable CDS for zero, minimal, core..
if HOTSPOT_CHECK_JVM_VARIANT(zero) || HOTSPOT_CHECK_JVM_VARIANT(minimal) || HOTSPOT_CHECK_JVM_VARIANT(core); then
# ..except when the user explicitely requested it with --enable-jvm-features
if ! HOTSPOT_CHECK_JVM_FEATURE(cds); then
ENABLE_CDS="false"
if test "x$enable_cds" = "xyes"; then
AC_MSG_ERROR([CDS not implemented for variants zero, minimal, core. Remove --enable-cds.])
fi
fi
fi
AC_MSG_CHECKING([if cds should be enabled])
if test "x$ENABLE_CDS" = "xtrue"; then
@@ -453,7 +527,7 @@ AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_FEATURES],
# Enable features depending on variant.
JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal"
JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci"
JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES"
JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES"
JVM_FEATURES_minimal="compiler1 minimal serialgc $JVM_FEATURES $JVM_FEATURES_link_time_opt"
JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES"
@@ -469,8 +543,8 @@ AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_FEATURES],
# Used for verification of Makefiles by check-jvm-feature
AC_SUBST(VALID_JVM_FEATURES)
# We don't support --with-jvm-interpreter anymore, use zero instead.
BASIC_DEPRECATED_ARG_WITH(jvm-interpreter)
# --with-cpu-port is no longer supported
BASIC_DEPRECATED_ARG_WITH(with-cpu-port)
])
###############################################################################
@@ -507,31 +581,6 @@ AC_DEFUN_ONCE([HOTSPOT_FINALIZE_JVM_FEATURES],
done
])
################################################################################
#
# Specify which sources will be used to build the 64-bit ARM port
#
# --with-cpu-port=arm64 will use hotspot/src/cpu/arm
# --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64
#
AC_DEFUN([SETUP_HOTSPOT_TARGET_CPU_PORT],
[
AC_ARG_WITH(cpu-port, [AS_HELP_STRING([--with-cpu-port],
[specify sources to use for Hotspot 64-bit ARM port (arm64,aarch64) @<:@aarch64@:>@ ])])
if test "x$with_cpu_port" != x; then
if test "x$OPENJDK_TARGET_CPU" != xaarch64; then
AC_MSG_ERROR([--with-cpu-port only available on aarch64])
fi
if test "x$with_cpu_port" != xarm64 && \
test "x$with_cpu_port" != xaarch64; then
AC_MSG_ERROR([--with-cpu-port must specify arm64 or aarch64])
fi
HOTSPOT_TARGET_CPU_PORT="$with_cpu_port"
fi
])
################################################################################
# Check if gtest should be built
#

View File

@@ -33,19 +33,8 @@
# modules to compile into the JDK.
AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_VARIANT],
[
AC_MSG_CHECKING([which variant of the JDK to build])
AC_ARG_WITH([jdk-variant], [AS_HELP_STRING([--with-jdk-variant],
[JDK variant to build (normal) @<:@normal@:>@])])
if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
JDK_VARIANT="normal"
else
AC_MSG_ERROR([The available JDK variants are: normal])
fi
AC_SUBST(JDK_VARIANT)
AC_MSG_RESULT([$JDK_VARIANT])
# Deprecated in JDK 12
BASIC_DEPRECATED_ARG_WITH([jdk-variant])
])
###############################################################################
@@ -126,10 +115,6 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_OPEN_OR_CUSTOM],
else
AC_MSG_ERROR([Invalid value for --enable-openjdk-only: $enable_openjdk_only])
fi
# custom-make-dir is deprecated. Please use your custom-hook.m4 to override
# the IncludeCustomExtension macro.
BASIC_DEPRECATED_ARG_WITH(custom-make-dir)
])
AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS],
@@ -259,6 +244,28 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS],
COPYRIGHT_YEAR=`$DATE +'%Y'`
fi
AC_SUBST(COPYRIGHT_YEAR)
# Override default library path
AC_ARG_WITH([jni-libpath], [AS_HELP_STRING([--with-jni-libpath],
[override default JNI library search path])])
AC_MSG_CHECKING([for jni library path])
if test "x${with_jni_libpath}" = "x" || test "x${with_jni_libpath}" = "xno"; then
AC_MSG_RESULT([default])
elif test "x${with_jni_libpath}" = "xyes"; then
AC_MSG_RESULT([invalid])
AC_MSG_ERROR([The --with-jni-libpath option requires an argument.])
else
HOTSPOT_OVERRIDE_LIBPATH=${with_jni_libpath}
if test "x$OPENJDK_TARGET_OS" != "xlinux" &&
test "x$OPENJDK_TARGET_OS" != "xbsd" &&
test "x$OPENJDK_TARGET_OS" != "xaix"; then
AC_MSG_RESULT([fail])
AC_MSG_ERROR([Overriding JNI library path is supported only on Linux, BSD and AIX.])
fi
AC_MSG_RESULT(${HOTSPOT_OVERRIDE_LIBPATH})
fi
AC_SUBST(HOTSPOT_OVERRIDE_LIBPATH)
])
###############################################################################
@@ -350,16 +357,6 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_DEBUG_SYMBOLS],
AC_MSG_ERROR([Allowed native debug symbols are: none, internal, external, zipped])
fi
# --enable-debug-symbols is deprecated.
# Please use --with-native-debug-symbols=[internal,external,zipped] .
BASIC_DEPRECATED_ARG_ENABLE(debug-symbols, debug_symbols,
[Please use --with-native-debug-symbols=[[internal,external,zipped]] .])
# --enable-zip-debug-info is deprecated.
# Please use --with-native-debug-symbols=zipped .
BASIC_DEPRECATED_ARG_ENABLE(zip-debug-info, zip_debug_info,
[Please use --with-native-debug-symbols=zipped .])
AC_SUBST(COMPILE_WITH_DEBUG_SYMBOLS)
AC_SUBST(COPY_DEBUG_SYMBOLS)
AC_SUBST(ZIP_EXTERNAL_DEBUG_SYMBOLS)
@@ -398,8 +395,37 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_CODE_COVERAGE],
elif test "x$enable_native_coverage" != "x"; then
AC_MSG_ERROR([--enable-native-coverage can only be assigned "yes" or "no"])
fi
AC_SUBST(GCOV_ENABLED)
AC_ARG_WITH(jcov, [AS_HELP_STRING([--with-jcov],
[jcov library location])])
AC_ARG_WITH(jcov-input-jdk, [AS_HELP_STRING([--with-jcov-input-jdk],
[jdk image to instrument])])
JCOV_HOME=
JCOV_INPUT_JDK=
JCOV_ENABLED=
if test "x$with_jcov" = "x" ; then
JCOV_ENABLED="false"
else
JCOV_HOME="$with_jcov"
if test ! -f "$JCOV_HOME/lib/jcov.jar"; then
AC_MSG_RESULT([fail])
AC_MSG_ERROR([Invalid JCov bundle: "$JCOV_HOME/lib/jcov.jar" does not exist])
fi
JCOV_ENABLED="true"
BASIC_FIXUP_PATH(JCOV_HOME)
if test "x$with_jcov_input_jdk" != "x" ; then
JCOV_INPUT_JDK="$with_jcov_input_jdk"
if test ! -f "$JCOV_INPUT_JDK/bin/java$EXE_SUFFIX"; then
AC_MSG_RESULT([fail])
AC_MSG_ERROR([Invalid JDK bundle: "$JCOV_INPUT_JDK/bin/java$EXE_SUFFIX" does not exist])
fi
BASIC_FIXUP_PATH(JCOV_INPUT_JDK)
fi
fi
AC_SUBST(JCOV_ENABLED)
AC_SUBST(JCOV_HOME)
AC_SUBST(JCOV_INPUT_JDK)
])
###############################################################################
@@ -552,7 +578,7 @@ AC_DEFUN_ONCE([JDKOPT_ENABLE_DISABLE_GENERATE_CLASSLIST],
# Check if it's likely that it's possible to generate the classlist. Depending
# on exact jvm configuration it could be possible anyway.
if test "x$ENABLE_CDS" = "xtrue" && (HOTSPOT_CHECK_JVM_VARIANT(server) || HOTSPOT_CHECK_JVM_VARIANT(client)); then
if test "x$ENABLE_CDS" = "xtrue" && (HOTSPOT_CHECK_JVM_VARIANT(server) || HOTSPOT_CHECK_JVM_VARIANT(client) || HOTSPOT_CHECK_JVM_FEATURE(cds)); then
ENABLE_GENERATE_CLASSLIST_POSSIBLE="true"
else
ENABLE_GENERATE_CLASSLIST_POSSIBLE="false"
@@ -604,3 +630,63 @@ AC_DEFUN([JDKOPT_EXCLUDE_TRANSLATIONS],
AC_SUBST(EXCLUDE_TRANSLATIONS)
])
################################################################################
#
# Optionally disable man pages
#
AC_DEFUN([JDKOPT_ENABLE_DISABLE_MANPAGES],
[
AC_ARG_ENABLE([manpages], [AS_HELP_STRING([--disable-manpages],
[Set to disable copy of static man pages @<:@enabled@:>@])])
BUILD_MANPAGES="true"
AC_MSG_CHECKING([if static man pages should be copied])
if test "x$enable_manpages" = "x"; then
AC_MSG_RESULT([yes])
elif test "x$enable_manpages" = "xyes"; then
AC_MSG_RESULT([yes, forced])
elif test "x$enable_manpages" = "xno"; then
AC_MSG_RESULT([no, forced])
BUILD_MANPAGES="false"
else
AC_MSG_RESULT([no])
AC_MSG_ERROR([--enable-manpages can only yes/no or empty])
fi
AC_SUBST(BUILD_MANPAGES)
])
################################################################################
#
# Disable the default CDS archive generation
# cross compilation - disabled
#
AC_DEFUN([JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE],
[
AC_ARG_ENABLE([cds-archive], [AS_HELP_STRING([--disable-cds-archive],
[Set to disable generation of a default CDS archive in the product image @<:@enabled@:>@])])
AC_MSG_CHECKING([if a default CDS archive should be generated])
if test "x$ENABLE_CDS" = "xfalse"; then
AC_MSG_RESULT([no, because CDS is disabled])
BUILD_CDS_ARCHIVE="false"
elif test "x$COMPILE_TYPE" = "xcross"; then
AC_MSG_RESULT([no, not possible with cross compilation])
BUILD_CDS_ARCHIVE="false"
elif test "x$enable_cds_archive" = "xyes"; then
AC_MSG_RESULT([yes, forced])
BUILD_CDS_ARCHIVE="true"
elif test "x$enable_cds_archive" = "x"; then
AC_MSG_RESULT([yes])
BUILD_CDS_ARCHIVE="true"
elif test "x$enable_cds_archive" = "xno"; then
AC_MSG_RESULT([no, forced])
BUILD_CDS_ARCHIVE="false"
else
AC_MSG_RESULT([no])
AC_MSG_ERROR([--enable-cds_archive can only be yes/no or empty])
fi
AC_SUBST(BUILD_CDS_ARCHIVE)
])

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2015, 2018, 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
@@ -57,15 +57,6 @@ AC_DEFUN([JDKVER_CHECK_AND_SET_NUMBER],
AC_DEFUN_ONCE([JDKVER_SETUP_JDK_VERSION_NUMBERS],
[
# Warn user that old version arguments are deprecated.
BASIC_DEPRECATED_ARG_WITH([milestone])
BASIC_DEPRECATED_ARG_WITH([update-version])
BASIC_DEPRECATED_ARG_WITH([user-release-suffix])
BASIC_DEPRECATED_ARG_WITH([build-number])
BASIC_DEPRECATED_ARG_WITH([version-major])
BASIC_DEPRECATED_ARG_WITH([version-minor])
BASIC_DEPRECATED_ARG_WITH([version-security])
# Source the version numbers file
. $AUTOCONF_DIR/version-numbers
@@ -100,7 +91,9 @@ AC_DEFUN_ONCE([JDKVER_SETUP_JDK_VERSION_NUMBERS],
AC_MSG_ERROR([--with-vendor-url must have a value])
elif [ ! [[ $with_vendor_url =~ ^[[:print:]]*$ ]] ]; then
AC_MSG_ERROR([--with-vendor-url contains non-printing characters: $with_vendor_url])
else
elif test "x$with_vendor_url" != x; then
# Only set VENDOR_URL if '--with-vendor-url' was used and is not empty.
# Otherwise we will use the value from "version-numbers" included above.
VENDOR_URL="$with_vendor_url"
fi
AC_SUBST(VENDOR_URL)
@@ -112,7 +105,9 @@ AC_DEFUN_ONCE([JDKVER_SETUP_JDK_VERSION_NUMBERS],
AC_MSG_ERROR([--with-vendor-bug-url must have a value])
elif [ ! [[ $with_vendor_bug_url =~ ^[[:print:]]*$ ]] ]; then
AC_MSG_ERROR([--with-vendor-bug-url contains non-printing characters: $with_vendor_bug_url])
else
elif test "x$with_vendor_bug_url" != x; then
# Only set VENDOR_URL_BUG if '--with-vendor-bug-url' was used and is not empty.
# Otherwise we will use the value from "version-numbers" included above.
VENDOR_URL_BUG="$with_vendor_bug_url"
fi
AC_SUBST(VENDOR_URL_BUG)
@@ -139,15 +134,18 @@ AC_DEFUN_ONCE([JDKVER_SETUP_JDK_VERSION_NUMBERS],
AC_MSG_ERROR([--with-version-string must have a value])
elif test "x$with_version_string" != x; then
# Additional [] needed to keep m4 from mangling shell constructs.
if [ [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ]; then
if [ [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ]; then
VERSION_FEATURE=${BASH_REMATCH[[1]]}
VERSION_INTERIM=${BASH_REMATCH[[3]]}
VERSION_UPDATE=${BASH_REMATCH[[5]]}
VERSION_PATCH=${BASH_REMATCH[[7]]}
VERSION_PRE=${BASH_REMATCH[[9]]}
version_plus_separator=${BASH_REMATCH[[11]]}
VERSION_BUILD=${BASH_REMATCH[[12]]}
VERSION_OPT=${BASH_REMATCH[[14]]}
VERSION_EXTRA1=${BASH_REMATCH[[9]]}
VERSION_EXTRA2=${BASH_REMATCH[[11]]}
VERSION_EXTRA3=${BASH_REMATCH[[13]]}
VERSION_PRE=${BASH_REMATCH[[15]]}
version_plus_separator=${BASH_REMATCH[[17]]}
VERSION_BUILD=${BASH_REMATCH[[18]]}
VERSION_OPT=${BASH_REMATCH[[20]]}
# Unspecified numerical fields are interpreted as 0.
if test "x$VERSION_INTERIM" = x; then
VERSION_INTERIM=0
@@ -158,6 +156,15 @@ AC_DEFUN_ONCE([JDKVER_SETUP_JDK_VERSION_NUMBERS],
if test "x$VERSION_PATCH" = x; then
VERSION_PATCH=0
fi
if test "x$VERSION_EXTRA1" = x; then
VERSION_EXTRA1=0
fi
if test "x$VERSION_EXTRA2" = x; then
VERSION_EXTRA2=0
fi
if test "x$VERSION_EXTRA3" = x; then
VERSION_EXTRA3=0
fi
if test "x$version_plus_separator" != x \
&& test "x$VERSION_BUILD$VERSION_OPT" = x; then
AC_MSG_ERROR([Version string contains + but both 'BUILD' and 'OPT' are missing])
@@ -327,6 +334,72 @@ AC_DEFUN_ONCE([JDKVER_SETUP_JDK_VERSION_NUMBERS],
fi
fi
# The 1st version extra number, if any
AC_ARG_WITH(version-extra1, [AS_HELP_STRING([--with-version-extra1],
[Set 1st version extra number @<:@not specified@:>@])],
[with_version_extra1_present=true], [with_version_extra1_present=false])
if test "x$with_version_extra1_present" = xtrue; then
if test "x$with_version_extra1" = xyes; then
AC_MSG_ERROR([--with-version-extra1 must have a value])
elif test "x$with_version_extra1" = xno; then
# Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
VERSION_EXTRA1=0
elif test "x$with_version_extra1" = x; then
VERSION_EXTRA1=0
else
JDKVER_CHECK_AND_SET_NUMBER(VERSION_EXTRA1, $with_version_extra1)
fi
else
if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
VERSION_EXTRA1=$DEFAULT_VERSION_EXTRA1
fi
fi
# The 2nd version extra number, if any
AC_ARG_WITH(version-extra2, [AS_HELP_STRING([--with-version-extra2],
[Set 2nd version extra number @<:@not specified@:>@])],
[with_version_extra2_present=true], [with_version_extra2_present=false])
if test "x$with_version_extra2_present" = xtrue; then
if test "x$with_version_extra2" = xyes; then
AC_MSG_ERROR([--with-version-extra2 must have a value])
elif test "x$with_version_extra2" = xno; then
# Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
VERSION_EXTRA2=0
elif test "x$with_version_extra2" = x; then
VERSION_EXTRA2=0
else
JDKVER_CHECK_AND_SET_NUMBER(VERSION_EXTRA2, $with_version_extra2)
fi
else
if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
VERSION_EXTRA2=$DEFAULT_VERSION_EXTRA2
fi
fi
# The 3rd version extra number, if any
AC_ARG_WITH(version-extra3, [AS_HELP_STRING([--with-version-extra3],
[Set 3rd version extra number @<:@not specified@:>@])],
[with_version_extra3_present=true], [with_version_extra3_present=false])
if test "x$with_version_extra3_present" = xtrue; then
if test "x$with_version_extra3" = xyes; then
AC_MSG_ERROR([--with-version-extra3 must have a value])
elif test "x$with_version_extra3" = xno; then
# Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
VERSION_EXTRA3=0
elif test "x$with_version_extra3" = x; then
VERSION_EXTRA3=0
else
JDKVER_CHECK_AND_SET_NUMBER(VERSION_EXTRA3, $with_version_extra3)
fi
else
if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
VERSION_EXTRA3=$DEFAULT_VERSION_EXTRA3
fi
fi
# Calculate derived version properties
# Set VERSION_IS_GA based on if VERSION_PRE has a value
@@ -339,9 +412,12 @@ AC_DEFUN_ONCE([JDKVER_SETUP_JDK_VERSION_NUMBERS],
# VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
VERSION_NUMBER_FOUR_POSITIONS=$VERSION_FEATURE.$VERSION_INTERIM.$VERSION_UPDATE.$VERSION_PATCH
stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
# VERSION_NUMBER but always with all positions, with 0 for empty positions.
VERSION_NUMBER_ALL_POSITIONS=$VERSION_NUMBER_FOUR_POSITIONS.$VERSION_EXTRA1.$VERSION_EXTRA2.$VERSION_EXTRA3
stripped_version_number=$VERSION_NUMBER_ALL_POSITIONS
# Strip trailing zeroes from stripped_version_number
for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
for i in 1 2 3 4 5 6 ; do stripped_version_number=${stripped_version_number%.0} ; done
VERSION_NUMBER=$stripped_version_number
# The complete version string, with additional build information
@@ -362,7 +438,7 @@ AC_DEFUN_ONCE([JDKVER_SETUP_JDK_VERSION_NUMBERS],
AC_MSG_ERROR([--with-version-date must have a value])
elif test "x$with_version_date" != x; then
if [ ! [[ $with_version_date =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]] ]; then
AC_MSG_ERROR(["$with_version_date" is not a valid version date])
AC_MSG_ERROR(["$with_version_date" is not a valid version date])
else
VERSION_DATE="$with_version_date"
fi
@@ -392,6 +468,9 @@ AC_DEFUN_ONCE([JDKVER_SETUP_JDK_VERSION_NUMBERS],
AC_SUBST(VERSION_INTERIM)
AC_SUBST(VERSION_UPDATE)
AC_SUBST(VERSION_PATCH)
AC_SUBST(VERSION_EXTRA1)
AC_SUBST(VERSION_EXTRA2)
AC_SUBST(VERSION_EXTRA3)
AC_SUBST(VERSION_PRE)
AC_SUBST(VERSION_BUILD)
AC_SUBST(VERSION_OPT)

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2018, 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

View File

@@ -186,6 +186,9 @@ AC_DEFUN_ONCE([LIB_SETUP_FREETYPE],
FREETYPE_BASE_DIR="$SYSROOT/usr"
if (test "x$OPENJDK_TARGET_CPU_BITS" = "x64"); then
LIB_CHECK_POTENTIAL_FREETYPE([$FREETYPE_BASE_DIR/include], [$FREETYPE_BASE_DIR/lib/$OPENJDK_TARGET_CPU-linux-gnu], [well-known location])
if (test "x$FOUND_FREETYPE" != "xyes"); then
LIB_CHECK_POTENTIAL_FREETYPE([$FREETYPE_BASE_DIR/include], [$FREETYPE_BASE_DIR/lib64], [well-known location])
fi
else
LIB_CHECK_POTENTIAL_FREETYPE([$FREETYPE_BASE_DIR/include], [$FREETYPE_BASE_DIR/lib/i386-linux-gnu], [well-known location])
if (test "x$FOUND_FREETYPE" != "xyes"); then

View File

@@ -55,3 +55,65 @@ AC_DEFUN_ONCE([LIB_TESTS_SETUP_GRAALUNIT],
AC_SUBST(GRAALUNIT_LIB)
])
###############################################################################
#
# Setup and check the Java Microbenchmark Harness
#
AC_DEFUN_ONCE([LIB_TESTS_SETUP_JMH],
[
AC_ARG_WITH(jmh, [AS_HELP_STRING([--with-jmh],
[Java Microbenchmark Harness for building the OpenJDK Microbenchmark Suite])])
AC_MSG_CHECKING([for jmh (Java Microbenchmark Harness)])
if test "x$with_jmh" = xno || test "x$with_jmh" = x; then
AC_MSG_RESULT([no, disabled])
elif test "x$with_jmh" = xyes; then
AC_MSG_RESULT([no, error])
AC_MSG_ERROR([--with-jmh requires a directory containing all jars needed by JMH])
else
# Path specified
JMH_HOME="$with_jmh"
if test ! -d [$JMH_HOME]; then
AC_MSG_RESULT([no, error])
AC_MSG_ERROR([$JMH_HOME does not exist or is not a directory])
fi
BASIC_FIXUP_PATH([JMH_HOME])
jar_names="jmh-core jmh-generator-annprocess jopt-simple commons-math3"
for jar in $jar_names; do
found_jar_files=$($ECHO $(ls $JMH_HOME/$jar-*.jar 2> /dev/null))
if test "x$found_jar_files" = x; then
AC_MSG_RESULT([no])
AC_MSG_ERROR([--with-jmh does not contain $jar-*.jar])
elif ! test -e "$found_jar_files"; then
AC_MSG_RESULT([no])
AC_MSG_ERROR([--with-jmh contain multiple $jar-*.jar: $found_jar_files])
fi
found_jar_var_name=found_${jar//-/_}
eval $found_jar_var_name='"'$found_jar_files'"'
done
AC_MSG_RESULT([yes])
JMH_CORE_JAR=$found_jmh_core
JMH_GENERATOR_JAR=$found_jmh_generator_annprocess
JMH_JOPT_SIMPLE_JAR=$found_jopt_simple
JMH_COMMONS_MATH_JAR=$found_commons_math3
if [ [[ "$JMH_CORE_JAR" =~ jmh-core-(.*)\.jar$ ]] ] ; then
JMH_VERSION=${BASH_REMATCH[[1]]}
else
JMH_VERSION=unknown
fi
AC_MSG_NOTICE([JMH core version: $JMH_VERSION])
fi
AC_SUBST(JMH_CORE_JAR)
AC_SUBST(JMH_GENERATOR_JAR)
AC_SUBST(JMH_JOPT_SIMPLE_JAR)
AC_SUBST(JMH_COMMONS_MATH_JAR)
AC_SUBST(JMH_VERSION)
])

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2018, 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
@@ -99,8 +99,16 @@ AC_DEFUN_ONCE([LIB_SETUP_X11],
OLD_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS"
HEADERS_TO_CHECK="X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h"
# There is no Xrandr extension on AIX
if test "x$OPENJDK_TARGET_OS" = xaix; then
X_CFLAGS="$X_CFLAGS -DNO_XRANDR"
else
HEADERS_TO_CHECK="$HEADERS_TO_CHECK X11/extensions/Xrandr.h"
fi
# Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10
AC_CHECK_HEADERS([X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h],
AC_CHECK_HEADERS([$HEADERS_TO_CHECK],
[X11_HEADERS_OK=yes],
[X11_HEADERS_OK=no; break],
[
@@ -111,7 +119,7 @@ AC_DEFUN_ONCE([LIB_SETUP_X11],
if test "x$X11_HEADERS_OK" = xno; then
HELP_MSG_MISSING_DEPENDENCY([x11])
AC_MSG_ERROR([Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG])
AC_MSG_ERROR([Could not find all X11 headers (shape.h Xrender.h Xrander.h XTest.h Intrinsic.h). $HELP_MSG])
fi
# If XLinearGradient isn't available in Xrender.h, signal that it needs to be

View File

@@ -180,13 +180,6 @@ AC_DEFUN_ONCE([LIB_SETUP_MISC_LIBS],
AC_SUBST(LIBDL)
LIBS="$save_LIBS"
# Deprecated libraries, keep the flags for backwards compatibility
if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
BASIC_DEPRECATED_ARG_WITH([dxsdk])
BASIC_DEPRECATED_ARG_WITH([dxsdk-lib])
BASIC_DEPRECATED_ARG_WITH([dxsdk-include])
fi
# Control if libzip can use mmap. Available for purposes of overriding.
LIBZIP_CAN_USE_MMAP=true
AC_SUBST(LIBZIP_CAN_USE_MMAP)
@@ -217,4 +210,3 @@ AC_DEFUN_ONCE([LIB_SETUP_SOLARIS_STLPORT],
AC_SUBST(STLPORT_LIB)
fi
])

View File

@@ -30,6 +30,12 @@ AC_DEFUN([PLATFORM_EXTRACT_VARS_FROM_CPU],
[
# First argument is the cpu name from the trip/quad
case "$1" in
x86_64*x32)
VAR_CPU=x32
VAR_CPU_ARCH=x86
VAR_CPU_BITS=32
VAR_CPU_ENDIAN=little
;;
x86_64)
VAR_CPU=x86_64
VAR_CPU_ARCH=x86
@@ -182,6 +188,10 @@ AC_DEFUN([PLATFORM_EXTRACT_VARS_FROM_OS],
VAR_OS=windows
VAR_OS_ENV=windows.cygwin
;;
*wsl*)
VAR_OS=windows
VAR_OS_ENV=windows.wsl
;;
*mingw*)
VAR_OS=windows
VAR_OS_ENV=windows.msys
@@ -455,6 +465,8 @@ AC_DEFUN([PLATFORM_SETUP_LEGACY_VARS_HELPER],
HOTSPOT_$1_CPU_DEFINE=IA32
elif test "x$OPENJDK_$1_CPU" = xx86_64; then
HOTSPOT_$1_CPU_DEFINE=AMD64
elif test "x$OPENJDK_$1_CPU" = xx32; then
HOTSPOT_$1_CPU_DEFINE=X32
elif test "x$OPENJDK_$1_CPU" = xsparcv9; then
HOTSPOT_$1_CPU_DEFINE=SPARC
elif test "x$OPENJDK_$1_CPU" = xaarch64; then

View File

@@ -122,7 +122,12 @@ ORIGINAL_PATH:=@ORIGINAL_PATH@
ifeq ($(OPENJDK_TARGET_OS), windows)
# On Windows, the Visual Studio toolchain needs the PATH to be adjusted
# to include Visual Studio tools (this needs to be in cygwin/msys style).
export PATH:=@VS_PATH@
ifeq ($(OPENJDK_TARGET_OS_ENV), windows.wsl)
export FIXPATH_PATH:=@VS_PATH_WINDOWS@
export WSLENV:=$(WSLENV):FIXPATH_PATH:DEBUG_FIXPATH
else
export PATH:=@VS_PATH@
endif
endif
SYSROOT_CFLAGS := @SYSROOT_CFLAGS@
@@ -165,6 +170,9 @@ VERSION_FEATURE := @VERSION_FEATURE@
VERSION_INTERIM := @VERSION_INTERIM@
VERSION_UPDATE := @VERSION_UPDATE@
VERSION_PATCH := @VERSION_PATCH@
VERSION_EXTRA1 := @VERSION_EXTRA1@
VERSION_EXTRA2 := @VERSION_EXTRA2@
VERSION_EXTRA3 := @VERSION_EXTRA3@
# The pre-release identifier (string)
VERSION_PRE := @VERSION_PRE@
# The build number (numerical)
@@ -203,6 +211,9 @@ VERSION_CFLAGS := \
-DVERSION_INTERIM=$(VERSION_INTERIM) \
-DVERSION_UPDATE=$(VERSION_UPDATE) \
-DVERSION_PATCH=$(VERSION_PATCH) \
-DVERSION_EXTRA1=$(VERSION_EXTRA1) \
-DVERSION_EXTRA2=$(VERSION_EXTRA2) \
-DVERSION_EXTRA3=$(VERSION_EXTRA3) \
-DVERSION_PRE='"$(VERSION_PRE)"' \
-DVERSION_BUILD=$(VERSION_BUILD) \
-DVERSION_OPT='"$(VERSION_OPT)"' \
@@ -222,7 +233,8 @@ ifneq ($(COMPANY_NAME),)
# Only export "VENDOR" to the build if COMPANY_NAME contains a real value.
# Otherwise the default value for VENDOR, which is used to set the "java.vendor"
# and "java.vm.vendor" properties is hard-coded into the source code (i.e. in
# System.c in the jdk for "vm.vendor" and vm_version.cpp in the VM for "java.vm.vendor")
# VersionProps.java.template in the jdk for "vm.vendor" and
# vm_version.cpp in the VM for "java.vm.vendor")
ifneq ($(COMPANY_NAME), N/A)
VERSION_CFLAGS += -DVENDOR='"$(COMPANY_NAME)"'
endif
@@ -248,10 +260,6 @@ RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)
DEBUG_LEVEL:=@DEBUG_LEVEL@
HOTSPOT_DEBUG_LEVEL:=@HOTSPOT_DEBUG_LEVEL@
# This is the JDK variant to build.
# The JDK variant is a name for a specific set of modules to be compiled for the JDK.
JDK_VARIANT:=@JDK_VARIANT@
# Which JVM variants to build (space-separated list)
JVM_VARIANTS := @JVM_VARIANTS@
JVM_VARIANT_MAIN := @JVM_VARIANT_MAIN@
@@ -272,6 +280,9 @@ VALID_JVM_VARIANTS := @VALID_JVM_VARIANTS@
# Control wether Hotspot builds gtest tests
BUILD_GTEST := @BUILD_GTEST@
# Allow overriding the default hotspot library path
HOTSPOT_OVERRIDE_LIBPATH := @HOTSPOT_OVERRIDE_LIBPATH@
# Control use of precompiled header in hotspot libjvm build
USE_PRECOMPILED_HEADER := @USE_PRECOMPILED_HEADER@
@@ -305,6 +316,10 @@ ENABLE_GENERATE_CLASSLIST := @ENABLE_GENERATE_CLASSLIST@
EXCLUDE_TRANSLATIONS := @EXCLUDE_TRANSLATIONS@
BUILD_MANPAGES := @BUILD_MANPAGES@
BUILD_CDS_ARCHIVE := @BUILD_CDS_ARCHIVE@
# The boot jdk to use. This is overridden in bootcycle-spec.gmk. Make sure to keep
# it in sync.
BOOT_JDK:=@BOOT_JDK@
@@ -349,7 +364,11 @@ ENABLE_LIBFFI_BUNDLING:=@ENABLE_LIBFFI_BUNDLING@
LIBFFI_LIB_FILE:=@LIBFFI_LIB_FILE@
GRAALUNIT_LIB := @GRAALUNIT_LIB@
PACKAGE_PATH=@PACKAGE_PATH@
JMH_CORE_JAR := @JMH_CORE_JAR@
JMH_GENERATOR_JAR := @JMH_GENERATOR_JAR@
JMH_JOPT_SIMPLE_JAR := @JMH_JOPT_SIMPLE_JAR@
JMH_COMMONS_MATH_JAR := @JMH_COMMONS_MATH_JAR@
JMH_VERSION := @JMH_VERSION@
# Source file for cacerts
CACERTS_FILE=@CACERTS_FILE@
@@ -358,6 +377,9 @@ CACERTS_FILE=@CACERTS_FILE@
UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
GCOV_ENABLED=@GCOV_ENABLED@
JCOV_ENABLED=@JCOV_ENABLED@
JCOV_HOME=@JCOV_HOME@
JCOV_INPUT_JDK=@JCOV_INPUT_JDK@
# AddressSanitizer
export ASAN_ENABLED:=@ASAN_ENABLED@
@@ -421,6 +443,10 @@ CXX_FLAG_DEPS:=@CXX_FLAG_DEPS@
DISABLE_WARNING_PREFIX := @DISABLE_WARNING_PREFIX@
CFLAGS_WARNINGS_ARE_ERRORS:=@CFLAGS_WARNINGS_ARE_ERRORS@
LDFLAGS_WARNINGS_ARE_ERRORS:=@LDFLAGS_WARNINGS_ARE_ERRORS@
DISABLED_WARNINGS := @DISABLED_WARNINGS@
DISABLED_WARNINGS_C := @DISABLED_WARNINGS_C@
DISABLED_WARNINGS_CXX := @DISABLED_WARNINGS_CXX@
# A global flag (true or false) determining if native warnings are considered errors.
WARNINGS_AS_ERRORS := @WARNINGS_AS_ERRORS@
@@ -442,6 +468,7 @@ CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@
LIBJSIG_HASHSTYLE_LDFLAGS := @LIBJSIG_HASHSTYLE_LDFLAGS@
LIBJSIG_NOEXECSTACK_LDFLAGS := @LIBJSIG_NOEXECSTACK_LDFLAGS@
FDLIBM_CFLAGS := @FDLIBM_CFLAGS@
JVM_CFLAGS := @JVM_CFLAGS@
JVM_LDFLAGS := @JVM_LDFLAGS@
JVM_ASFLAGS := @JVM_ASFLAGS@
@@ -481,11 +508,6 @@ LDCXX:=@FIXPATH@ @LDCXX@
LIBCXX:=@LIBCXX@
# Compiler and linker flags used when building native tests
CFLAGS_TESTLIB:=@CFLAGS_TESTLIB@
CXXFLAGS_TESTLIB:=@CXXFLAGS_TESTLIB@
CFLAGS_TESTEXE:=@CFLAGS_TESTEXE@
CXXFLAGS_TESTEXE:=@CXXFLAGS_TESTEXE@
LDFLAGS_TESTLIB:=@LDFLAGS_TESTLIB@
LDFLAGS_TESTEXE:=@LDFLAGS_TESTEXE@
# BUILD_CC/BUILD_LD is a compiler/linker that generates code that is runnable on the
@@ -532,6 +554,7 @@ COPY_DEBUG_SYMBOLS := @COPY_DEBUG_SYMBOLS@
ZIP_EXTERNAL_DEBUG_SYMBOLS := @ZIP_EXTERNAL_DEBUG_SYMBOLS@
CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
ASFLAGS_DEBUG_SYMBOLS:=@ASFLAGS_DEBUG_SYMBOLS@
#
# Compress (or not) jars
@@ -714,12 +737,13 @@ EXPR:=@EXPR@
FILE:=@FILE@
DOT:=@DOT@
HG:=@HG@
GIT:=@GIT@
OBJCOPY:=@OBJCOPY@
SETFILE:=@SETFILE@
XATTR:=@XATTR@
JT_HOME:=@JT_HOME@
JTREGEXE:=@JTREGEXE@
JIB_JAR:=@JIB_JAR@
JIB_HOME:=@JIB_HOME@
XCODEBUILD=@XCODEBUILD@
DTRACE := @DTRACE@
FIXPATH:=@FIXPATH@
@@ -742,6 +766,7 @@ MSVCR_DLL:=@MSVCR_DLL@
MSVCP_DLL:=@MSVCP_DLL@
UCRT_DLL_DIR:=@UCRT_DLL_DIR@
STLPORT_LIB:=@STLPORT_LIB@
ENABLE_PANDOC:=@ENABLE_PANDOC@
####################################################
#
@@ -814,6 +839,7 @@ PNG_CFLAGS:=@PNG_CFLAGS@
INCLUDE_SA=@INCLUDE_SA@
INCLUDE_GRAAL=@INCLUDE_GRAAL@
INCLUDE_JVMCI=@INCLUDE_JVMCI@
OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
OS_VERSION_MINOR:=@OS_VERSION_MINOR@
@@ -822,10 +848,12 @@ OS_VERSION_MICRO:=@OS_VERSION_MICRO@
# Images directory definitions
JDK_IMAGE_SUBDIR:=jdk
JRE_IMAGE_SUBDIR:=jre
JCOV_IMAGE_SUBDIR := jdk-jcov
# Colon left out to be able to override output dir for bootcycle-images
JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
JCOV_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(JCOV_IMAGE_SUBDIR)
# Test image, as above
TEST_IMAGE_SUBDIR:=test
@@ -872,12 +900,14 @@ JDK_SYMBOLS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART)-symbols.tar.gz
TEST_DEMOS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests-demos$(DEBUG_PART).tar.gz
TEST_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests$(DEBUG_PART).tar.gz
DOCS_BUNDLE_NAME := jdk-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
JCOV_BUNDLE_NAME := jdk-jcov-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_BUNDLE_NAME)
JDK_SYMBOLS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_SYMBOLS_BUNDLE_NAME)
TEST_DEMOS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(TEST_DEMOS_BUNDLE_NAME)
TEST_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(TEST_BUNDLE_NAME)
DOCS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(DOCS_BUNDLE_NAME)
JCOV_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JCOV_BUNDLE_NAME)
# This macro is called to allow inclusion of closed source counterparts.
# Unless overridden in closed sources, it expands to nothing.

View File

@@ -180,7 +180,6 @@ AC_DEFUN([TOOLCHAIN_SETUP_FILENAME_PATTERNS],
SHARED_LIBRARY='[$]1.dll'
STATIC_LIBRARY='[$]1.lib'
OBJ_SUFFIX='.obj'
EXE_SUFFIX='.exe'
else
LIBRARY_PREFIX=lib
SHARED_LIBRARY_SUFFIX='.so'
@@ -188,7 +187,6 @@ AC_DEFUN([TOOLCHAIN_SETUP_FILENAME_PATTERNS],
SHARED_LIBRARY='lib[$]1.so'
STATIC_LIBRARY='lib[$]1.a'
OBJ_SUFFIX='.o'
EXE_SUFFIX=''
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
# For full static builds, we're overloading the SHARED_LIBRARY
# variables in order to limit the amount of changes required.
@@ -212,7 +210,6 @@ AC_DEFUN([TOOLCHAIN_SETUP_FILENAME_PATTERNS],
AC_SUBST(SHARED_LIBRARY)
AC_SUBST(STATIC_LIBRARY)
AC_SUBST(OBJ_SUFFIX)
AC_SUBST(EXE_SUFFIX)
])
# Determine which toolchain type to use, and make sure it is valid for this
@@ -232,6 +229,7 @@ AC_DEFUN_ONCE([TOOLCHAIN_DETERMINE_TOOLCHAIN_TYPE],
XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1`
$ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null
if test $? -ne 0; then
AC_MSG_NOTICE([xcodebuild output: $XCODE_VERSION_OUTPUT])
AC_MSG_ERROR([Failed to determine Xcode version.])
fi
XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \
@@ -280,13 +278,13 @@ AC_DEFUN_ONCE([TOOLCHAIN_DETERMINE_TOOLCHAIN_TYPE],
TOOLCHAIN_CC_BINARY_clang="clang"
TOOLCHAIN_CC_BINARY_gcc="gcc"
TOOLCHAIN_CC_BINARY_microsoft="cl"
TOOLCHAIN_CC_BINARY_microsoft="cl$EXE_SUFFIX"
TOOLCHAIN_CC_BINARY_solstudio="cc"
TOOLCHAIN_CC_BINARY_xlc="xlc_r"
TOOLCHAIN_CXX_BINARY_clang="clang++"
TOOLCHAIN_CXX_BINARY_gcc="g++"
TOOLCHAIN_CXX_BINARY_microsoft="cl"
TOOLCHAIN_CXX_BINARY_microsoft="cl$EXE_SUFFIX"
TOOLCHAIN_CXX_BINARY_solstudio="CC"
TOOLCHAIN_CXX_BINARY_xlc="xlC_r"
@@ -332,9 +330,17 @@ AC_DEFUN_ONCE([TOOLCHAIN_PRE_DETECTION],
if test "x$OPENJDK_BUILD_OS" = "xwindows" \
&& test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then
TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV
# Reset path to VS_PATH. It will include everything that was on PATH at the time we
# ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV.
PATH="$VS_PATH"
if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
# Append VS_PATH. In WSL, VS_PATH will not contain the WSL env path needed
# for using basic Unix tools, so need to keep the original PATH.
BASIC_APPEND_TO_PATH(PATH, $VS_PATH)
BASIC_APPEND_TO_PATH(WSLENV, "PATH/l:LIB:INCLUDE")
export WSLENV
else
# Reset path to VS_PATH. It will include everything that was on PATH at the time we
# ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV.
PATH="$VS_PATH"
fi
# The microsoft toolchain also requires INCLUDE and LIB to be set.
export INCLUDE="$VS_INCLUDE"
export LIB="$VS_LIB"
@@ -429,7 +435,7 @@ AC_DEFUN([TOOLCHAIN_EXTRACT_COMPILER_VERSION],
# There is no specific version flag, but all output starts with a version string.
# First line typically looks something like:
# Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'`
COMPILER_VERSION_OUTPUT=`"$COMPILER" 2>&1 | $GREP -v 'ERROR.*UtilTranslatePathList' | $HEAD -n 1 | $TR -d '\r'`
# Check that this is likely to be Microsoft CL.EXE.
$ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null
if test $? -ne 0; then
@@ -697,7 +703,7 @@ AC_DEFUN_ONCE([TOOLCHAIN_DETECT_TOOLCHAIN_CORE],
# In the Microsoft toolchain we have a separate LD command "link".
# Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is
# a cygwin program for something completely different.
AC_CHECK_PROG([LD], [link],[link],,, [$CYGWIN_LINK])
AC_CHECK_PROG([LD], [link$EXE_SUFFIX],[link$EXE_SUFFIX],,, [$CYGWIN_LINK])
BASIC_FIXUP_EXECUTABLE(LD)
# Verify that we indeed succeeded with this trick.
AC_MSG_CHECKING([if the found link.exe is actually the Visual Studio linker])
@@ -749,7 +755,7 @@ AC_DEFUN_ONCE([TOOLCHAIN_DETECT_TOOLCHAIN_CORE],
#
if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
# The corresponding ar tool is lib.exe (used to create static libraries)
AC_CHECK_PROG([AR], [lib],[lib],,,)
AC_CHECK_PROG([AR], [lib$EXE_SUFFIX],[lib$EXE_SUFFIX],,,)
elif test "x$TOOLCHAIN_TYPE" = xgcc; then
BASIC_CHECK_TOOLS(AR, ar gcc-ar)
else
@@ -773,12 +779,12 @@ AC_DEFUN_ONCE([TOOLCHAIN_DETECT_TOOLCHAIN_EXTRA],
fi
if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
AC_CHECK_PROG([MT], [mt], [mt],,, [/usr/bin/mt])
AC_CHECK_PROG([MT], [mt$EXE_SUFFIX], [mt$EXE_SUFFIX],,, [/usr/bin/mt])
BASIC_FIXUP_EXECUTABLE(MT)
# Setup the resource compiler (RC)
AC_CHECK_PROG([RC], [rc], [rc],,, [/usr/bin/rc])
AC_CHECK_PROG([RC], [rc$EXE_SUFFIX], [rc$EXE_SUFFIX],,, [/usr/bin/rc])
BASIC_FIXUP_EXECUTABLE(RC)
AC_CHECK_PROG([DUMPBIN], [dumpbin], [dumpbin],,,)
AC_CHECK_PROG([DUMPBIN], [dumpbin$EXE_SUFFIX], [dumpbin$EXE_SUFFIX],,,)
BASIC_FIXUP_EXECUTABLE(DUMPBIN)
# We need to check for 'msbuild.exe' because at the place where we expect to
# find 'msbuild.exe' there's also a directory called 'msbuild' and configure
@@ -787,7 +793,7 @@ AC_DEFUN_ONCE([TOOLCHAIN_DETECT_TOOLCHAIN_EXTRA],
# Notice that we intentionally don't fix up the path to MSBUILD because we
# will call it in a DOS shell during freetype detection on Windows (see
# 'LIB_SETUP_FREETYPE' in "libraries.m4"
AC_CHECK_PROG([MSBUILD], [msbuild.exe], [msbuild.exe],,,)
AC_CHECK_PROG([MSBUILD], [msbuild$EXE_SUFFIX], [msbuild$EXE_SUFFIX],,,)
fi
if test "x$OPENJDK_TARGET_OS" = xsolaris; then
@@ -995,15 +1001,10 @@ AC_DEFUN_ONCE([TOOLCHAIN_SETUP_BUILD_COMPILERS],
# Do some additional checks on the detected tools.
AC_DEFUN_ONCE([TOOLCHAIN_MISC_CHECKS],
[
# The package path is used only on macosx?
# FIXME: clean this up, and/or move it elsewhere.
PACKAGE_PATH=/opt/local
AC_SUBST(PACKAGE_PATH)
# Check for extra potential brokenness.
if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
# On Windows, double-check that we got the right compiler.
CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'`
CC_VERSION_OUTPUT=`$CC 2>&1 | $GREP -v 'ERROR.*UtilTranslatePathList' | $HEAD -n 1 | $TR -d '\r'`
COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"`
if test "x$OPENJDK_TARGET_CPU" = "xx86"; then
if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then
@@ -1022,12 +1023,16 @@ AC_DEFUN_ONCE([TOOLCHAIN_MISC_CHECKS],
# This is later checked when setting flags.
fi
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
# Check if linker has -z noexecstack.
HAS_NOEXECSTACK=`$CC -Wl,--help 2>/dev/null | $GREP 'z noexecstack'`
# This is later checked when setting flags.
fi
# Setup hotspot lecagy names for toolchains
HOTSPOT_TOOLCHAIN_TYPE=$TOOLCHAIN_TYPE
if test "x$TOOLCHAIN_TYPE" = xclang; then
HOTSPOT_TOOLCHAIN_TYPE=gcc
elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
HOTSPOT_TOOLCHAIN_TYPE=sparcWorks
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
HOTSPOT_TOOLCHAIN_TYPE=visCPP
fi
@@ -1144,5 +1149,5 @@ AC_DEFUN_ONCE([TOOLCHAIN_SETUP_JIB],
fi
fi
AC_SUBST(JIB_JAR)
AC_SUBST(JIB_HOME)
])

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2018, 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
@@ -115,7 +115,7 @@ AC_DEFUN([TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT],
VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat"
else
VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \
vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat"
VC/Auxiliary/Build/vcvarsx86_amd64.bat VC/Auxiliary/Build/vcvars64.bat"
fi
for VCVARSFILE in $VCVARSFILES; do
@@ -222,7 +222,6 @@ AC_DEFUN([TOOLCHAIN_FIND_VISUAL_STUDIO_BAT_FILE],
[C:/Program Files/$VS_INSTALL_DIR], [well-known name])
TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT([${VS_VERSION}],
[C:/Program Files (x86)/$VS_INSTALL_DIR], [well-known name])
if test "x$SDK_INSTALL_DIR" != x; then
if test "x$ProgramW6432" != x; then
TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT([${VS_VERSION}],
@@ -339,7 +338,7 @@ AC_DEFUN([TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV],
[
# Store path to cygwin link.exe to help excluding it when searching for
# VS linker. This must be done before changing the PATH when looking for VS.
AC_PATH_PROG(CYGWIN_LINK, link)
AC_PATH_PROG(CYGWIN_LINK, link.exe)
if test "x$CYGWIN_LINK" != x; then
AC_MSG_CHECKING([if the first found link.exe is actually the Cygwin link tool])
"$CYGWIN_LINK" --version > /dev/null
@@ -372,8 +371,13 @@ AC_DEFUN([TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV],
# Instead create a shell script which will set the relevant variables when run.
WINPATH_VS_ENV_CMD="$VS_ENV_CMD"
BASIC_WINDOWS_REWRITE_AS_WINDOWS_MIXED_PATH([WINPATH_VS_ENV_CMD])
WINPATH_BASH="$BASH"
BASIC_WINDOWS_REWRITE_AS_WINDOWS_MIXED_PATH([WINPATH_BASH])
if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
WINPATH_BASH="bash"
else
WINPATH_BASH="$BASH"
BASIC_WINDOWS_REWRITE_AS_WINDOWS_MIXED_PATH([WINPATH_BASH])
fi
# Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell
# script (executable by bash) that will setup the important variables.
@@ -381,41 +385,65 @@ AC_DEFUN([TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV],
$ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE
# This will end up something like:
# call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat
$ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE
$ECHO "call \"$WINPATH_VS_ENV_CMD\" $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE
# In some cases, the VS_ENV_CMD will change directory, change back so
# the set-vs-env.sh ends up in the right place.
$ECHO 'cd %~dp0' >> $EXTRACT_VC_ENV_BAT_FILE
# These will end up something like:
# C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh
# The trailing space for everyone except PATH is no typo, but is needed due
# to trailing \ in the Windows paths. These will be stripped later.
$ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \
>> $EXTRACT_VC_ENV_BAT_FILE
$ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' \
>> $EXTRACT_VC_ENV_BAT_FILE
$ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' \
>> $EXTRACT_VC_ENV_BAT_FILE
$ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \
>> $EXTRACT_VC_ENV_BAT_FILE
$ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \
>> $EXTRACT_VC_ENV_BAT_FILE
$ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \
>> $EXTRACT_VC_ENV_BAT_FILE
if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
# These will end up something like:
# echo VS_PATH=\"$PATH\" > set-vs-env.sh
# The trailing space for everyone except PATH is no typo, but is needed due
# to trailing \ in the Windows paths. These will be stripped later.
# Trying pure CMD extract. This results in windows paths that need to
# be converted post extraction, but a simpler script.
$ECHO 'echo VS_PATH="%PATH%" > set-vs-env.sh' \
>> $EXTRACT_VC_ENV_BAT_FILE
$ECHO 'echo VS_INCLUDE="%INCLUDE% " >> set-vs-env.sh' \
>> $EXTRACT_VC_ENV_BAT_FILE
$ECHO 'echo VS_LIB="%LIB% " >> set-vs-env.sh' \
>> $EXTRACT_VC_ENV_BAT_FILE
$ECHO 'echo VCINSTALLDIR="%VCINSTALLDIR% " >> set-vs-env.sh' \
>> $EXTRACT_VC_ENV_BAT_FILE
$ECHO 'echo WindowsSdkDir="%WindowsSdkDir% " >> set-vs-env.sh' \
>> $EXTRACT_VC_ENV_BAT_FILE
$ECHO 'echo WINDOWSSDKDIR="%WINDOWSSDKDIR% " >> set-vs-env.sh' \
>> $EXTRACT_VC_ENV_BAT_FILE
else
# These will end up something like:
# C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh
# The trailing space for everyone except PATH is no typo, but is needed due
# to trailing \ in the Windows paths. These will be stripped later.
$ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \
>> $EXTRACT_VC_ENV_BAT_FILE
$ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' \
>> $EXTRACT_VC_ENV_BAT_FILE
$ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' \
>> $EXTRACT_VC_ENV_BAT_FILE
$ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \
>> $EXTRACT_VC_ENV_BAT_FILE
$ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \
>> $EXTRACT_VC_ENV_BAT_FILE
$ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \
>> $EXTRACT_VC_ENV_BAT_FILE
fi
# Now execute the newly created bat file.
# The | cat is to stop SetEnv.Cmd to mess with system colors on msys.
# Change directory so we don't need to mess with Windows paths in redirects.
cd $VS_ENV_TMP_DIR
cmd /c extract-vs-env.bat | $CAT
$CMD /c extract-vs-env.bat | $CAT
cd $CURDIR
if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then
AC_MSG_NOTICE([Could not succesfully extract the envionment variables needed for the VS setup.])
AC_MSG_NOTICE([Could not succesfully extract the environment variables needed for the VS setup.])
AC_MSG_NOTICE([Try setting --with-tools-dir to the VC/bin directory within the VS installation])
AC_MSG_NOTICE([or run "bash.exe -l" from a VS command prompt and then run configure from there.])
AC_MSG_ERROR([Cannot continue])
fi
# Remove windows line endings
$SED -i -e 's|\r||g' $VS_ENV_TMP_DIR/set-vs-env.sh
# Now set all paths and other env variables. This will allow the rest of
# the configure script to find and run the compiler in the proper way.
AC_MSG_NOTICE([Setting extracted environment variables])
@@ -455,9 +483,29 @@ AC_DEFUN([TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV],
AC_SUBST(VS_INCLUDE)
AC_SUBST(VS_LIB)
# Convert VS_INCLUDE into SYSROOT_CFLAGS
OLDIFS="$IFS"
IFS=";"
if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
# Convert VS_PATH to unix style
VS_PATH_WINDOWS="$VS_PATH"
VS_PATH=""
for i in $VS_PATH_WINDOWS; do
path=$i
# Only process non-empty elements
if test "x$path" != x; then
IFS="$OLDIFS"
# Check that directory exists before calling fixup_path
testpath=$path
BASIC_WINDOWS_REWRITE_AS_UNIX_PATH([testpath])
if test -d "$testpath"; then
BASIC_FIXUP_PATH([path])
BASIC_APPEND_TO_PATH(VS_PATH, $path)
fi
IFS=";"
fi
done
fi
# Convert VS_INCLUDE into SYSROOT_CFLAGS
for i in $VS_INCLUDE; do
ipath=$i
# Only process non-empty elements
@@ -490,6 +538,8 @@ AC_DEFUN([TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV],
fi
done
IFS="$OLDIFS"
AC_SUBST(VS_PATH_WINDOWS)
fi
else
AC_MSG_RESULT([not found])
@@ -600,10 +650,10 @@ AC_DEFUN([TOOLCHAIN_SETUP_MSVC_DLL],
BASIC_WINDOWS_REWRITE_AS_UNIX_PATH(CYGWIN_VS_TOOLS_DIR)
if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \
| $GREP -i /x64/ | $HEAD --lines 1`
| $GREP -i /x64/ | $HEAD --lines 1`
else
POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \
| $GREP -i /x86/ | $HEAD --lines 1`
| $GREP -i /x86/ | $HEAD --lines 1`
fi
TOOLCHAIN_CHECK_POSSIBLE_MSVC_DLL([$DLL_NAME], [$POSSIBLE_MSVC_DLL],
[search of VS100COMNTOOLS])
@@ -616,14 +666,14 @@ AC_DEFUN([TOOLCHAIN_SETUP_MSVC_DLL],
if test "x$CYGWIN_VC_INSTALL_DIR" != x; then
if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \
| $GREP x64 | $HEAD --lines 1`
| $GREP x64 | $HEAD --lines 1`
else
POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \
| $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1`
| $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1`
if test "x$POSSIBLE_MSVC_DLL" = x; then
# We're grasping at straws now...
POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \
| $HEAD --lines 1`
| $HEAD --lines 1`
fi
fi
@@ -693,7 +743,7 @@ AC_DEFUN([TOOLCHAIN_SETUP_VS_RUNTIME_DLLS],
if test "x$USE_UCRT" = "xtrue"; then
AC_MSG_CHECKING([for UCRT DLL dir])
if test "x$with_ucrt_dll_dir" != x; then
if test -z "$(ls -d "$with_ucrt_dll_dir/*.dll" 2> /dev/null)"; then
if test -z "$(ls -d $with_ucrt_dll_dir/*.dll 2> /dev/null)"; then
AC_MSG_RESULT([no])
AC_MSG_ERROR([Could not find any dlls in $with_ucrt_dll_dir])
else
@@ -713,8 +763,16 @@ AC_DEFUN([TOOLCHAIN_SETUP_VS_RUNTIME_DLLS],
fi
UCRT_DLL_DIR="$CYGWIN_WINDOWSSDKDIR/Redist/ucrt/DLLs/$dll_subdir"
if test -z "$(ls -d "$UCRT_DLL_DIR/"*.dll 2> /dev/null)"; then
AC_MSG_RESULT([no])
AC_MSG_ERROR([Could not find any dlls in $UCRT_DLL_DIR])
# Try with version subdir
UCRT_DLL_DIR="`ls -d $CYGWIN_WINDOWSSDKDIR/Redist/*/ucrt/DLLs/$dll_subdir \
2> /dev/null | $SORT -d | $HEAD -n1`"
if test -z "$UCRT_DLL_DIR" \
|| test -z "$(ls -d "$UCRT_DLL_DIR/"*.dll 2> /dev/null)"; then
AC_MSG_RESULT([no])
AC_MSG_ERROR([Could not find any dlls in $UCRT_DLL_DIR])
else
AC_MSG_RESULT($UCRT_DLL_DIR)
fi
else
AC_MSG_RESULT($UCRT_DLL_DIR)
fi

View File

@@ -25,14 +25,17 @@
# Default version numbers to use unless overridden by configure
DEFAULT_VERSION_FEATURE=11
DEFAULT_VERSION_FEATURE=13
DEFAULT_VERSION_INTERIM=0
DEFAULT_VERSION_UPDATE=0
DEFAULT_VERSION_PATCH=0
DEFAULT_VERSION_DATE=2018-09-25
DEFAULT_VERSION_CLASSFILE_MAJOR=55 # "`$EXPR $DEFAULT_VERSION_FEATURE + 44`"
DEFAULT_VERSION_EXTRA1=0
DEFAULT_VERSION_EXTRA2=0
DEFAULT_VERSION_EXTRA3=0
DEFAULT_VERSION_DATE=2019-09-17
DEFAULT_VERSION_CLASSFILE_MAJOR=57 # "`$EXPR $DEFAULT_VERSION_FEATURE + 44`"
DEFAULT_VERSION_CLASSFILE_MINOR=0
DEFAULT_ACCEPTABLE_BOOT_VERSIONS="10 11"
DEFAULT_ACCEPTABLE_BOOT_VERSIONS="11 12 13"
LAUNCHER_NAME=openjdk
PRODUCT_NAME=OpenJDK
@@ -40,6 +43,8 @@ PRODUCT_SUFFIX="Runtime Environment"
JDK_RC_PLATFORM_NAME=Platform
COMPANY_NAME=N/A
HOTSPOT_VM_DISTRO="OpenJDK"
VENDOR_URL=https://openjdk.java.net/
VENDOR_URL_BUG=https://bugreport.java.com/bugreport/
# Might need better names for these
MACOSX_BUNDLE_NAME_BASE="OpenJDK"

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2017, 2018, 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
@@ -72,6 +72,18 @@ ALL_NAMED_TESTS += $(JTREG_TEST_GROUPS)
# Add Gtest
ALL_NAMED_TESTS += gtest
# Add microbenchmarks
ALL_NAMED_TESTS += micro
# Find make test targets
MAKE_TEST_TARGETS := $(shell $(MAKE) -s --no-print-directory $(MAKE_ARGS) \
SPEC=$(SPEC) -f $(TOPDIR)/test/make/TestMake.gmk print-targets)
ALL_NAMED_TESTS += $(addprefix make-, $(MAKE_TEST_TARGETS))
# Add special tests
ALL_NAMED_TESTS += failure-handler make
################################################################################
endif # _FIND_TESTS_GMK

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2018, 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
@@ -43,6 +43,7 @@ FALSE_FIND_PATTERN:=-name FILE_NAME_THAT_DOESNT_EXIST
# For this to work, the source files must exist when the makefile is
# parsed.
# SRCS:=List of directories in where to find files to add to archive
# BIN:=Directory where to store build control files
# SUFFIXES:=File suffixes to include in jar
# INCLUDES:=List of directories/packages in SRCS that should be included
# EXCLUDES:=List of directories/packages in SRCS that should be excluded
@@ -62,10 +63,11 @@ define SetupJarArchiveBody
$1_JARMAIN:=$(strip $$($1_JARMAIN))
$1_JARNAME:=$$(notdir $$($1_JAR))
$1_MANIFEST_FILE:=$$(dir $$($1_JAR))_the.$$($1_JARNAME)_manifest
$1_DELETESS_FILE:=$$(dir $$($1_JAR))_the.$$($1_JARNAME)_deletess
$1_DELETES_FILE:=$$(dir $$($1_JAR))_the.$$($1_JARNAME)_deletes
$1_BIN:=$$(dir $$($1_JAR))
$1_JAR_OUTPUT_DIR := $$(patsubst %/, %, $$(dir $$($1_JAR)))
$$(call SetIfEmpty, $1_BIN, $$($1_JAR_OUTPUT_DIR))
$1_MANIFEST_FILE:=$$($1_BIN)/_the.$$($1_JARNAME)_manifest
$1_DELETESS_FILE:=$$($1_BIN)/_the.$$($1_JARNAME)_deletess
$1_DELETES_FILE:=$$($1_BIN)/_the.$$($1_JARNAME)_deletes
$$(call SetIfEmpty, $1_JAR_CMD, $$(JAR))
ifeq (,$$($1_SUFFIXES))
@@ -231,11 +233,12 @@ define SetupJarArchiveBody
$1_VARDEPS := $$($1_JAR_CMD) $$($1_JAR_CREATE_OPTIONS) $$($1_MANIFEST) \
$$($1_JARMAIN) $$($1_EXTRA_MANIFEST_ATTR) $$($1_ORIG_DEPS) $$($1_SRCS) \
$$($1_INCLUDES) $$($1_EXCLUDES) $$($1_EXCLUDE_FILES) $$($1_EXTRA_FILES)
$1_VARDEPS_FILE := $$(call DependOnVariable, $1_VARDEPS, $$(dir $$($1_JAR))_the.$$($1_JARNAME).vardeps)
$1_VARDEPS_FILE := $$(call DependOnVariable, $1_VARDEPS, $$($1_BIN)/_the.$$($1_JARNAME).vardeps)
# Here is the rule that creates/updates the jar file.
$$($1_JAR) : $$($1_DEPENDENCIES) $$($1_MANIFEST) $$($1_VARDEPS_FILE)
$(MKDIR) -p $$($1_BIN)
$$(call MakeTargetDir)
$$(call MakeDir, $$($1_BIN))
$$($1_GREP_INCLUDE_OUTPUT)
$$($1_GREP_EXCLUDE_OUTPUT)
# If the vardeps file is part of the newer prereq list, it means that

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2018, 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
@@ -76,8 +76,8 @@ define add_file_to_copy
$1_COPY_$$($2_TARGET) := 1
# Now we can setup the dependency that will trigger the copying.
$$($1_BIN)$$($1_MODULE_SUBDIR)$$($2_TARGET) : $2
$(MKDIR) -p $$(@D)
$(CP) $$< $$@
$$(call LogInfo, Copying $$(patsubst $(OUTPUTDIR)/%,%, $$@))
$$(install-file)
$(CHMOD) -f ug+w $$@
# And do not forget this target
@@ -120,7 +120,8 @@ define add_file_to_clean
ifneq ($$($1_CLEAN_$$($2_TARGET)), 1)
$1_CLEAN_$$($2_TARGET) := 1
$$($1_BIN)$$($1_MODULE_SUBDIR)$$($2_TARGET) : $2
$(MKDIR) -p $$(@D)
$$(call LogInfo, Cleaning $$(patsubst $(OUTPUTDIR)/%,%, $$@))
$$(call MakeTargetDir)
export LC_ALL=C ; ( $(CAT) $$< && $(ECHO) "" ) \
| $(SED) -e 's/\([^\\]\):/\1\\:/g' -e 's/\([^\\]\)=/\1\\=/g' \
-e 's/\([^\\]\)!/\1\\!/g' -e 's/^[ ]*#.*/#/g' \
@@ -422,7 +423,7 @@ define SetupJavaCompilationBody
$1_HEADERS_ARG := -h $$($1_HEADERS).$1.tmp
$$($1_HEADERS)/_the.$1_headers: $$($1_COMPILE_TARGET)
$(MKDIR) -p $$(@D)
$$(call MakeTargetDir)
if [ -d "$$($1_HEADERS).$1.tmp" ]; then \
for f in `$(CD) $$($1_HEADERS).$1.tmp && $(FIND) . -type f`; do \
if [ ! -f "$$($1_HEADERS)/$$$$f" ] \

View File

@@ -47,6 +47,29 @@ FindSrcDirsForComponent += \
$(TOPDIR)/src/$(strip $1)/$(OPENJDK_TARGET_OS_TYPE)/native/$(strip $2) \
$(TOPDIR)/src/$(strip $1)/share/native/$(strip $2)))
# Find a library
# Param 1 - module name
# Param 2 - library name
# Param 3 - optional subdir for library
FindLib = \
$(call FindLibDirForModule, \
$(strip $1))$(strip $3)/$(LIBRARY_PREFIX)$(strip $2)$(SHARED_LIBRARY_SUFFIX)
# Find a static library
# Param 1 - module name
# Param 2 - library name
# Param 3 - optional subdir for library
FindStaticLib = \
$(addprefix $(SUPPORT_OUTPUTDIR)/native/, \
$(strip $1)$(strip $3)/$(LIBRARY_PREFIX)$(strip $2)$(STATIC_LIBRARY_SUFFIX))
# If only generating compile_commands.json, make these return empty to avoid
# declaring dependencies.
ifeq ($(GENERATE_COMPILE_COMMANDS_ONLY), true)
FindLib =
FindStaticLib =
endif
GetJavaHeaderDir = \
$(wildcard $(SUPPORT_OUTPUTDIR)/headers/$(strip $1))

View File

@@ -347,6 +347,7 @@ SOURCE_REVISION_TRACKER := $(SUPPORT_OUTPUTDIR)/src-rev/source-revision-tracker
FindAllReposAbs = \
$(strip $(sort $(dir $(filter-out $(TOPDIR)/build/%, $(wildcard \
$(addprefix $(TOPDIR)/, .hg */.hg */*/.hg */*/*/.hg */*/*/*/.hg) \
$(addprefix $(TOPDIR)/, .git */.git */*/.git */*/*/.git */*/*/*/.git) \
)))))
# Locate all hg repositories included in the forest, as relative paths
@@ -655,8 +656,11 @@ dups = \
# String equals
equals = \
$(and $(findstring $(strip $1),$(strip $2)),\
$(findstring $(strip $2),$(strip $1)))
$(if $(strip $1)$(strip $2),$(strip \
$(and $(findstring $(strip $1),$(strip $2)),\
$(findstring $(strip $2),$(strip $1)))), \
true \
)
# Remove a whole list of prefixes
# $1 - List of prefixes
@@ -841,7 +845,7 @@ endef
# Parameter 1 is the name of the rule, and is also the name of the variable.
#
# Remaining parameters are named arguments. These include:
# KEYWORDS A list of valid keywords
# SINGLE_KEYWORDS A list of valid keywords with single string values
# STRING_KEYWORDS A list of valid keywords, processed as string. This means
# that '%20' will be replaced by ' ' to allow for multi-word strings.
#
@@ -855,7 +859,7 @@ define ParseKeywordVariableBody
$$(eval mangled_part_eval := $$(call DoubleDollar, $$(mangled_part))) \
$$(eval part := $$$$(subst ||||,$$$$(SPACE),$$$$(mangled_part_eval))) \
$$(eval $1_NO_MATCH := true) \
$$(foreach keyword, $$($1_KEYWORDS), \
$$(foreach keyword, $$($1_SINGLE_KEYWORDS), \
$$(eval keyword_eval := $$(call DoubleDollar, $$(keyword))) \
$$(if $$(filter $$(keyword)=%, $$(part)), \
$$(eval $(strip $1)_$$$$(keyword_eval) := $$$$(strip $$$$(patsubst $$$$(keyword_eval)=%, %, $$$$(part)))) \
@@ -870,11 +874,11 @@ define ParseKeywordVariableBody
) \
) \
$$(if $$($1_NO_MATCH), \
$$(if $$(filter $$(part), $$($1_KEYWORDS) $$($1_STRING_KEYWORDS)), \
$$(if $$(filter $$(part), $$($1_SINGLE_KEYWORDS) $$($1_STRING_KEYWORDS)), \
$$(info Keyword $$(part) for $1 needs to be assigned a value.) \
, \
$$(info $$(part) is not a valid keyword for $1.) \
$$(info Valid keywords: $$($1_KEYWORDS) $$($1_STRING_KEYWORDS).) \
$$(info Valid keywords: $$($1_SINGLE_KEYWORDS) $$($1_STRING_KEYWORDS).) \
) \
$$(error Cannot continue) \
) \
@@ -1015,7 +1019,7 @@ ExecuteWithLog = \
$(call LogCmdlines, Exececuting: [$(strip $2)]) \
$(call MakeDir, $(dir $(strip $1))) \
$(call WriteFile, $2, $(strip $1).cmdline) \
( $(strip $2) > >($(TEE) $(strip $1).log) 2> >($(TEE) $(strip $1).log >&2) || \
( $(RM) $(strip $1).log && $(strip $2) > >($(TEE) -a $(strip $1).log) 2> >($(TEE) -a $(strip $1).log >&2) || \
( exitcode=$(DOLLAR)? && \
$(CP) $(strip $1).log $(MAKESUPPORT_OUTPUTDIR)/failure-logs/$(subst /,_,$(patsubst $(OUTPUTDIR)/%,%,$(strip $1))).log && \
$(CP) $(strip $1).cmdline $(MAKESUPPORT_OUTPUTDIR)/failure-logs/$(subst /,_,$(patsubst $(OUTPUTDIR)/%,%,$(strip $1))).cmdline && \

View File

@@ -205,7 +205,14 @@ ifeq ($(INCLUDE_SA), false)
endif
################################################################################
# Filter out Graal specific modules if Graal build is disabled
# Filter out jvmci specific modules if jvmci is disabled
ifeq ($(INCLUDE_JVMCI), false)
MODULES_FILTER += jdk.internal.vm.ci
endif
################################################################################
# Filter out Graal specific modules if Graal is disabled
ifeq ($(INCLUDE_GRAAL), false)
MODULES_FILTER += jdk.internal.vm.compiler
@@ -240,6 +247,8 @@ SRC_SUBDIRS += share/classes
SPEC_SUBDIRS += share/specs
MAN_SUBDIRS += share/man
# Find all module-info.java files for the current build target platform and
# configuration.
# Param 1 - Module to find for, set to * for finding all
@@ -298,6 +307,12 @@ FindModuleSpecsDirs = \
$(strip $(wildcard \
$(foreach sub, $(SPEC_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS)))))
# Find all man dirs for a particular module
# $1 - Module to find man dirs for
FindModuleManDirs = \
$(strip $(wildcard \
$(foreach sub, $(MAN_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS)))))
# Construct the complete module source path
GetModuleSrcPath = \
$(call PathList, \
@@ -314,7 +329,7 @@ MODULE_INFOS := $(call FindAllModuleInfos, *)
$(MODULE_DEPS_MAKEFILE): $(MODULE_INFOS) \
$(call DependOnVariable, MODULE_INFOS, $(MAKESUPPORT_OUTPUTDIR)/MODULE_INFOS.vardeps)
$(MKDIR) -p $(@D)
$(call MakeTargetDir)
$(RM) $@
$(foreach m, $(MODULE_INFOS), \
( $(PRINTF) "DEPS_$(call GetModuleNameFromModuleInfo, $m) :=" && \

View File

@@ -59,6 +59,27 @@ define GetSymbols
fi
endef
################################################################################
# Creates a recipe that creates a compile_commands.json fragment. Remove any
# occurences of FIXPATH programs from the command to show the actual invocation.
#
# Param 1: Name of file to create
# Param 2: Working directory
# Param 3: Source file
# Param 4: Compile command
################################################################################
define WriteCompileCommandsFragment
$(call LogInfo, Creating compile commands fragment for $(notdir $3))
$(call MakeDir, $(dir $1))
$(call WriteFile,{ \
"directory": "$(strip $2)"$(COMMA) \
"file": "$(strip $3)"$(COMMA) \
"command": "$(strip $(subst $(DQUOTE),\$(DQUOTE),$(subst \,\\,\
$(subst $(FIXPATH),,$4))))" \
}$(COMMA), \
$1)
endef
################################################################################
# Define a native toolchain configuration that can be used by
# SetupNativeCompilation calls
@@ -203,6 +224,11 @@ define SetupCompileNativeFileBody
$1_OBJ := $$($$($1_BASE)_OBJECT_DIR)/$$(call replace_with_obj_extension, \
$$($1_FILENAME))
# Generate the corresponding compile_commands.json fragment.
$1_OBJ_JSON = $$(MAKESUPPORT_OUTPUTDIR)/compile-commands/$$(subst /,_,$$(subst \
$$(OUTPUTDIR)/,,$$($1_OBJ))).json
$$($1_BASE)_ALL_OBJS_JSON += $$($1_OBJ_JSON)
# Only continue if this object file hasn't been processed already. This lets
# the first found source file override any other with the same name.
ifeq ($$(findstring $$($1_OBJ), $$($$($1_BASE)_OBJS_SO_FAR)), )
@@ -211,7 +237,7 @@ define SetupCompileNativeFileBody
$1_SRC_FILE := $$($1_FILE)
ifneq ($$($1_DISABLE_THIS_FILE_DEFINE), true)
$1_THIS_FILE = -DTHIS_FILE='"$$(<F)"'
$1_THIS_FILE = -DTHIS_FILE='"$$($1_FILENAME)"'
endif
ifeq ($$($1_OPTIMIZATION), )
@@ -251,6 +277,7 @@ define SetupCompileNativeFileBody
$$($$($1_BASE)_SYSROOT_CFLAGS)
$1_BASE_CXXFLAGS := $$($$($1_BASE)_CXXFLAGS) $$($$($1_BASE)_EXTRA_CXXFLAGS) \
$$($$($1_BASE)_SYSROOT_CFLAGS) $$($1_EXTRA_CXXFLAGS)
$1_BASE_ASFLAGS := $$($$($1_BASE)_ASFLAGS) $$($$($1_BASE)_EXTRA_ASFLAGS)
ifneq ($$(filter %.c, $$($1_FILENAME)), )
# Compile as a C file
@@ -266,7 +293,7 @@ define SetupCompileNativeFileBody
$1_DEP_FLAG := $(C_FLAG_DEPS)
else ifneq ($$(filter %.s %.S, $$($1_FILENAME)), )
# Compile as assembler file
$1_FLAGS := $$($$($1_BASE)_ASFLAGS)
$1_FLAGS := $$($1_BASE_ASFLAGS)
$1_COMPILER := $(AS)
$1_DEP_FLAG :=
else ifneq ($$(filter %.cpp %.cc %.mm, $$($1_FILENAME)), )
@@ -296,8 +323,15 @@ define SetupCompileNativeFileBody
$1_VARDEPS_FILE := $$(call DependOnVariable, $1_VARDEPS, $$($1_OBJ).vardeps)
endif
$$($1_OBJ): $$($1_SRC_FILE) $$($$($1_BASE)_COMPILE_VARDEPS_FILE) \
$$($$($1_BASE)_EXTRA_DEPS) $$($1_VARDEPS_FILE) | $$($$($1_BASE)_BUILD_INFO)
$1_OBJ_DEPS := $$($1_SRC_FILE) $$($$($1_BASE)_COMPILE_VARDEPS_FILE) \
$$($$($1_BASE)_EXTRA_DEPS) $$($1_VARDEPS_FILE)
$1_COMPILE_OPTIONS := $$($1_FLAGS) $(CC_OUT_OPTION)$$($1_OBJ) $$($1_SRC_FILE)
$$($1_OBJ_JSON): $$($1_OBJ_DEPS)
$$(call WriteCompileCommandsFragment, $$@, $$(PWD), $$($1_SRC_FILE), \
$$($1_COMPILER) $$($1_COMPILE_OPTIONS))
$$($1_OBJ): $$($1_OBJ_DEPS) | $$($$($1_BASE)_BUILD_INFO)
$$(call LogInfo, Compiling $$($1_FILENAME) (for $$($$($1_BASE)_BASENAME)))
$$(call MakeDir, $$(@D))
ifneq ($(TOOLCHAIN_TYPE), microsoft)
@@ -306,13 +340,11 @@ define SetupCompileNativeFileBody
# object file in the generated deps files. Fixing it with sed. If
# compiling assembly, don't try this.
$$(call ExecuteWithLog, $$@, \
$$($1_COMPILER) $$($1_FLAGS) $$($1_DEP_FLAG) $$($1_DEP).tmp \
$(CC_OUT_OPTION)$$($1_OBJ) $$($1_SRC_FILE))
$$($1_COMPILER) $$($1_DEP_FLAG) $$($1_DEP).tmp $$($1_COMPILE_OPTIONS))
$(SED) 's|^$$(@F):|$$@:|' $$($1_DEP).tmp > $$($1_DEP)
else
$$(call ExecuteWithLog, $$@, \
$$($1_COMPILER) $$($1_FLAGS) $$($1_DEP_FLAG) $$($1_DEP) \
$(CC_OUT_OPTION)$$($1_OBJ) $$($1_SRC_FILE))
$$($1_COMPILER) $$($1_DEP_FLAG) $$($1_DEP) $$($1_COMPILE_OPTIONS))
endif
# Create a dependency target file from the dependency file.
# Solution suggested by http://make.mad-scientist.net/papers/advanced-auto-dependency-generation/
@@ -328,8 +360,7 @@ define SetupCompileNativeFileBody
# on Windows. No need to save exit code from compilation since
# pipefail is always active on Windows.
$$(call ExecuteWithLog, $$@, \
$$($1_COMPILER) $$($1_FLAGS) -showIncludes \
$(CC_OUT_OPTION)$$($1_OBJ) $$($1_SRC_FILE)) \
$$($1_COMPILER) -showIncludes $$($1_COMPILE_OPTIONS)) \
| $(TR) -d '\r' | $(GREP) -v -e "^Note: including file:" \
-e "^$$($1_FILENAME)$$$$" || test "$$$$?" = "1" ; \
$(ECHO) $$@: \\ > $$($1_DEP) ; \
@@ -576,6 +607,7 @@ define SetupNativeCompilationBody
ifeq ($(COMPILE_WITH_DEBUG_SYMBOLS), true)
$1_EXTRA_CFLAGS += $$(CFLAGS_DEBUG_SYMBOLS)
$1_EXTRA_CXXFLAGS += $$(CFLAGS_DEBUG_SYMBOLS)
$1_EXTRA_ASFLAGS += $$(ASFLAGS_DEBUG_SYMBOLS)
endif
ifneq ($$($1_REORDER), )
@@ -592,9 +624,13 @@ define SetupNativeCompilationBody
# Pick up disabled warnings, if possible on this platform.
ifneq ($(DISABLE_WARNING_PREFIX), )
$1_EXTRA_CFLAGS += $$(addprefix $(DISABLE_WARNING_PREFIX), \
$$(DISABLED_WARNINGS) \
$$(DISABLED_WARNINGS_C) \
$$($1_DISABLED_WARNINGS_$(TOOLCHAIN_TYPE)) \
$$($1_DISABLED_WARNINGS_C_$(TOOLCHAIN_TYPE)))
$1_EXTRA_CXXFLAGS += $$(addprefix $(DISABLE_WARNING_PREFIX), \
$$(DISABLED_WARNINGS) \
$$(DISABLED_WARNINGS_CXX) \
$$($1_DISABLED_WARNINGS_$(TOOLCHAIN_TYPE)) \
$$($1_DISABLED_WARNINGS_CXX_$(TOOLCHAIN_TYPE)))
endif
@@ -612,6 +648,7 @@ define SetupNativeCompilationBody
ifeq ($$($1_WARNINGS_AS_ERRORS_$(TOOLCHAIN_TYPE)), true)
$1_EXTRA_CFLAGS += $(CFLAGS_WARNINGS_ARE_ERRORS)
$1_EXTRA_CXXFLAGS += $(CFLAGS_WARNINGS_ARE_ERRORS)
$1_EXTRA_LDFLAGS += $(LDFLAGS_WARNINGS_ARE_ERRORS)
endif
ifeq (NONE, $$($1_OPTIMIZATION))
@@ -687,17 +724,25 @@ define SetupNativeCompilationBody
-include $$($1_PCH_DEP)
-include $$($1_PCH_DEP_TARGETS)
$1_PCH_COMMAND := $$($1_CC) $$($1_CFLAGS) $$($1_EXTRA_CFLAGS) $$($1_SYSROOT_CFLAGS) \
$$($1_OPT_CFLAGS) -x c++-header -c $(C_FLAG_DEPS) $$($1_PCH_DEP)
$$($1_PCH_FILE): $$($1_PRECOMPILED_HEADER) $$($1_COMPILE_VARDEPS_FILE)
$$(call LogInfo, Generating precompiled header)
$$(call MakeDir, $$(@D))
$$(call ExecuteWithLog, $$@, \
$$($1_CC) $$($1_CFLAGS) $$($1_EXTRA_CFLAGS) $$($1_SYSROOT_CFLAGS) \
$$($1_OPT_CFLAGS) \
-x c++-header -c $(C_FLAG_DEPS) $$($1_PCH_DEP) $$< -o $$@)
$$(call ExecuteWithLog, $$@, $$($1_PCH_COMMAND) $$< -o $$@)
$(SED) $(DEPENDENCY_TARGET_SED_PATTERN) $$($1_PCH_DEP) > $$($1_PCH_DEP_TARGETS)
$$($1_ALL_OBJS): $$($1_PCH_FILE)
# Generate the corresponding compile_commands.json fragment.
$1_PCH_FILE_JSON := $$(MAKESUPPORT_OUTPUTDIR)/compile-commands/$$(subst /,_,$$(subst \
$$(OUTPUTDIR)/,,$$($1_PCH_FILE))).json
$1_ALL_OBJS_JSON += $$($1_PCH_FILE_JSON)
$$($1_PCH_FILE_JSON): $$($1_PRECOMPILED_HEADER) $$($1_COMPILE_VARDEPS_FILE)
$$(call WriteCompileCommandsFragment, $$@, $$(PWD), $$<, \
$$($1_PCH_COMMAND) $$< -o $$($1_PCH_FILE))
endif
endif
endif
@@ -778,8 +823,8 @@ define SetupNativeCompilationBody
# Pickup extra OPENJDK_TARGET_OS_TYPE and/or OPENJDK_TARGET_OS dependent variables
# for LDFLAGS and LIBS
$1_EXTRA_LDFLAGS := $$($1_LDFLAGS_$(OPENJDK_TARGET_OS_TYPE)) $$($1_LDFLAGS_$(OPENJDK_TARGET_OS))
$1_EXTRA_LIBS := $$($1_LIBS_$(OPENJDK_TARGET_OS_TYPE)) $$($1_LIBS_$(OPENJDK_TARGET_OS))
$1_EXTRA_LDFLAGS += $$($1_LDFLAGS_$(OPENJDK_TARGET_OS_TYPE)) $$($1_LDFLAGS_$(OPENJDK_TARGET_OS))
$1_EXTRA_LIBS += $$($1_LIBS_$(OPENJDK_TARGET_OS_TYPE)) $$($1_LIBS_$(OPENJDK_TARGET_OS))
ifneq ($$($1_REAL_MAPFILE), )
$1_EXTRA_LDFLAGS += $(call SET_SHARED_LIBRARY_MAPFILE,$$($1_REAL_MAPFILE))
endif
@@ -1018,6 +1063,10 @@ define SetupNativeCompilationBody
endif
endif
endif
ifeq ($(GENERATE_COMPILE_COMMANDS_ONLY), true)
$1 := $$($1_ALL_OBJS_JSON)
endif
endef
endif # _NATIVE_COMPILATION_GMK

View File

@@ -1,4 +1,4 @@
# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2017, 2018, 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
@@ -26,12 +26,36 @@ ifeq (,$(_MAKEBASE_GMK))
$(error You must include MakeBase.gmk prior to including ProcessMarkdown.gmk)
endif
include TextFileProcessing.gmk
# Helper function for SetupProcessMarkdown
# $1: The $1 from SetupProcessMarkdown
# $2: The name of the current source file, relative to $1_SRC
# $2: The name of the current source file, relative to the dir given in $3
# $3: The directory of the current source file
define ProcessMarkdown
$1_$2_OUTPUT_FILE := $$($1_DEST)/$$(basename $2).html
$1_$2_OUTPUT_FILE := $$($1_DEST)/$$(basename $2)$$($1_FILE_EXT)
$1_$2_TARGET_DIR := $$(dir $$($1_$2_OUTPUT_FILE))
$1_$2_INPUT_FILE := $3/$2
$1_$2_MARKER := $$(subst /,_,$1_$2)
ifneq ($$($1_REPLACEMENTS), )
$1_$2_PANDOC_INPUT := $$(SUPPORT_OUTPUTDIR)/markdown/$$($1_$2_MARKER)_pre.tmp
$$(eval $$(call SetupTextFileProcessing, $1_$2_PREPROCESSED, \
SOURCE_FILES := $$($1_$2_INPUT_FILE), \
OUTPUT_FILE := $$($1_$2_PANDOC_INPUT), \
REPLACEMENTS := $$($1_REPLACEMENTS), \
))
else
$1_$2_PANDOC_INPUT := $$($1_$2_INPUT_FILE)
endif
ifneq ($$($1_POST_PROCESS), )
$1_$2_PANDOC_OUTPUT := $$(SUPPORT_OUTPUTDIR)/markdown/$$($1_$2_MARKER)_post.tmp
else
$1_$2_PANDOC_OUTPUT := $$($1_$2_OUTPUT_FILE)
endif
ifneq ($$($1_CSS), )
ifneq ($$(findstring http:/, $$($1_CSS)), )
$1_$2_CSS_OPTION := --css '$$($1_CSS)'
@@ -40,28 +64,44 @@ define ProcessMarkdown
$1_$2_CSS_OPTION := --css '$$($1_$2_CSS)'
endif
endif
$1_$2_OPTIONS = $$(shell $$(GREP) _pandoc-options_: $$($1_SRC)/$2 | $$(CUT) -d : -f 2-)
$1_$2_MARKER := $$(subst /,_,$1_$2)
$1_$2_VARDEPS := $$($1_OPTIONS) $$($1_CSS)
$1_$2_OPTIONS := $$(shell $$(GREP) _pandoc-options_: $3/$2 | $$(CUT) -d : -f 2-)
ifneq ($$($1_FILTER), )
$1_$2_OPTIONS += --filter $$($1_FILTER)
endif
$1_$2_VARDEPS := $$($1_OPTIONS) $$($1_$2_OPTIONS) $$($1_CSS) \
$$($1_REPLACEMENTS) $$($1_POST_PROCESS)
$1_$2_VARDEPS_FILE := $$(call DependOnVariable, $1_$2_VARDEPS, \
$$(SUPPORT_OUTPUTDIR)/markdown/$$($1_$2_MARKER).vardeps)
$$($1_$2_OUTPUT_FILE): $$($1_SRC)/$2 $$($1_$2_VARDEPS_FILE)
$$(call LogInfo, Converting $2 to html)
$$(call MakeDir, $$($1_$2_TARGET_DIR) $$(SUPPORT_OUTPUTDIR)/markdown)
$$($1_$2_PANDOC_OUTPUT): $$($1_$2_PANDOC_INPUT) $$($1_$2_VARDEPS_FILE) $$($1_EXTRA_DEPS)
$$(call LogInfo, Converting $2 to $$($1_FORMAT))
$$(call MakeDir, $$(SUPPORT_OUTPUTDIR)/markdown $$(dir $$($1_$2_PANDOC_OUTPUT)))
$$(call ExecuteWithLog, $$(SUPPORT_OUTPUTDIR)/markdown/$$($1_$2_MARKER), \
$$(PANDOC) $$($1_OPTIONS) -f markdown -t html5 --standalone \
$$($1_$2_CSS_OPTION) $$($1_$2_OPTIONS) '$$<' -o '$$@')
$$(PANDOC) $$($1_OPTIONS) -f markdown-smart -t $$($1_FORMAT) --standalone \
$$($1_$2_CSS_OPTION) $$($1_$2_OPTIONS) '$$($1_$2_PANDOC_INPUT)' \
-o '$$($1_$2_PANDOC_OUTPUT)')
ifneq ($$(findstring $$(LOG_LEVEL), debug trace),)
TOO_LONG_LINES=`$$(GREP) -E -e '^.{80}.+$$$$' $$<` || true ; \
if [ "x$$$$TOO_LONG_LINES" != x ]; then \
$$(ECHO) "Warning: Unsuitable markdown in $$<:" ; \
$$(ECHO) "The following lines are longer than 80 characters:" ; \
$$(GREP) -E -n -e '^.{80}.+$$$$' $$< || true ; \
fi
TOO_LONG_LINES=`$$(GREP) -E -e '^.{80}.+$$$$' $$<` || true ; \
if [ "x$$$$TOO_LONG_LINES" != x ]; then \
$$(ECHO) "Warning: Unsuitable markdown in $$<:" ; \
$$(ECHO) "The following lines are longer than 80 characters:" ; \
$$(GREP) -E -n -e '^.{80}.+$$$$' $$< || true ; \
fi
endif
# If we have no post processing, PANDOC_OUTPUT is set to OUTPUT_FILE. Otherwise
# PANDOC_OUTPUT is a temporary file, and we must now create the real OUTPUT_FILE.
ifneq ($$($1_POST_PROCESS), )
$$($1_$2_OUTPUT_FILE): $$($1_$2_PANDOC_OUTPUT)
$$(call LogInfo, Post-processing markdown file $2)
$$(call MakeDir, $$(SUPPORT_OUTPUTDIR)/markdown $$($1_$2_TARGET_DIR))
$$(call ExecuteWithLog, $$(SUPPORT_OUTPUTDIR)/markdown/$$($1_$2_MARKER)_post, \
$$($1_POST_PROCESS) < $$($1_$2_PANDOC_OUTPUT) > $$($1_$2_OUTPUT_FILE))
endif
$1 += $$($1_$2_OUTPUT_FILE)
endef
@@ -72,11 +112,17 @@ endef
# and the targets generated are listed in a variable by that name.
#
# Remaining parameters are named arguments. These include:
# SRC : Source root dir (defaults to dir of first file)
# DEST : Dest root dir
# FILES : List of files to copy with absolute paths, or path relative to SRC.
# Must be in SRC.
# OPTIONS : Additional options to pandoc
# DEST : Destination root dir
# FILES : List of files to copy with absolute paths, or path relative to SRC.
# SRC : Source root dir; if given keep input files hierarchy relative to
# SRC in DEST, otherwise flatten structure into DEST.
# FORMAT : The target format (defaults to html5)
# FILE_EXT : The file extension to replace .md with (defaults to .html)
# OPTIONS : Additional options to pandoc
# EXTRA_DEPS : Additional dependencies to add to each pandoc call
# FILTER : Optional pandoc filter command
# POST_PROCESS : Optional command-line to post-process generated markdown
# REPLACEMENTS : Text replacements to perform on input file before processing
#
SetupProcessMarkdown = $(NamedParamsMacroTemplate)
define SetupProcessMarkdownBody
@@ -88,16 +134,40 @@ define SetupProcessMarkdownBody
$$(error DEST is missing in SetupProcessMarkdown $1)
endif
# Default SRC to the dir of the first file.
ifeq ($$($1_SRC), )
$1_SRC := $$(dir $$(firstword $$($1_FILES)))
# If no target format is specified, default to html5.
ifeq ($$($1_FORMAT), )
$1_FORMAT := html5
endif
# Remove any trailing slash from SRC and DEST
$1_SRC := $$(patsubst %/,%,$$($1_SRC))
ifeq ($$($1_FORMAT), man)
# If no file extension is specified, default to '.1'.
ifeq ($$($1_FILE_EXT), )
$1_FILE_EXT := .1
endif
else ifeq ($$($1_FORMAT), html5)
ifeq ($$($1_FILE_EXT), )
$1_FILE_EXT := .html
endif
else ifeq ($$($1_FORMAT), html)
ifeq ($$($1_FILE_EXT), )
$1_FILE_EXT := .html
endif
endif
# Remove any trailing slash
$1_DEST := $$(patsubst %/,%,$$($1_DEST))
$$(foreach f, $$(patsubst $$($1_SRC)/%,%,$$($1_FILES)), \
$$(eval $$(call ProcessMarkdown,$1,$$f)) \
)
ifeq ($$($1_SRC), )
# No SRC given, assume we're flattening all files into output dir.
$$(foreach f, $$($1_FILES), \
$$(eval $$(call ProcessMarkdown,$1,$$(notdir $$f),$$(patsubst %/,%,$$(dir $$f)))) \
)
else
# Remove any trailing slash
$1_SRC := $$(patsubst %/,%,$$($1_SRC))
$$(foreach f, $$(patsubst $$($1_SRC)/%,%,$$($1_FILES)), \
$$(eval $$(call ProcessMarkdown,$1,$$f,$$($1_SRC))) \
)
endif
endef

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2018, 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
@@ -72,7 +72,7 @@ $(eval $(call SetupJavaCompiler,GENERATE_OLDBYTECODE, \
$(eval $(call SetupJavaCompiler,GENERATE_JDKBYTECODE, \
JVM := $(JAVA_JAVAC), \
JAVAC := $(NEW_JAVAC), \
FLAGS := -source 11 -target 11 --doclint-format html5 \
FLAGS := -source 13 -target 13 --doclint-format html5 \
-encoding ascii -XDignore.symbol.file=true $(JAVAC_WARNINGS), \
SERVER_DIR := $(SJAVAC_SERVER_DIR), \
SERVER_JVM := $(SJAVAC_SERVER_JAVA)))
@@ -82,7 +82,7 @@ $(eval $(call SetupJavaCompiler,GENERATE_JDKBYTECODE, \
$(eval $(call SetupJavaCompiler,GENERATE_JDKBYTECODE_NOWARNINGS, \
JVM := $(JAVA_JAVAC), \
JAVAC := $(NEW_JAVAC), \
FLAGS := -source 11 -target 11 \
FLAGS := -source 13 -target 13 \
-encoding ascii -XDignore.symbol.file=true $(DISABLE_WARNINGS), \
SERVER_DIR := $(SJAVAC_SERVER_DIR), \
SERVER_JVM := $(SJAVAC_SERVER_JAVA)))

View File

@@ -60,14 +60,16 @@ define SetupTestFilesCompilationBody
ifeq ($$($1_TYPE), LIBRARY)
$1_PREFIX = lib
$1_OUTPUT_SUBDIR := lib
$1_CFLAGS := $(CFLAGS_TESTLIB)
$1_LDFLAGS := $(LDFLAGS_TESTLIB) $(call SET_SHARED_LIBRARY_ORIGIN)
$1_BASE_CFLAGS := $(CFLAGS_JDKLIB)
$1_BASE_CXXFLAGS := $(CXXFLAGS_JDKLIB)
$1_LDFLAGS := $(LDFLAGS_JDKLIB) $(call SET_SHARED_LIBRARY_ORIGIN)
$1_COMPILATION_TYPE := LIBRARY
else ifeq ($$($1_TYPE), PROGRAM)
$1_PREFIX = exe
$1_OUTPUT_SUBDIR := bin
$1_CFLAGS := $(CFLAGS_TESTEXE)
$1_LDFLAGS := $(LDFLAGS_TESTEXE)
$1_BASE_CFLAGS := $(CFLAGS_JDKEXE)
$1_BASE_CXXFLAGS := $(CXXFLAGS_JDKEXE)
$1_LDFLAGS := $(LDFLAGS_JDKEXE) $(LDFLAGS_TESTEXE)
$1_COMPILATION_TYPE := EXECUTABLE
else
$$(error Unknown type: $$($1_TYPE))
@@ -75,7 +77,8 @@ define SetupTestFilesCompilationBody
# Locate all files with the matching prefix
$1_FILE_LIST := \
$$(shell $$(FIND) $$($1_SOURCE_DIRS) -type f -name "$$($1_PREFIX)*.c")
$$(shell $$(FIND) $$($1_SOURCE_DIRS) -type f \( -name "$$($1_PREFIX)*.c" \
-o -name "$$($1_PREFIX)*.cpp" \))
$1_EXCLUDE_PATTERN := $$(addprefix %/, $$($1_EXCLUDE))
$1_FILTERED_FILE_LIST := $$(filter-out $$($1_EXCLUDE_PATTERN), $$($1_FILE_LIST))
@@ -91,10 +94,16 @@ define SetupTestFilesCompilationBody
INCLUDE_FILES := $$(notdir $$(file)), \
OBJECT_DIR := $$($1_OUTPUT_DIR)/support/$$(name), \
OUTPUT_DIR := $$($1_OUTPUT_DIR)/$$($1_OUTPUT_SUBDIR), \
CFLAGS := $$($1_CFLAGS) $$($1_CFLAGS_$$(name)), \
CFLAGS := $$($1_BASE_CFLAGS) $$($1_CFLAGS) $$($1_CFLAGS_$$(name)), \
CXXFLAGS := $$($1_BASE_CXXFLAGS) $$($1_CFLAGS) $$($1_CFLAGS_$$(name)), \
LDFLAGS := $$($1_LDFLAGS) $$($1_LDFLAGS_$$(name)), \
DISABLED_WARNINGS_gcc := format undef unused-function unused-value, \
DISABLED_WARNINGS_clang := undef format-nonliteral \
missing-field-initializers sometimes-uninitialized, \
DISABLED_WARNINGS_CXX_solstudio := wvarhidenmem, \
LIBS := $$($1_LIBS_$$(name)), \
OPTIMIZATION := LOW, \
TOOLCHAIN := $(if $$(filter %.cpp, $$(file)), TOOLCHAIN_LINK_CXX, TOOLCHAIN_DEFAULT), \
OPTIMIZATION := $$(if $$($1_OPTIMIZATION_$$(name)),$$($1_OPTIMIZATION_$$(name)),LOW), \
COPY_DEBUG_SYMBOLS := false, \
STRIP_SYMBOLS := false, \
)) \

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2013, 2018, 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

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2018, 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
@@ -124,8 +124,8 @@ define SetupZipArchiveBody
# If zip has nothing to do, it returns 12 and would fail the build. Check for 12
# and only fail if it's not.
$$($1_ZIP) : $$($1_ALL_SRCS) $$($1_EXTRA_DEPS)
$(MKDIR) -p $$(@D)
$(ECHO) Updating $$($1_NAME)
$$(call LogWarn, Updating $$($1_NAME))
$$(call MakeTargetDir)
$$(foreach s,$$($1_SRC),(cd $$s && $(ZIPEXE) -qru $$($1_ZIP_OPTIONS) $$@ . \
$$($1_ZIP_INCLUDES) $$($1_ZIP_EXCLUDES) -x \*_the.\* \
$$($1_ZIP_EXCLUDES_$$s) \

View File

@@ -201,10 +201,15 @@ var getJibProfiles = function (input) {
data.configuration_make_arg = "CONF_NAME=";
// Exclude list to use when Jib creates a source bundle
data.src_bundle_excludes = "./build .build webrev* */webrev* */*/webrev* */*/*/webrev* .hg */.hg */*/.hg */*/*/.hg";
data.src_bundle_excludes = [
"build", "{,**/}webrev*", "{,**/}.hg", "{,**/}JTwork", "{,**/}JTreport",
"{,**/}.git"
];
// Include list to use when creating a minimal jib source bundle which
// contains just the jib configuration files.
data.conf_bundle_includes = "*/conf/jib-profiles.* make/autoconf/version-numbers"
data.conf_bundle_includes = [
"make/autoconf/version-numbers",
];
// Define some common values
var common = getJibProfilesCommon(input, data);
@@ -233,16 +238,17 @@ var getJibProfilesCommon = function (input, data) {
common.main_profile_names = [
"linux-x64", "linux-x86", "macosx-x64", "solaris-x64",
"solaris-sparcv9", "windows-x64", "windows-x86",
"linux-aarch64", "linux-arm32", "linux-arm64", "linux-arm-vfp-hflt",
"linux-arm-vfp-hflt-dyn"
"linux-aarch64", "linux-arm32"
];
// These are the base setttings for all the main build profiles.
common.main_profile_base = {
dependencies: ["boot_jdk", "gnumake", "jtreg", "jib"],
dependencies: ["boot_jdk", "gnumake", "jtreg", "jib", "autoconf", "jmh", "jcov"],
default_make_targets: ["product-bundles", "test-bundles"],
configure_args: concat(["--enable-jtreg-failure-handler"],
"--with-exclude-translations=de,es,fr,it,ko,pt_BR,sv,ca,tr,cs,sk,ja_JP_A,ja_JP_HA,ja_JP_HI,ja_JP_I",
"--with-exclude-translations=de,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-manpages",
"--with-jvm-features=-shenandoahgc",
versionArgs(input, common))
};
// Extra settings for debug profiles
@@ -356,7 +362,7 @@ var getJibProfilesCommon = function (input, data) {
};
};
common.boot_jdk_version = "10";
common.boot_jdk_version = "11";
common.boot_jdk_home = input.get("boot_jdk", "home_path") + "/jdk-"
+ common.boot_jdk_version
+ (input.build_os == "macosx" ? ".jdk/Contents/Home" : "");
@@ -378,7 +384,7 @@ var getJibProfilesProfiles = function (input, common, data) {
"linux-x64": {
target_os: "linux",
target_cpu: "x64",
dependencies: ["devkit", "autoconf", "graphviz", "pandoc", "graalunit_lib"],
dependencies: ["devkit", "graphviz", "pandoc", "graalunit_lib"],
configure_args: concat(common.configure_args_64bit,
"--enable-full-docs", "--with-zlib=system"),
default_make_targets: ["docs-bundles"],
@@ -388,7 +394,7 @@ var getJibProfilesProfiles = function (input, common, data) {
target_os: "linux",
target_cpu: "x86",
build_cpu: "x64",
dependencies: ["devkit", "autoconf"],
dependencies: ["devkit"],
configure_args: concat(common.configure_args_32bit,
"--with-jvm-variants=minimal,server", "--with-zlib=system"),
},
@@ -396,7 +402,7 @@ var getJibProfilesProfiles = function (input, common, data) {
"macosx-x64": {
target_os: "macosx",
target_cpu: "x64",
dependencies: ["devkit", "autoconf", "graalunit_lib"],
dependencies: ["devkit", "pandoc", "graalunit_lib"],
configure_args: concat(common.configure_args_64bit, "--with-zlib=system",
"--with-macosx-version-max=10.9.0"),
},
@@ -404,7 +410,7 @@ var getJibProfilesProfiles = function (input, common, data) {
"solaris-x64": {
target_os: "solaris",
target_cpu: "x64",
dependencies: ["devkit", "autoconf", "cups"],
dependencies: ["devkit", "cups"],
configure_args: concat(common.configure_args_64bit,
"--with-zlib=system", "--enable-dtrace"),
},
@@ -412,7 +418,7 @@ var getJibProfilesProfiles = function (input, common, data) {
"solaris-sparcv9": {
target_os: "solaris",
target_cpu: "sparcv9",
dependencies: ["devkit", "autoconf", "cups"],
dependencies: ["devkit", "cups"],
configure_args: concat(common.configure_args_64bit,
"--with-zlib=system", "--enable-dtrace"),
},
@@ -420,7 +426,7 @@ var getJibProfilesProfiles = function (input, common, data) {
"windows-x64": {
target_os: "windows",
target_cpu: "x64",
dependencies: ["devkit", "autoconf", "graalunit_lib"],
dependencies: ["devkit", "pandoc", "graalunit_lib"],
configure_args: concat(common.configure_args_64bit),
},
@@ -428,7 +434,7 @@ var getJibProfilesProfiles = function (input, common, data) {
target_os: "windows",
target_cpu: "x86",
build_cpu: "x64",
dependencies: ["devkit", "autoconf"],
dependencies: ["devkit"],
configure_args: concat(common.configure_args_32bit),
},
@@ -436,23 +442,10 @@ var getJibProfilesProfiles = function (input, common, data) {
target_os: "linux",
target_cpu: "aarch64",
build_cpu: "x64",
dependencies: ["devkit", "autoconf", "build_devkit", "cups"],
dependencies: ["devkit", "build_devkit", "cups"],
configure_args: [
"--openjdk-target=aarch64-linux-gnu", "--with-freetype=bundled",
"--disable-warnings-as-errors", "--with-cpu-port=aarch64",
],
},
"linux-arm64": {
target_os: "linux",
target_cpu: "aarch64",
build_cpu: "x64",
dependencies: ["devkit", "autoconf", "build_devkit", "cups", "headless_stubs"],
configure_args: [
"--with-cpu-port=arm64",
"--with-jvm-variants=server",
"--openjdk-target=aarch64-linux-gnu",
"--enable-headless-only"
"--disable-warnings-as-errors"
],
},
@@ -460,36 +453,13 @@ var getJibProfilesProfiles = function (input, common, data) {
target_os: "linux",
target_cpu: "arm",
build_cpu: "x64",
dependencies: ["devkit", "autoconf", "build_devkit", "cups"],
dependencies: ["devkit", "build_devkit", "cups"],
configure_args: [
"--openjdk-target=arm-linux-gnueabihf", "--with-freetype=bundled",
"--with-abi-profile=arm-vfp-hflt", "--disable-warnings-as-errors"
],
},
"linux-arm-vfp-hflt": {
target_os: "linux",
target_cpu: "arm",
build_cpu: "x64",
dependencies: ["devkit", "autoconf", "build_devkit", "cups"],
configure_args: [
"--with-jvm-variants=minimal1,client",
"--with-x=" + input.get("devkit", "install_path") + "/arm-linux-gnueabihf/libc/usr/X11R6-PI",
"--with-fontconfig=" + input.get("devkit", "install_path") + "/arm-linux-gnueabihf/libc/usr/X11R6-PI",
"--openjdk-target=arm-linux-gnueabihf",
"--with-abi-profile=arm-vfp-hflt",
"--with-freetype=bundled"
],
},
// Special version of the SE profile adjusted to be testable on arm64 hardware.
"linux-arm-vfp-hflt-dyn": {
configure_args: "--with-stdc++lib=dynamic"
}
};
// Let linux-arm-vfp-hflt-dyn inherit everything from linux-arm-vfp-hflt
profiles["linux-arm-vfp-hflt-dyn"] = concatObjects(
profiles["linux-arm-vfp-hflt-dyn"], profiles["linux-arm-vfp-hflt"]);
// Add the base settings to all the main profiles
common.main_profile_names.forEach(function (name) {
@@ -524,8 +494,7 @@ var getJibProfilesProfiles = function (input, common, data) {
profiles[maketestName].default_make_targets = [ "test-make" ];
});
// Profiles for building the zero jvm variant. These are used for verification
// in JPRT.
// Profiles for building the zero jvm variant. These are used for verification.
var zeroProfiles = {
"linux-x64-zero": {
target_os: "linux",
@@ -559,6 +528,27 @@ var getJibProfilesProfiles = function (input, common, data) {
profiles[debugName] = concatObjects(profiles[name], common.debug_profile_base);
});
// Define a profile with precompiled headers disabled. This is just used for
// verfication of this build configuration.
var noPchProfiles = {
"linux-x64-debug-nopch": {
target_os: "linux",
target_cpu: "x64",
dependencies: ["devkit"],
configure_args: concat(common.configure_args_64bit,
"--with-zlib=system", "--disable-precompiled-headers"),
},
};
profiles = concatObjects(profiles, noPchProfiles);
// Add base settings to noPch profiles
Object.keys(noPchProfiles).forEach(function (name) {
profiles[name] = concatObjects(common.main_profile_base, profiles[name]);
profiles[name] = concatObjects(common.debug_profile_base, profiles[name]);
// Override default make target with hotspot as that's the only part of
// the build using precompiled headers.
profiles[name].default_make_targets = ["hotspot"];
});
// Bootcycle profiles runs the build with itself as the boot jdk. This can
// be done in two ways. Either using the builtin bootcycle target in the
// build system. Or by supplying the main jdk build as bootjdk to configure.
@@ -617,15 +607,6 @@ var getJibProfilesProfiles = function (input, common, data) {
},
"linux-arm32": {
platform: "linux-arm32",
},
"linux-arm64": {
platform: "linux-arm64-vfp-hflt",
},
"linux-arm-vfp-hflt": {
platform: "linux-arm32-vfp-hflt",
},
"linux-arm-vfp-hflt-dyn": {
platform: "linux-arm32-vfp-hflt-dyn",
}
}
// Generate common artifacts for all main profiles
@@ -708,14 +689,6 @@ var getJibProfilesProfiles = function (input, common, data) {
profiles[openName].artifacts["jdk"].remote));
});
// Enable ZGC in linux-x64-open builds
[ "linux-x64-open" ].forEach(function (name) {
var configureArgs = { configure_args: [ "--with-jvm-features=zgc" ] };
var debugName = name + common.debug_suffix;
profiles[name] = concatObjects(profiles[name], configureArgs);
profiles[debugName] = concatObjects(profiles[debugName], configureArgs);
});
// Generate cmp-baseline profiles for each main profile and their
// corresponding debug profile. This profile does a compare build run with no
// changes to verify that the compare script has a clean baseline
@@ -732,18 +705,8 @@ var getJibProfilesProfiles = function (input, common, data) {
});
});
// Profiles used to run tests. Used in JPRT and Mach 5.
// Profiles used to run tests.
var testOnlyProfiles = {
"run-test-jprt": {
target_os: input.build_os,
target_cpu: input.build_cpu,
dependencies: [ "jtreg", "gnumake", "boot_jdk", "devkit", "jib" ],
labels: "test",
environment: {
"JT_JAVA": common.boot_jdk_home
}
},
"run-test": {
target_os: input.build_os,
target_cpu: input.build_cpu,
@@ -765,16 +728,16 @@ var getJibProfilesProfiles = function (input, common, data) {
"run-test-prebuilt": {
target_os: input.build_os,
target_cpu: input.build_cpu,
src: "src.conf",
dependencies: [ "jtreg", "gnumake", "boot_jdk", "jib", testedProfile + ".jdk",
testedProfile + ".test", "src.full"
dependencies: [
"jtreg", "gnumake", "boot_jdk", "devkit", "jib", testedProfile + ".jdk",
testedProfile + ".test"
],
work_dir: input.get("src.full", "install_path") + "/test",
src: "src.conf",
make_args: [ "run-test-prebuilt", "LOG_CMDLINES=true", "JTREG_VERBOSE=fail,error,time" ],
environment: {
"JT_JAVA": common.boot_jdk_home,
"PRODUCT_HOME": input.get(testedProfile + ".jdk", "home_path"),
"TEST_IMAGE_DIR": input.get(testedProfile + ".test", "home_path"),
"TEST_OUTPUT_DIR": input.src_top_dir
"BOOT_JDK": common.boot_jdk_home,
"JDK_IMAGE_DIR": input.get(testedProfile + ".jdk", "home_path"),
"TEST_IMAGE_DIR": input.get(testedProfile + ".test", "home_path")
},
labels: "test"
}
@@ -800,12 +763,10 @@ var getJibProfilesProfiles = function (input, common, data) {
// This gives us a guaranteed working version of lldb for the jtreg failure handler.
if (input.build_os == "macosx") {
macosxRunTestExtra = {
dependencies: [ "devkit" ],
environment_path: input.get("devkit", "install_path")
+ "/Xcode.app/Contents/Developer/usr/bin"
};
profiles["run-test"] = concatObjects(profiles["run-test"], macosxRunTestExtra);
profiles["run-test-jprt"] = concatObjects(profiles["run-test-jprt"], macosxRunTestExtra);
profiles["run-test-prebuilt"] = concatObjects(profiles["run-test-prebuilt"], macosxRunTestExtra);
}
// On windows we want the debug symbols available at test time
@@ -813,13 +774,34 @@ var getJibProfilesProfiles = function (input, common, data) {
windowsRunTestPrebuiltExtra = {
dependencies: [ testedProfile + ".jdk_symbols" ],
environment: {
"PRODUCT_SYMBOLS_HOME": input.get(testedProfile + ".jdk_symbols", "home_path"),
"SYMBOLS_IMAGE_DIR": input.get(testedProfile + ".jdk_symbols", "home_path"),
}
};
profiles["run-test-prebuilt"] = concatObjects(profiles["run-test-prebuilt"],
windowsRunTestPrebuiltExtra);
}
// The profile run-test-prebuilt defines src.conf as the src bundle. When
// running in Mach 5, this reduces the time it takes to populate the
// considerably. But with just src.conf, we cannot actually run any tests,
// so if running from a workspace with just src.conf in it, we need to also
// get src.full as a dependency, and define the work_dir (where make gets
// run) to be in the src.full install path. By running in the install path,
// the same cached installation of the full src can be reused for multiple
// test tasks. Care must however be taken not to polute that work dir by
// setting the appropriate make variables to control output directories.
//
// Use the existance of the top level README as indication of if this is
// the full source or just src.conf.
if (!new java.io.File(__DIR__, "../../README").exists()) {
var runTestPrebuiltSrcFullExtra = {
dependencies: "src.full",
work_dir: input.get("src.full", "install_path"),
}
profiles["run-test-prebuilt"] = concatObjects(profiles["run-test-prebuilt"],
runTestPrebuiltSrcFullExtra);
}
// Generate the missing platform attributes
profiles = generatePlatformAttributes(profiles);
profiles = generateDefaultMakeTargetsConfigureArg(common, profiles);
@@ -836,21 +818,13 @@ var getJibProfilesProfiles = function (input, common, data) {
var getJibProfilesDependencies = function (input, common) {
var devkit_platform_revisions = {
linux_x64: "gcc7.3.0-OEL6.4+1.0",
linux_x64: "gcc7.3.0-OEL6.4+1.1",
macosx_x64: "Xcode9.4-MacOSX10.13+1.0",
solaris_x64: "SS12u4-Solaris11u1+1.0",
solaris_sparcv9: "SS12u4-Solaris11u1+1.1",
solaris_sparcv9: "SS12u6-Solaris11u3+1.0",
windows_x64: "VS2017-15.5.5+1.0",
linux_aarch64: (input.profile != null && input.profile.indexOf("arm64") >= 0
? "gcc-linaro-aarch64-linux-gnu-4.8-2013.11_linux+1.0"
: "gcc7.3.0-Fedora27+1.0"),
linux_arm: (input.profile != null && input.profile.indexOf("hflt") >= 0
? "gcc-linaro-arm-linux-gnueabihf-raspbian-2012.09-20120921_linux+1.0"
: (input.profile.indexOf("arm32") >= 0
? "gcc7.3.0-Fedora27+1.0"
: "arm-linaro-4.7+1.0"
)
)
linux_aarch64: "gcc7.3.0-Fedora27+1.1",
linux_arm: "gcc7.3.0-Fedora27+1.1"
};
var devkit_platform = (input.target_cpu == "x86"
@@ -870,9 +844,10 @@ var getJibProfilesDependencies = function (input, common) {
server: "jpg",
product: "jdk",
version: common.boot_jdk_version,
build_number: "46",
build_number: "28",
file: "bundles/" + boot_jdk_platform + "/jdk-" + common.boot_jdk_version + "_"
+ boot_jdk_platform + "_bin.tar.gz",
+ boot_jdk_platform + "_bin"
+ (input.build_os == "windows" ? ".zip" : ".tar.gz"),
configure_args: "--with-boot-jdk=" + common.boot_jdk_home,
environment_path: common.boot_jdk_home + "/bin"
},
@@ -881,7 +856,10 @@ var getJibProfilesDependencies = function (input, common) {
organization: common.organization,
ext: "tar.gz",
module: "devkit-" + devkit_platform,
revision: devkit_platform_revisions[devkit_platform]
revision: devkit_platform_revisions[devkit_platform],
environment: {
"DEVKIT_HOME": input.get("devkit", "home_path"),
}
},
build_devkit: {
@@ -900,13 +878,27 @@ var getJibProfilesDependencies = function (input, common) {
jtreg: {
server: "javare",
revision: "4.2",
build_number: "b12",
build_number: "b13",
checksum_file: "MD5_VALUES",
file: "jtreg_bin-4.2.zip",
environment_name: "JT_HOME",
environment_path: input.get("jtreg", "install_path") + "/jtreg/bin"
},
jmh: {
organization: common.organization,
ext: "tar.gz",
revision: "1.21+1.0"
},
jcov: {
server: "jpg",
product: "jcov",
version: "3.0",
build_number: "b07",
file: "bundles/jcov-3_0.zip",
},
gnumake: {
organization: common.organization,
ext: "tar.gz",
@@ -948,7 +940,7 @@ var getJibProfilesDependencies = function (input, common) {
pandoc: {
organization: common.organization,
ext: "tar.gz",
revision: "1.17.2+1.0",
revision: "2.3.1+1.0",
module: "pandoc-" + input.target_platform,
configure_args: "PANDOC=" + input.get("pandoc", "install_path") + "/pandoc/pandoc",
environment_path: input.get("pandoc", "install_path") + "/pandoc"
@@ -960,9 +952,9 @@ var getJibProfilesDependencies = function (input, common) {
ext: "zip",
classifier: "distribution",
revision: "3.0-SNAPSHOT",
environment_name: "JIB_JAR",
environment_name: "JIB_HOME",
environment_value: input.get("jib", "install_path")
+ "/jib-3.0-SNAPSHOT-distribution/lib/jib-3.0-SNAPSHOT.jar"
+ "/jib-3.0-SNAPSHOT-distribution"
},
ant: {
@@ -982,14 +974,6 @@ var getJibProfilesDependencies = function (input, common) {
},
};
// Need to add a value for the Visual Studio tools variable to make
// jaot be able to pick up the Visual Studio linker in testing.
if (input.target_os == "windows") {
dependencies.devkit.environment = {
VS120COMNTOOLS: input.get("devkit", "install_path") + "/Common7/Tools"
};
}
return dependencies;
};

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2018, 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
@@ -31,7 +31,7 @@ $(eval $(call IncludeCustomExtension, copy/Copy-java.base.gmk))
################################################################################
ifneq ($(findstring $(OPENJDK_TARGET_OS), windows aix),)
ifeq ($(OPENJDK_TARGET_OS), aix)
TZMAPPINGS_SRC := $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/conf
@@ -128,7 +128,7 @@ POLICY_DST := $(CONF_DST_DIR)/security/java.policy
POLICY_SRC_LIST := $(POLICY_SRC)
$(POLICY_DST): $(POLICY_SRC_LIST)
$(MKDIR) -p $(@D)
$(call MakeTargetDir)
$(RM) $@ $@.tmp
$(foreach f,$(POLICY_SRC_LIST),$(CAT) $(f) >> $@.tmp;)
$(MV) $@.tmp $@
@@ -153,7 +153,7 @@ ifneq ($(IMPORT_MODULES_CONF), )
endif
$(DEF_POLICY_DST): $(DEF_POLICY_SRC_LIST)
$(MKDIR) -p $(@D)
$(call MakeTargetDir)
$(RM) $@ $@.tmp
$(foreach f,$(DEF_POLICY_SRC_LIST),$(CAT) $(f) >> $@.tmp;)
$(MV) $@.tmp $@
@@ -183,7 +183,7 @@ $(eval $(call SetupCopyFiles, COPY_NET_PROPERTIES, \
TARGETS += $(COPY_NET_PROPERTIES)
ifeq ($(OPENJDK_TARGET_OS), solaris)
ifneq ($(filter $(OPENJDK_TARGET_OS), solaris linux), )
$(eval $(call SetupCopyFiles, COPY_SDP_CONF, \
FILES := $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/conf/sdp/sdp.conf.template, \
DEST := $(CONF_DST_DIR)/sdp, \

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2014, 2018, 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

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2018, 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

View File

@@ -25,7 +25,7 @@
package java.lang;
/**
/**
* The CharacterData00 class encapsulates the large tables once found in
* java.lang.Character
*/
@@ -265,6 +265,54 @@ class CharacterData00 extends CharacterData {
case 0x13ED: mapChar = 0xABBD; break;
case 0x13EE: mapChar = 0xABBE; break;
case 0x13EF: mapChar = 0xABBF; break;
case 0x1C90: mapChar = 0x10D0; break;
case 0x1C91: mapChar = 0x10D1; break;
case 0x1C92: mapChar = 0x10D2; break;
case 0x1C93: mapChar = 0x10D3; break;
case 0x1C94: mapChar = 0x10D4; break;
case 0x1C95: mapChar = 0x10D5; break;
case 0x1C96: mapChar = 0x10D6; break;
case 0x1C97: mapChar = 0x10D7; break;
case 0x1C98: mapChar = 0x10D8; break;
case 0x1C99: mapChar = 0x10D9; break;
case 0x1C9A: mapChar = 0x10DA; break;
case 0x1C9B: mapChar = 0x10DB; break;
case 0x1C9C: mapChar = 0x10DC; break;
case 0x1C9D: mapChar = 0x10DD; break;
case 0x1C9E: mapChar = 0x10DE; break;
case 0x1C9F: mapChar = 0x10DF; break;
case 0x1CA0: mapChar = 0x10E0; break;
case 0x1CA1: mapChar = 0x10E1; break;
case 0x1CA2: mapChar = 0x10E2; break;
case 0x1CA3: mapChar = 0x10E3; break;
case 0x1CA4: mapChar = 0x10E4; break;
case 0x1CA5: mapChar = 0x10E5; break;
case 0x1CA6: mapChar = 0x10E6; break;
case 0x1CA7: mapChar = 0x10E7; break;
case 0x1CA8: mapChar = 0x10E8; break;
case 0x1CA9: mapChar = 0x10E9; break;
case 0x1CAA: mapChar = 0x10EA; break;
case 0x1CAB: mapChar = 0x10EB; break;
case 0x1CAC: mapChar = 0x10EC; break;
case 0x1CAD: mapChar = 0x10ED; break;
case 0x1CAE: mapChar = 0x10EE; break;
case 0x1CAF: mapChar = 0x10EF; break;
case 0x1CB0: mapChar = 0x10F0; break;
case 0x1CB1: mapChar = 0x10F1; break;
case 0x1CB2: mapChar = 0x10F2; break;
case 0x1CB3: mapChar = 0x10F3; break;
case 0x1CB4: mapChar = 0x10F4; break;
case 0x1CB5: mapChar = 0x10F5; break;
case 0x1CB6: mapChar = 0x10F6; break;
case 0x1CB7: mapChar = 0x10F7; break;
case 0x1CB8: mapChar = 0x10F8; break;
case 0x1CB9: mapChar = 0x10F9; break;
case 0x1CBA: mapChar = 0x10FA; break;
case 0x1CBB: mapChar = 0x10FB; break;
case 0x1CBC: mapChar = 0x10FC; break;
case 0x1CBD: mapChar = 0x10FD; break;
case 0x1CBE: mapChar = 0x10FE; break;
case 0x1CBF: mapChar = 0x10FF; break;
case 0x1E9E: mapChar = 0x00DF; break;
case 0x1F88: mapChar = 0x1F80; break;
case 0x1F89: mapChar = 0x1F81; break;
@@ -355,6 +403,52 @@ class CharacterData00 extends CharacterData {
case 0x0287: mapChar = 0xA7B1; break;
case 0x029D: mapChar = 0xA7B2; break;
case 0x029E: mapChar = 0xA7B0; break;
case 0x10D0: mapChar = 0x1C90; break;
case 0x10D1: mapChar = 0x1C91; break;
case 0x10D2: mapChar = 0x1C92; break;
case 0x10D3: mapChar = 0x1C93; break;
case 0x10D4: mapChar = 0x1C94; break;
case 0x10D5: mapChar = 0x1C95; break;
case 0x10D6: mapChar = 0x1C96; break;
case 0x10D7: mapChar = 0x1C97; break;
case 0x10D8: mapChar = 0x1C98; break;
case 0x10D9: mapChar = 0x1C99; break;
case 0x10DA: mapChar = 0x1C9A; break;
case 0x10DB: mapChar = 0x1C9B; break;
case 0x10DC: mapChar = 0x1C9C; break;
case 0x10DD: mapChar = 0x1C9D; break;
case 0x10DE: mapChar = 0x1C9E; break;
case 0x10DF: mapChar = 0x1C9F; break;
case 0x10E0: mapChar = 0x1CA0; break;
case 0x10E1: mapChar = 0x1CA1; break;
case 0x10E2: mapChar = 0x1CA2; break;
case 0x10E3: mapChar = 0x1CA3; break;
case 0x10E4: mapChar = 0x1CA4; break;
case 0x10E5: mapChar = 0x1CA5; break;
case 0x10E6: mapChar = 0x1CA6; break;
case 0x10E7: mapChar = 0x1CA7; break;
case 0x10E8: mapChar = 0x1CA8; break;
case 0x10E9: mapChar = 0x1CA9; break;
case 0x10EA: mapChar = 0x1CAA; break;
case 0x10EB: mapChar = 0x1CAB; break;
case 0x10EC: mapChar = 0x1CAC; break;
case 0x10ED: mapChar = 0x1CAD; break;
case 0x10EE: mapChar = 0x1CAE; break;
case 0x10EF: mapChar = 0x1CAF; break;
case 0x10F0: mapChar = 0x1CB0; break;
case 0x10F1: mapChar = 0x1CB1; break;
case 0x10F2: mapChar = 0x1CB2; break;
case 0x10F3: mapChar = 0x1CB3; break;
case 0x10F4: mapChar = 0x1CB4; break;
case 0x10F5: mapChar = 0x1CB5; break;
case 0x10F6: mapChar = 0x1CB6; break;
case 0x10F7: mapChar = 0x1CB7; break;
case 0x10F8: mapChar = 0x1CB8; break;
case 0x10F9: mapChar = 0x1CB9; break;
case 0x10FA: mapChar = 0x1CBA; break;
case 0x10FD: mapChar = 0x1CBD; break;
case 0x10FE: mapChar = 0x1CBE; break;
case 0x10FF: mapChar = 0x1CBF; break;
case 0x1C80: mapChar = 0x0412; break;
case 0x1C81: mapChar = 0x0414; break;
case 0x1C82: mapChar = 0x041E; break;
@@ -544,9 +638,16 @@ class CharacterData00 extends CharacterData {
mapChar = ch + 1;
}
else if ((val & $$maskLowerCase) == 0) {
// The character does not have a lowercase equivalent, so it must
// already be lowercase; so subtract 1 to get the titlecase form.
mapChar = ch - 1;
// For some Georgian letters, titlecase form is
// same as this character.
if(ch >= 0x10D0 && ch <= 0x10FF) {
mapChar = ch;
}
else {
// The character does not have a lowercase equivalent, so it must
// already be lowercase; so subtract 1 to get the titlecase form.
mapChar = ch - 1;
}
}
// else {
// The character has both an uppercase equivalent and a lowercase
@@ -653,6 +754,21 @@ class CharacterData00 extends CharacterData {
return retval;
}
boolean isDigit(int ch) {
int props = getProperties(ch);
return (props & $$maskType) == Character.DECIMAL_DIGIT_NUMBER;
}
boolean isLowerCase(int ch) {
int props = getProperties(ch);
return (props & $$maskType) == Character.LOWERCASE_LETTER;
}
boolean isUpperCase(int ch) {
int props = getProperties(ch);
return (props & $$maskType) == Character.UPPERCASE_LETTER;
}
boolean isWhitespace(int ch) {
int props = getProperties(ch);
return ((props & $$maskIdentifierInfo) == $$valueJavaWhitespace);
@@ -741,6 +857,52 @@ class CharacterData00 extends CharacterData {
case 0x0287: mapChar = 0xA7B1; break;
case 0x029D: mapChar = 0xA7B2; break;
case 0x029E: mapChar = 0xA7B0; break;
case 0x10D0: mapChar = 0x1C90; break;
case 0x10D1: mapChar = 0x1C91; break;
case 0x10D2: mapChar = 0x1C92; break;
case 0x10D3: mapChar = 0x1C93; break;
case 0x10D4: mapChar = 0x1C94; break;
case 0x10D5: mapChar = 0x1C95; break;
case 0x10D6: mapChar = 0x1C96; break;
case 0x10D7: mapChar = 0x1C97; break;
case 0x10D8: mapChar = 0x1C98; break;
case 0x10D9: mapChar = 0x1C99; break;
case 0x10DA: mapChar = 0x1C9A; break;
case 0x10DB: mapChar = 0x1C9B; break;
case 0x10DC: mapChar = 0x1C9C; break;
case 0x10DD: mapChar = 0x1C9D; break;
case 0x10DE: mapChar = 0x1C9E; break;
case 0x10DF: mapChar = 0x1C9F; break;
case 0x10E0: mapChar = 0x1CA0; break;
case 0x10E1: mapChar = 0x1CA1; break;
case 0x10E2: mapChar = 0x1CA2; break;
case 0x10E3: mapChar = 0x1CA3; break;
case 0x10E4: mapChar = 0x1CA4; break;
case 0x10E5: mapChar = 0x1CA5; break;
case 0x10E6: mapChar = 0x1CA6; break;
case 0x10E7: mapChar = 0x1CA7; break;
case 0x10E8: mapChar = 0x1CA8; break;
case 0x10E9: mapChar = 0x1CA9; break;
case 0x10EA: mapChar = 0x1CAA; break;
case 0x10EB: mapChar = 0x1CAB; break;
case 0x10EC: mapChar = 0x1CAC; break;
case 0x10ED: mapChar = 0x1CAD; break;
case 0x10EE: mapChar = 0x1CAE; break;
case 0x10EF: mapChar = 0x1CAF; break;
case 0x10F0: mapChar = 0x1CB0; break;
case 0x10F1: mapChar = 0x1CB1; break;
case 0x10F2: mapChar = 0x1CB2; break;
case 0x10F3: mapChar = 0x1CB3; break;
case 0x10F4: mapChar = 0x1CB4; break;
case 0x10F5: mapChar = 0x1CB5; break;
case 0x10F6: mapChar = 0x1CB6; break;
case 0x10F7: mapChar = 0x1CB7; break;
case 0x10F8: mapChar = 0x1CB8; break;
case 0x10F9: mapChar = 0x1CB9; break;
case 0x10FA: mapChar = 0x1CBA; break;
case 0x10FD: mapChar = 0x1CBD; break;
case 0x10FE: mapChar = 0x1CBE; break;
case 0x10FF: mapChar = 0x1CBF; break;
case 0x1C80: mapChar = 0x0412; break;
case 0x1C81: mapChar = 0x0414; break;
case 0x1C82: mapChar = 0x041E; break;
@@ -928,5 +1090,5 @@ class CharacterData00 extends CharacterData {
static {
$$Initializers
}
}
}

View File

@@ -364,6 +364,8 @@ class CharacterData01 extends CharacterData {
case 0x10E78: retval = 700; break; // RUMI NUMBER SEVEN HUNDRED
case 0x10E79: retval = 800; break; // RUMI NUMBER EIGHT HUNDRED
case 0x10E7A: retval = 900; break; // RUMI NUMBER NINE HUNDRED
case 0x10F25: retval = 100; break; // OLD SOGDIAN NUMBER ONE HUNDRED
case 0x10F54: retval = 100; break; // SOGDIAN NUMBER ONE HUNDRED
case 0x1105E: retval = 40; break; // BRAHMI NUMBER FORTY
case 0x1105F: retval = 50; break; // BRAHMI NUMBER FIFTY
case 0x11060: retval = 60; break; // BRAHMI NUMBER SIXTY
@@ -407,6 +409,46 @@ class CharacterData01 extends CharacterData {
case 0x1D36F: retval = 70; break; // COUNTING ROD TENS DIGIT SEVEN
case 0x1D370: retval = 80; break; // COUNTING ROD TENS DIGIT EIGHT
case 0x1D371: retval = 90; break; // COUNTING ROD TENS DIGIT NINE
case 0x1EC7D: retval = 40; break; // INDIC SIYAQ NUMBER FORTY
case 0x1EC7E: retval = 50; break; // INDIC SIYAQ NUMBER FIFTY
case 0x1EC7F: retval = 60; break; // INDIC SIYAQ NUMBER SIXTY
case 0X1EC80: retval = 70; break; // INDIC SIYAQ NUMBER SEVENTY
case 0X1EC81: retval = 80; break; // INDIC SIYAQ NUMBER EIGHTY
case 0X1EC82: retval = 90; break; // INDIC SIYAQ NUMBER NINETY
case 0X1EC83: retval = 100; break; // INDIC SIYAQ NUMBER ONE HUNDRED
case 0X1EC84: retval = 200; break; // INDIC SIYAQ NUMBER TWO HUNDRED
case 0X1EC85: retval = 300; break; // INDIC SIYAQ NUMBER THREE HUNDRED
case 0X1EC86: retval = 400; break; // INDIC SIYAQ NUMBER FOUR HUNDRED
case 0X1EC87: retval = 500; break; // INDIC SIYAQ NUMBER FIVE HUNDRED
case 0X1EC88: retval = 600; break; // INDIC SIYAQ NUMBER SIX HUNDRED
case 0X1EC89: retval = 700; break; // INDIC SIYAQ NUMBER SEVEN HUNDRED
case 0X1EC8A: retval = 800; break; // INDIC SIYAQ NUMBER EIGHT HUNDRED
case 0X1EC8B: retval = 900; break; // INDIC SIYAQ NUMBER NINE HUNDRED
case 0X1EC8C: retval = 1000; break; // INDIC SIYAQ NUMBER ONE THOUSAND
case 0X1EC8D: retval = 2000; break; // INDIC SIYAQ NUMBER TWO THOUSAND
case 0X1EC8E: retval = 3000; break; // INDIC SIYAQ NUMBER THREE THOUSAND
case 0X1EC8F: retval = 4000; break; // INDIC SIYAQ NUMBER FOUR THOUSAND
case 0X1EC90: retval = 5000; break; // INDIC SIYAQ NUMBER FIVE THOUSAND
case 0X1EC91: retval = 6000; break; // INDIC SIYAQ NUMBER SIX THOUSAND
case 0X1EC92: retval = 7000; break; // INDIC SIYAQ NUMBER SEVEN THOUSAND
case 0X1EC93: retval = 8000; break; // INDIC SIYAQ NUMBER EIGHT THOUSAND
case 0X1EC94: retval = 9000; break; // INDIC SIYAQ NUMBER NINE THOUSAND
case 0X1EC95: retval = 10000; break; // INDIC SIYAQ NUMBER TEN THOUSAND
case 0X1EC96: retval = 20000; break; // INDIC SIYAQ NUMBER TWENTY THOUSAND
case 0X1EC97: retval = 30000; break; // INDIC SIYAQ NUMBER THIRTY THOUSAND
case 0X1EC98: retval = 40000; break; // INDIC SIYAQ NUMBER FORTY THOUSAND
case 0X1EC99: retval = 50000; break; // INDIC SIYAQ NUMBER FIFTY THOUSAND
case 0X1EC9A: retval = 60000; break; // INDIC SIYAQ NUMBER SIXTY THOUSAND
case 0X1EC9B: retval = 70000; break; // INDIC SIYAQ NUMBER SEVENTY THOUSAND
case 0X1EC9C: retval = 80000; break; // INDIC SIYAQ NUMBER EIGHTY THOUSAND
case 0X1EC9D: retval = 90000; break; // INDIC SIYAQ NUMBER NINETY THOUSAND
case 0X1EC9E: retval = 100000; break; // INDIC SIYAQ NUMBER LAKH
case 0X1EC9F: retval = 200000; break; // INDIC SIYAQ NUMBER LAKHAN
case 0X1ECA0: retval = 100000; break; // INDIC SIYAQ LAKH MARK
case 0X1ECA1: retval = 10000000; break; // INDIC SIYAQ NUMBER KAROR
case 0X1ECA2: retval = 20000000; break; // INDIC SIYAQ NUMBER KARORAN
case 0X1ECB3: retval = 10000; break; // INDIC SIYAQ NUMBER ALTERNATE TEN THOUSAND
case 0X1ECB4: retval = 100000; break; // INDIC SIYAQ NUMBER ALTERNATE LAKH MARK
default: retval = -2; break;
}
@@ -418,6 +460,21 @@ class CharacterData01 extends CharacterData {
return retval;
}
boolean isDigit(int ch) {
int props = getProperties(ch);
return (props & $$maskType) == Character.DECIMAL_DIGIT_NUMBER;
}
boolean isLowerCase(int ch) {
int props = getProperties(ch);
return (props & $$maskType) == Character.LOWERCASE_LETTER;
}
boolean isUpperCase(int ch) {
int props = getProperties(ch);
return (props & $$maskType) == Character.UPPERCASE_LETTER;
}
boolean isWhitespace(int ch) {
int props = getProperties(ch);
return ((props & $$maskIdentifierInfo) == $$valueJavaWhitespace);

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2018, 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
@@ -217,6 +217,21 @@ class CharacterData02 extends CharacterData {
return retval;
}
boolean isDigit(int ch) {
int props = getProperties(ch);
return (props & $$maskType) == Character.DECIMAL_DIGIT_NUMBER;
}
boolean isLowerCase(int ch) {
int props = getProperties(ch);
return (props & $$maskType) == Character.LOWERCASE_LETTER;
}
boolean isUpperCase(int ch) {
int props = getProperties(ch);
return (props & $$maskType) == Character.UPPERCASE_LETTER;
}
boolean isWhitespace(int ch) {
return (getProperties(ch) & $$maskIdentifierInfo) == $$valueJavaWhitespace;
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2018, 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
@@ -217,6 +217,21 @@ class CharacterData0E extends CharacterData {
return retval;
}
boolean isDigit(int ch) {
int props = getProperties(ch);
return (props & $$maskType) == Character.DECIMAL_DIGIT_NUMBER;
}
boolean isLowerCase(int ch) {
int props = getProperties(ch);
return (props & $$maskType) == Character.LOWERCASE_LETTER;
}
boolean isUpperCase(int ch) {
int props = getProperties(ch);
return (props & $$maskType) == Character.UPPERCASE_LETTER;
}
boolean isWhitespace(int ch) {
int props = getProperties(ch);
return ((props & $$maskIdentifierInfo) == $$valueJavaWhitespace);

View File

@@ -25,6 +25,8 @@
package java.lang;
import jdk.internal.HotSpotIntrinsicCandidate;
/** The CharacterData class encapsulates the large tables found in
Java.lang.Character. */
@@ -78,6 +80,23 @@ class CharacterDataLatin1 extends CharacterData {
return props;
}
@HotSpotIntrinsicCandidate
boolean isDigit(int ch) {
return '0' <= ch && ch <= '9';
}
@HotSpotIntrinsicCandidate
boolean isLowerCase(int ch) {
int props = getProperties(ch);
return (props & $$maskType) == Character.LOWERCASE_LETTER;
}
@HotSpotIntrinsicCandidate
boolean isUpperCase(int ch) {
int props = getProperties(ch);
return (props & $$maskType) == Character.UPPERCASE_LETTER;
}
boolean isOtherLowercase(int ch) {
int props = getPropertiesEx(ch);
return (props & $$maskOtherLowercase) != 0;
@@ -214,6 +233,7 @@ class CharacterDataLatin1 extends CharacterData {
return retval;
}
@HotSpotIntrinsicCandidate
boolean isWhitespace(int ch) {
int props = getProperties(ch);
return ((props & $$maskIdentifierInfo) == $$valueJavaWhitespace);

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2018, 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
@@ -41,47 +41,59 @@ class CharacterDataPrivateUse extends CharacterData {
}
boolean isJavaIdentifierStart(int ch) {
return false;
return false;
}
boolean isJavaIdentifierPart(int ch) {
return false;
return false;
}
boolean isUnicodeIdentifierStart(int ch) {
return false;
return false;
}
boolean isUnicodeIdentifierPart(int ch) {
return false;
return false;
}
boolean isIdentifierIgnorable(int ch) {
return false;
return false;
}
int toLowerCase(int ch) {
return ch;
return ch;
}
int toUpperCase(int ch) {
return ch;
return ch;
}
int toTitleCase(int ch) {
return ch;
return ch;
}
int digit(int ch, int radix) {
return -1;
return -1;
}
int getNumericValue(int ch) {
return -1;
return -1;
}
boolean isDigit(int ch) {
return false;
}
boolean isLowerCase(int ch) {
return false;
}
boolean isUpperCase(int ch) {
return false;
}
boolean isWhitespace(int ch) {
return false;
return false;
}
byte getDirectionality(int ch) {
@@ -91,7 +103,7 @@ class CharacterDataPrivateUse extends CharacterData {
}
boolean isMirrored(int ch) {
return false;
return false;
}
static final CharacterData instance = new CharacterDataPrivateUse();

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2018, 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
@@ -35,59 +35,71 @@ class CharacterDataUndefined extends CharacterData {
}
int getType(int ch) {
return Character.UNASSIGNED;
return Character.UNASSIGNED;
}
boolean isJavaIdentifierStart(int ch) {
return false;
return false;
}
boolean isJavaIdentifierPart(int ch) {
return false;
return false;
}
boolean isUnicodeIdentifierStart(int ch) {
return false;
return false;
}
boolean isUnicodeIdentifierPart(int ch) {
return false;
return false;
}
boolean isIdentifierIgnorable(int ch) {
return false;
return false;
}
int toLowerCase(int ch) {
return ch;
return ch;
}
int toUpperCase(int ch) {
return ch;
return ch;
}
int toTitleCase(int ch) {
return ch;
return ch;
}
int digit(int ch, int radix) {
return -1;
return -1;
}
int getNumericValue(int ch) {
return -1;
return -1;
}
boolean isDigit(int ch) {
return false;
}
boolean isLowerCase(int ch) {
return false;
}
boolean isUpperCase(int ch) {
return false;
}
boolean isWhitespace(int ch) {
return false;
return false;
}
byte getDirectionality(int ch) {
return Character.DIRECTIONALITY_UNDEFINED;
return Character.DIRECTIONALITY_UNDEFINED;
}
boolean isMirrored(int ch) {
return false;
return false;
}
static final CharacterData instance = new CharacterDataUndefined();

View File

@@ -0,0 +1,94 @@
0x21 U+ff01
0x22 U+ff02
0x23 U+ff03
0x24 U+ff04
0x25 U+ff05
0x26 U+ff06
0x27 U+ff07
0x28 U+ff08
0x29 U+ff09
0x2a U+ff0a
0x2b U+ff0b
0x2c U+ff0c
0x2d U+ff0d
0x2e U+ff0e
0x2f U+ff0f
0x30 U+ff10
0x31 U+ff11
0x32 U+ff12
0x33 U+ff13
0x34 U+ff14
0x35 U+ff15
0x36 U+ff16
0x37 U+ff17
0x38 U+ff18
0x39 U+ff19
0x3a U+ff1a
0x3b U+ff1b
0x3c U+ff1c
0x3d U+ff1d
0x3e U+ff1e
0x3f U+ff1f
0x40 U+ff20
0x41 U+ff21
0x42 U+ff22
0x43 U+ff23
0x44 U+ff24
0x45 U+ff25
0x46 U+ff26
0x47 U+ff27
0x48 U+ff28
0x49 U+ff29
0x4a U+ff2a
0x4b U+ff2b
0x4c U+ff2c
0x4d U+ff2d
0x4e U+ff2e
0x4f U+ff2f
0x50 U+ff30
0x51 U+ff31
0x52 U+ff32
0x53 U+ff33
0x54 U+ff34
0x55 U+ff35
0x56 U+ff36
0x57 U+ff37
0x58 U+ff38
0x59 U+ff39
0x5a U+ff3a
0x5b U+ff3b
0x5c U+ff3c
0x5d U+ff3d
0x5e U+ff3e
0x5f U+ff3f
0x60 U+ff40
0x61 U+ff41
0x62 U+ff42
0x63 U+ff43
0x64 U+ff44
0x65 U+ff45
0x66 U+ff46
0x67 U+ff47
0x68 U+ff48
0x69 U+ff49
0x6a U+ff4a
0x6b U+ff4b
0x6c U+ff4c
0x6d U+ff4d
0x6e U+ff4e
0x6f U+ff4f
0x70 U+ff50
0x71 U+ff51
0x72 U+ff52
0x73 U+ff53
0x74 U+ff54
0x75 U+ff55
0x76 U+ff56
0x77 U+ff57
0x78 U+ff58
0x79 U+ff59
0x7a U+ff5a
0x7b U+ff5b
0x7c U+ff5c
0x7d U+ff5d
0x7e U+ff5e

View File

@@ -0,0 +1,256 @@
0x00 U+0000
0x01 U+0001
0x02 U+0002
0x03 U+0003
0x04 U+0004
0x05 U+0005
0x06 U+0006
0x07 U+0007
0x08 U+0008
0x09 U+0009
0x0a U+000a
0x0b U+000b
0x0c U+000c
0x0d U+000d
0x0e U+000e
0x0f U+000f
0x10 U+0010
0x11 U+0011
0x12 U+0012
0x13 U+0013
0x14 U+0014
0x15 U+0015
0x16 U+0016
0x17 U+0017
0x18 U+0018
0x19 U+0019
0x1a U+001a
0x1b U+001b
0x1c U+001c
0x1d U+001d
0x1e U+001e
0x1f U+001f
0x20 U+0020
0x21 U+0021
0x22 U+0022
0x23 U+0023
0x24 U+0024
0x25 U+0025
0x26 U+0026
0x27 U+0027
0x28 U+0028
0x29 U+0029
0x2a U+002a
0x2b U+002b
0x2c U+002c
0x2d U+002d
0x2e U+002e
0x2f U+002f
0x30 U+0030
0x31 U+0031
0x32 U+0032
0x33 U+0033
0x34 U+0034
0x35 U+0035
0x36 U+0036
0x37 U+0037
0x38 U+0038
0x39 U+0039
0x3a U+003a
0x3b U+003b
0x3c U+003c
0x3d U+003d
0x3e U+003e
0x3f U+003f
0x40 U+0040
0x41 U+0041
0x42 U+0042
0x43 U+0043
0x44 U+0044
0x45 U+0045
0x46 U+0046
0x47 U+0047
0x48 U+0048
0x49 U+0049
0x4a U+004a
0x4b U+004b
0x4c U+004c
0x4d U+004d
0x4e U+004e
0x4f U+004f
0x50 U+0050
0x51 U+0051
0x52 U+0052
0x53 U+0053
0x54 U+0054
0x55 U+0055
0x56 U+0056
0x57 U+0057
0x58 U+0058
0x59 U+0059
0x5a U+005a
0x5b U+005b
0x5c U+005c
0x5d U+005d
0x5e U+005e
0x5f U+005f
0x60 U+0060
0x61 U+0061
0x62 U+0062
0x63 U+0063
0x64 U+0064
0x65 U+0065
0x66 U+0066
0x67 U+0067
0x68 U+0068
0x69 U+0069
0x6a U+006a
0x6b U+006b
0x6c U+006c
0x6d U+006d
0x6e U+006e
0x6f U+006f
0x70 U+0070
0x71 U+0071
0x72 U+0072
0x73 U+0073
0x74 U+0074
0x75 U+0075
0x76 U+0076
0x77 U+0077
0x78 U+0078
0x79 U+0079
0x7a U+007a
0x7b U+007b
0x7c U+007c
0x7d U+007d
0x7e U+007e
0x7f U+007f
0x80 U+0080
0x81 U+0081
0x82 U+0082
0x83 U+0083
0x84 U+0084
0x85 U+0085
0x86 U+0086
0x87 U+0087
0x88 U+0088
0x89 U+0089
0x8a U+008a
0x8b U+008b
0x8c U+008c
0x8d U+008d
0x8e U+008e
0x8f U+008f
0x90 U+0090
0x91 U+0091
0x92 U+0092
0x93 U+0093
0x94 U+0094
0x95 U+0095
0x96 U+0096
0x97 U+0097
0x98 U+0098
0x99 U+0099
0x9a U+009a
0x9b U+009b
0x9c U+009c
0x9d U+009d
0x9e U+009e
0x9f U+009f
0xa0 U+00a0
0xa1 U+00a1
0xa2 U+00a2
0xa3 U+00a3
0xa4 U+00a4
0xa5 U+00a5
0xa6 U+00a6
0xa7 U+00a7
0xa8 U+0153
0xa9 U+00a9
0xaa U+00aa
0xab U+00ab
0xac U+00ac
0xad U+00ad
0xae U+00ae
0xaf U+00af
0xb0 U+00b0
0xb1 U+00b1
0xb2 U+00b2
0xb3 U+00b3
0xb4 U+0178
0xb5 U+00b5
0xb6 U+00b6
0xb7 U+00b7
0xb8 U+0152
0xb9 U+00b9
0xba U+00ba
0xbb U+00bb
0xbc U+00bc
0xbd U+00bd
0xbe U+00be
0xbf U+00bf
0xc0 U+00c0
0xc1 U+00c1
0xc2 U+00c2
0xc3 U+0102
0xc4 U+00c4
0xc5 U+00c5
0xc6 U+00c6
0xc7 U+00c7
0xc8 U+00c8
0xc9 U+00c9
0xca U+00ca
0xcb U+00cb
0xcc U+0300
0xcd U+00cd
0xce U+00ce
0xcf U+00cf
0xd0 U+0110
0xd1 U+00d1
0xd2 U+0309
0xd3 U+00d3
0xd4 U+00d4
0xd5 U+01a0
0xd6 U+00d6
0xd7 U+00d7
0xd8 U+00d8
0xd9 U+00d9
0xda U+00da
0xdb U+00db
0xdc U+00dc
0xdd U+01af
0xde U+0303
0xdf U+00df
0xe0 U+00e0
0xe1 U+00e1
0xe2 U+00e2
0xe3 U+0103
0xe4 U+00e4
0xe5 U+00e5
0xe6 U+00e6
0xe7 U+00e7
0xe8 U+00e8
0xe9 U+00e9
0xea U+00ea
0xeb U+00eb
0xec U+0301
0xed U+00ed
0xee U+00ee
0xef U+00ef
0xf0 U+0111
0xf1 U+00f1
0xf2 U+0323
0xf3 U+00f3
0xf4 U+00f4
0xf5 U+01a1
0xf6 U+00f6
0xf7 U+00f7
0xf8 U+00f8
0xf9 U+00f9
0xfa U+00fa
0xfb U+00fb
0xfc U+00fc
0xfd U+01b0
0xfe U+20ab
0xff U+00ff

View File

@@ -5,14 +5,3 @@ A1AD 223C
A2A6 FF5E
A2C1 2299
A3DC 20A9
#
# see .map file for the info regarding following 3 entries
#
a1aa 6950
a1a9 84f1
a1ad cf7f

View File

@@ -1,15 +1,6 @@
#
# source: Cp970.b2c, which is identical(?) to 03CA34B0.TPMAP100
#
# Warning:
# following 3 c->b only entries exist in the "old" implementation,
# they don't appear existing in any of of the cdc 970 tables. Added
# them into c2b for "compatibility
# 6950 -> a1aa 2014
# 84f1 -> a1a9 2010
# cf7f -> a1ad 301c
#
#
00 0000
01 0001
02 0002
@@ -294,6 +285,7 @@ A2BD 2661
A2BE 2665
A2BF 2667
A2C0 2663
A2C1 25C9
A2C2 25C8
A2C3 25A3
A2C4 25D0

View File

@@ -1241,6 +1241,16 @@ charset x-IBM1124 IBM1124
alias ibm-1124
alias 1124
charset x-IBM1129 IBM1129
package sun.nio.cs.ext
type sbcs
hisname Cp1129
ascii false
alias cp1129 # JDK historical
alias ibm1129
alias ibm-1129
alias 1129
charset x-IBM1364 IBM1364
package sun.nio.cs.ext
type ebcdic
@@ -1544,10 +1554,11 @@ charset x-IBM970 IBM970
charset x-IBM964 IBM964
package sun.nio.cs.ext
type source
type template
alias cp964 # JDK historical
alias ibm964
alias ibm-964
alias ibm-euctw
alias 964
charset x-IBM33722 IBM33722
@@ -1851,6 +1862,11 @@ charset x-JIS0212_MS5022X JIS_X_0212_MS5022X
minmax 0x21 0x7e 0x21 0x7e
internal true # "internal implementation
charset SimpleEUCEncoder SimpleEUCEncoder
package sun.nio.cs.ext
type template
internal true
########################################################
#
# platform specific charsets, to be registered into spi

View File

@@ -16,11 +16,14 @@ IBM942C
IBM943
IBM943C
IBM950
IBM964
IBM970
IBM1046
IBM1124
IBM1129
IBM1383
ISO_8859_6
ISO_8859_8
MS1252
TIS_620
SimpleEUCEncoder

View File

@@ -32,7 +32,7 @@ formatVersion=3
# Version of the currency code information in this class.
# It is a serial number that accompanies with each amendment.
dataVersion=167
dataVersion=169
# List of all valid ISO 4217 currency codes.
# To ensure compatibility, do not remove codes.
@@ -54,7 +54,7 @@ all=ADP020-AED784-AFA004-AFN971-ALL008-AMD051-ANG532-AOA973-ARS032-ATS040-AUD036
SBD090-SCR690-SDD736-SDG938-SEK752-SGD702-SHP654-SIT705-SKK703-SLL694-SOS706-\
SRD968-SRG740-SSP728-STD678-STN930-SVC222-SYP760-SZL748-THB764-TJS972-TMM795-TMT934-TND788-TOP776-\
TPE626-TRL792-TRY949-TTD780-TWD901-TZS834-UAH980-UGX800-USD840-USN997-USS998-UYI940-\
UYU858-UZS860-VEB862-VEF937-VND704-VUV548-WST882-XAF950-XAG961-XAU959-XBA955-\
UYU858-UZS860-VEB862-VEF937-VES928-VND704-VUV548-WST882-XAF950-XAG961-XAU959-XBA955-\
XBB956-XBC957-XBD958-XCD951-XDR960-XFO000-XFU000-XOF952-XPD964-XPF953-\
XPT962-XSU994-XTS963-XUA965-XXX999-YER886-YUM891-ZAR710-ZMK894-ZMW967-ZWD716-ZWL932-\
ZWN942-ZWR935
@@ -509,7 +509,7 @@ SR=SRD
SJ=NOK
# Sint Maarten (Dutch part)
SX=ANG
# SWAZILAND
# ESWATINI
SZ=SZL
# SWEDEN
SE=SEK
@@ -564,7 +564,7 @@ UZ=UZS
# VANUATU
VU=VUV
# VENEZUELA (BOLIVARIAN REPUBLIC OF)
VE=VEF
VE=VES
# VIET NAM
VN=VND
# VIRGIN ISLANDS, BRITISH

View File

@@ -0,0 +1,33 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<!--
Copyright (c) 2018, 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
under the terms of the GNU General Public License version 2 only, as
published by the Free Software Foundation. Oracle designates this
particular file as subject to the "Classpath" exception as provided
by Oracle in the LICENSE file that accompanied this code.
This code is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
version 2 for more details (a copy is included in the LICENSE file that
accompanied this code).
You should have received a copy of the GNU General Public License version
2 along with this work; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
or visit www.oracle.com if you need additional information or have any
questions.
-->
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;url=api/index.html">
<title>Java API Documentation redirect</title>
</head>
<body>
</body>
</html>

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2018, 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
@@ -75,7 +75,7 @@ h4 {
}
a:link {
color: #437291;
color: #4A6782;
}
a:visited {
@@ -117,7 +117,7 @@ caption {
}
tr:nth-child(even), tr:nth-child(even) th[scope=row] {
background: #DDD;
background: #E3E3E3;
}
tr:nth-child(odd), tr:nth-child(odd) th[scope=row] {
@@ -127,3 +127,14 @@ tr:nth-child(odd), tr:nth-child(odd) th[scope=row] {
th {
background: #DDF;
}
table.centered {
margin-left: auto;
margin-right: auto;
}
table.centered td {
text-align: left;
}
.centered {
text-align: center;
}

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2018, 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

View File

@@ -1,6 +1,6 @@
#
#
# Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2005, 2018, 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

Some files were not shown because too many files have changed in this diff Show More