Skip to content

Commit bcff499

Browse files
committed
Merge
2 parents 1ea81a7 + 9b0cfaf commit bcff499

File tree

1,775 files changed

+37130
-42936
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,775 files changed

+37130
-42936
lines changed

.hgignore

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ nbproject/private/
55
^webrev
66
^.src-rev$
77
^.jib/
8-
\.DS_Store
9-
\.metadata/
10-
\.recommenders/
8+
(^|/)\.DS_Store
9+
(^|/)\.metadata/
10+
(^|/)\.recommenders/
1111
test/nashorn/script/external
1212
test/nashorn/lib
1313
NashornProfile.txt
14-
.*/JTreport/.*
15-
.*/JTwork/.*
16-
.*/.git/.*
14+
(^|/)JTreport/
15+
(^|/)JTwork/
16+
(^|/)\.git/
17+
^src/utils/hsdis/build/

.hgtags

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,4 +575,12 @@ e64383344f144217c36196c3c8a2df8f588a2af3 jdk-14+3
575575
0f1e29c77e50c7da11d83df410026392c4d1a28c jdk-14+5
576576
2e63fb0a885fa908a97bbb0da8d7c3de11536aca jdk-13+30
577577
443f7359b34d60e7821216ffc60f88b6ffe0ccdd jdk-14+6
578+
6a159c6c23ccd0029140ab91653442e412305ce5 jdk-13+31
578579
28ab01c067551ef158abaef08e154e1051ca0893 jdk-14+7
580+
929f37a9c35d530d4e866f6e832001aeb4cfb371 jdk-13+32
581+
c0023e364b6f130cb1e93747b796d8718d544db1 jdk-14+8
582+
9c250a7600e12bdb1e611835250af3204d4aa152 jdk-13+33
583+
18f189e69b29f8215a3500b875127ed4fb2d977a jdk-14+9
584+
ececb6dae777e622abda42c705fd984a42f46b5a jdk-14+10
585+
bf4c808a4488025a415f867e54c8b088417e08a0 jdk-14+11
586+
8570f22b9b6ac6bec673899b582150865696e425 jdk-14+12

doc/building.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ <h4 id="advanced-make-control-variables">Advanced Make Control Variables</h4>
572572
<li><code>CONF_CHECK</code></li>
573573
<li><code>COMPARE_BUILD</code></li>
574574
<li><code>JDK_FILTER</code></li>
575+
<li><code>SPEC_FILTER</code></li>
575576
</ul>
576577
<h2 id="running-tests">Running Tests</h2>
577578
<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>

doc/testing.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ <h2 id="using-make-test-the-run-test-framework">Using &quot;make test&quot; (the
5454
$ make test-jdk_lang JTREG=&quot;JOBS=8&quot;
5555
$ make test TEST=jdk_lang
5656
$ make test-only TEST=&quot;gtest:LogTagSet gtest:LogTagSetDescriptions&quot; GTEST=&quot;REPEAT=-1&quot;
57-
$ make test TEST=&quot;hotspot:hotspot_gc&quot; JTREG=&quot;JOBS=1;TIMEOUT=8;VM_OPTIONS=-XshowSettings -Xlog:gc+ref=debug&quot;
57+
$ make test TEST=&quot;hotspot:hotspot_gc&quot; JTREG=&quot;JOBS=1;TIMEOUT_FACTOR=8;VM_OPTIONS=-XshowSettings -Xlog:gc+ref=debug&quot;
5858
$ make test TEST=&quot;jtreg:test/hotspot:hotspot_gc test/hotspot/jtreg/native_sanity/JniVersion.java&quot;
5959
$ make test TEST=&quot;micro:java.lang.reflect&quot; MICRO=&quot;FORK=1;WARMUP_ITER=2&quot;
6060
$ make exploded-test TEST=tier2</code></pre>
@@ -103,9 +103,9 @@ <h2 id="test-results-and-summary">Test results and summary</h2>
103103
<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>
104104
<h2 id="test-suite-control">Test suite control</h2>
105105
<p>It is possible to control various aspects of the test suites using make control variables.</p>
106-
<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>
106+
<p>These variables use a keyword=value approach to allow multiple values to be set. So, for instance, <code>JTREG=&quot;JOBS=1;TIMEOUT_FACTOR=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_FACTOR=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_FACTOR=8&quot;</code> would give an error, while <code>JTREG_TMIEOUT_FACTOR=8</code> would just pass unnoticed.</p>
107107
<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>
108-
<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>
108+
<p>(Other ways are possible, e.g. using backslash: <code>JTREG=JOBS=1\;TIMEOUT_FACTOR=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>
109109
<p>As far as possible, the names of the keywords have been standardized between test suites.</p>
110110
<h3 id="general-keywords-test_opts">General keywords (TEST_OPTS)</h3>
111111
<p>Some keywords are valid across different test suites. If you want to run tests from multiple test suites, or just don't want to care which test suite specific control variable to use, then you can use the general TEST_OPTS control variable.</p>

doc/testing.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Some example command-lines:
2323
$ make test-jdk_lang JTREG="JOBS=8"
2424
$ make test TEST=jdk_lang
2525
$ make test-only TEST="gtest:LogTagSet gtest:LogTagSetDescriptions" GTEST="REPEAT=-1"
26-
$ make test TEST="hotspot:hotspot_gc" JTREG="JOBS=1;TIMEOUT=8;VM_OPTIONS=-XshowSettings -Xlog:gc+ref=debug"
26+
$ make test TEST="hotspot:hotspot_gc" JTREG="JOBS=1;TIMEOUT_FACTOR=8;VM_OPTIONS=-XshowSettings -Xlog:gc+ref=debug"
2727
$ make test TEST="jtreg:test/hotspot:hotspot_gc test/hotspot/jtreg/native_sanity/JniVersion.java"
2828
$ make test TEST="micro:java.lang.reflect" MICRO="FORK=1;WARMUP_ITER=2"
2929
$ make exploded-test TEST=tier2
@@ -180,19 +180,19 @@ It is possible to control various aspects of the test suites using make control
180180
variables.
181181

182182
These variables use a keyword=value approach to allow multiple values to be
183-
set. So, for instance, `JTREG="JOBS=1;TIMEOUT=8"` will set the JTReg
183+
set. So, for instance, `JTREG="JOBS=1;TIMEOUT_FACTOR=8"` will set the JTReg
184184
concurrency level to 1 and the timeout factor to 8. This is equivalent to
185-
setting `JTREG_JOBS=1 JTREG_TIMEOUT=8`, but using the keyword format means that
185+
setting `JTREG_JOBS=1 JTREG_TIMEOUT_FACTOR=8`, but using the keyword format means that
186186
the `JTREG` variable is parsed and verified for correctness, so
187-
`JTREG="TMIEOUT=8"` would give an error, while `JTREG_TMIEOUT=8` would just
187+
`JTREG="TMIEOUT_FACTOR=8"` would give an error, while `JTREG_TMIEOUT_FACTOR=8` would just
188188
pass unnoticed.
189189

190190
To separate multiple keyword=value pairs, use `;` (semicolon). Since the shell
191191
normally eats `;`, the recommended usage is to write the assignment inside
192192
qoutes, e.g. `JTREG="...;..."`. This will also make sure spaces are preserved,
193193
as in `JTREG="VM_OPTIONS=-XshowSettings -Xlog:gc+ref=debug"`.
194194

195-
(Other ways are possible, e.g. using backslash: `JTREG=JOBS=1\;TIMEOUT=8`.
195+
(Other ways are possible, e.g. using backslash: `JTREG=JOBS=1\;TIMEOUT_FACTOR=8`.
196196
Also, as a special technique, the string `%20` will be replaced with space for
197197
certain options, e.g. `JTREG=VM_OPTIONS=-XshowSettings%20-Xlog:gc+ref=debug`.
198198
This can be useful if you have layers of scripts and have trouble getting

make/CompileToolsJdk.gmk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ $(eval $(call IncludeCustomExtension, CompileTools.gmk))
4141
BUILD_TOOLS_SRC_DIRS += \
4242
$(TOPDIR)/make/jdk/src/classes \
4343
$(BUILDTOOLS_OUTPUTDIR)/interim_cldrconverter_classes \
44+
$(BUILDTOOLS_OUTPUTDIR)/interim_tzdb_classes \
4445
#
4546

4647
$(eval $(call SetupJavaCompilation,BUILD_TOOLS_JDK, \

make/CopyInterimTZDB.gmk

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#
2+
# Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
3+
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4+
#
5+
# This code is free software; you can redistribute it and/or modify it
6+
# under the terms of the GNU General Public License version 2 only, as
7+
# published by the Free Software Foundation. Oracle designates this
8+
# particular file as subject to the "Classpath" exception as provided
9+
# by Oracle in the LICENSE file that accompanied this code.
10+
#
11+
# This code is distributed in the hope that it will be useful, but WITHOUT
12+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+
# version 2 for more details (a copy is included in the LICENSE file that
15+
# accompanied this code).
16+
#
17+
# You should have received a copy of the GNU General Public License version
18+
# 2 along with this work; if not, write to the Free Software Foundation,
19+
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20+
#
21+
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22+
# or visit www.oracle.com if you need additional information or have any
23+
# questions.
24+
#
25+
26+
default: all
27+
28+
include $(SPEC)
29+
include MakeBase.gmk
30+
31+
##########################################################################################
32+
33+
### TZDB tool needs files from java.time.zone package
34+
35+
define tzdb_copyfiles
36+
$(call MakeTargetDir)
37+
$(RM) '$@'
38+
$(SED) -e "s/package java.time.zone/package build.tools.tzdb/" \
39+
< $(<) > $@
40+
endef
41+
42+
$(eval $(call SetupCopyFiles,COPY_INTERIM_TZDB, \
43+
SRC := $(TOPDIR)/src/java.base/share/classes/java/time/zone, \
44+
DEST := $(BUILDTOOLS_OUTPUTDIR)/interim_tzdb_classes/build/tools/tzdb, \
45+
FILES := ZoneRules.java ZoneOffsetTransition.java ZoneOffsetTransitionRule.java Ser.java, \
46+
MACRO := tzdb_copyfiles))
47+
48+
##########################################################################################
49+
50+
all: $(COPY_INTERIM_TZDB)

make/Main.gmk

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ interim-rmic:
7777

7878
interim-cldrconverter:
7979
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CopyInterimCLDRConverter.gmk)
80+
81+
interim-tzdb:
82+
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CopyInterimTZDB.gmk)
83+
8084

8185
buildtools-jdk:
8286
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileToolsJdk.gmk)
@@ -88,7 +92,7 @@ buildtools-hotspot:
8892
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileToolsHotspot.gmk)
8993

9094
ALL_TARGETS += buildtools-langtools interim-langtools \
91-
interim-rmic interim-cldrconverter buildtools-jdk buildtools-modules \
95+
interim-rmic interim-cldrconverter interim-tzdb buildtools-jdk buildtools-modules \
9296
buildtools-hotspot
9397

9498
################################################################################
@@ -648,7 +652,7 @@ else
648652

649653
interim-langtools: $(INTERIM_LANGTOOLS_GENSRC_TARGETS)
650654

651-
buildtools-jdk: interim-langtools interim-cldrconverter
655+
buildtools-jdk: interim-langtools interim-cldrconverter interim-tzdb
652656

653657
buildtools-hotspot: interim-langtools
654658

make/RunTests.gmk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,13 @@ define SetupAotModuleBody
185185
)
186186
$$(call ExecuteWithLog, $$@.check, \
187187
$$(FIXPATH) $$(JDK_UNDER_TEST)/bin/java \
188-
$$($1_VM_OPTIONS) -XX:+UnlockDiagnosticVMOptions \
188+
$$($1_VM_OPTIONS) -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions \
189189
-XX:+PrintAOT -XX:+UseAOTStrictLoading \
190190
-XX:AOTLibrary=$$@ -version \
191191
> $$@.verify-aot \
192192
)
193193

194+
$1_AOT_OPTIONS += -XX:+UnlockExperimentalVMOptions
194195
$1_AOT_OPTIONS += -XX:AOTLibrary=$$($1_AOT_LIB)
195196
$1_AOT_TARGETS += $$($1_AOT_LIB)
196197
endef

make/common/Modules.gmk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -64,6 +64,7 @@ BOOT_MODULES += \
6464
jdk.management.jfr \
6565
jdk.management.agent \
6666
jdk.net \
67+
jdk.nio.mapmode \
6768
jdk.sctp \
6869
jdk.unsupported \
6970
#

0 commit comments

Comments
 (0)