Skip to content

Commit 16b3013

Browse files
committed
Merge branch 'master' into JDK-8371701_numa_affinity_threads
2 parents 4969377 + 0c1ef36 commit 16b3013

File tree

975 files changed

+53682
-23152
lines changed

Some content is hidden

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

975 files changed

+53682
-23152
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@ NashornProfile.txt
2626
*.rej
2727
*.orig
2828
test/benchmarks/**/target
29+
/src/hotspot/CMakeLists.txt
30+
/src/hotspot/compile_commands.json
31+
/src/hotspot/cmake-build-debug/
32+
/src/hotspot/.cache/
33+
/src/hotspot/.idea/

doc/building.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ <h3 id="microsoft-visual-studio">Microsoft Visual Studio</h3>
668668
(Note that this version is often presented as "MSVC 14.28", and reported
669669
by cl.exe as 19.28.) Older versions will not be accepted by
670670
<code>configure</code> and will not work. The maximum accepted version
671-
of Visual Studio is 2022.</p>
671+
of Visual Studio is 2026.</p>
672672
<p>If you have multiple versions of Visual Studio installed,
673673
<code>configure</code> will by default pick the latest. You can request
674674
a specific version to be used by setting

doc/building.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ available for this update.
468468
The minimum accepted version is Visual Studio 2019 version 16.8. (Note that
469469
this version is often presented as "MSVC 14.28", and reported by cl.exe as
470470
19.28.) Older versions will not be accepted by `configure` and will not work.
471-
The maximum accepted version of Visual Studio is 2022.
471+
The maximum accepted version of Visual Studio is 2026.
472472

473473
If you have multiple versions of Visual Studio installed, `configure` will by
474474
default pick the latest. You can request a specific version to be used by

doc/hotspot-unit-tests.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,11 @@ <h3 id="file-location">File location</h3>
305305
the product.</p>
306306
<ul>
307307
<li><p>All unit tests for a class from <code>foo/bar/baz.cpp</code>
308-
should be placed <code>foo/bar/test_baz.cpp</code> in
309-
<code>hotspot/test/native/</code> directory. Having all tests for a
310-
class in one file is a common practice for unit tests, it helps to see
311-
all existing tests at once, share functions and/or resources without
312-
losing encapsulation.</p></li>
308+
should be placed <code>foo/bar/test_baz.cpp</code> in the
309+
<code>test/hotspot/gtest/</code> directory. Having all tests for a class
310+
in one file is a common practice for unit tests, it helps to see all
311+
existing tests at once, share functions and/or resources without losing
312+
encapsulation.</p></li>
313313
<li><p>For tests which test more than one class, directory hierarchy
314314
should be the same as product hierarchy, and file name should reflect
315315
the name of the tested subsystem/functionality. For example, if a
@@ -319,7 +319,7 @@ <h3 id="file-location">File location</h3>
319319
<p>Please note that framework prepends directory name to a test group
320320
name. For example, if <code>TEST(foo, check_this)</code> and
321321
<code>TEST(bar, check_that)</code> are defined in
322-
<code>hotspot/test/native/gc/shared/test_foo.cpp</code> file, they will
322+
<code>test/hotspot/gtest/gc/shared/test_foo.cpp</code> file, they will
323323
be reported as <code>gc/shared/foo::check_this</code> and
324324
<code>gc/shared/bar::check_that</code>.</p>
325325
<h3 id="test-names">Test names</h3>

doc/hotspot-unit-tests.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ recognize your tests.
241241
Test file location should reflect a location of the tested part of the product.
242242

243243
* All unit tests for a class from `foo/bar/baz.cpp` should be placed
244-
`foo/bar/test_baz.cpp` in `hotspot/test/native/` directory. Having all
244+
`foo/bar/test_baz.cpp` in the `test/hotspot/gtest/` directory. Having all
245245
tests for a class in one file is a common practice for unit tests, it
246246
helps to see all existing tests at once, share functions and/or
247247
resources without losing encapsulation.
@@ -254,7 +254,7 @@ sub-system under tests belongs to `gc/g1`, tests should be placed in
254254

255255
Please note that framework prepends directory name to a test group
256256
name. For example, if `TEST(foo, check_this)` and `TEST(bar, check_that)`
257-
are defined in `hotspot/test/native/gc/shared/test_foo.cpp` file, they
257+
are defined in `test/hotspot/gtest/gc/shared/test_foo.cpp` file, they
258258
will be reported as `gc/shared/foo::check_this` and
259259
`gc/shared/bar::check_that`.
260260

doc/testing.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,8 @@ <h4 id="repeat_count">REPEAT_COUNT</h4>
535535
<h4 id="report">REPORT</h4>
536536
<p>Use this report style when reporting test results (sent to JTReg as
537537
<code>-report</code>). Defaults to <code>files</code>.</p>
538+
<h4 id="manual">MANUAL</h4>
539+
<p>Set to <code>true</code> to execute manual tests only.</p>
538540
<h3 id="gtest-keywords">Gtest keywords</h3>
539541
<h4 id="repeat">REPEAT</h4>
540542
<p>The number of times to repeat the tests

doc/testing.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,10 @@ helps to reproduce intermittent test failures. Defaults to 0.
512512
Use this report style when reporting test results (sent to JTReg as `-report`).
513513
Defaults to `files`.
514514

515+
#### MANUAL
516+
517+
Set to `true` to execute manual tests only.
518+
515519
### Gtest keywords
516520

517521
#### REPEAT

make/RunTests.gmk

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ $(eval $(call ParseKeywordVariable, JTREG, \
206206
SINGLE_KEYWORDS := JOBS TIMEOUT_FACTOR FAILURE_HANDLER_TIMEOUT \
207207
TEST_MODE ASSERT VERBOSE RETAIN TEST_THREAD_FACTORY JVMTI_STRESS_AGENT \
208208
MAX_MEM RUN_PROBLEM_LISTS RETRY_COUNT REPEAT_COUNT MAX_OUTPUT REPORT \
209-
AOT_JDK $(CUSTOM_JTREG_SINGLE_KEYWORDS), \
209+
AOT_JDK MANUAL $(CUSTOM_JTREG_SINGLE_KEYWORDS), \
210210
STRING_KEYWORDS := OPTIONS JAVA_OPTIONS VM_OPTIONS KEYWORDS \
211211
EXTRA_PROBLEM_LISTS LAUNCHER_OPTIONS \
212212
$(CUSTOM_JTREG_STRING_KEYWORDS), \
@@ -911,7 +911,13 @@ define SetupRunJtregTestBody
911911
-vmoption:-Dtest.boot.jdk="$$(BOOT_JDK)" \
912912
-vmoption:-Djava.io.tmpdir="$$($1_TEST_TMP_DIR)"
913913

914-
$1_JTREG_BASIC_OPTIONS += -automatic -ignore:quiet
914+
$1_JTREG_BASIC_OPTIONS += -ignore:quiet
915+
916+
ifeq ($$(JTREG_MANUAL), true)
917+
$1_JTREG_BASIC_OPTIONS += -manual
918+
else
919+
$1_JTREG_BASIC_OPTIONS += -automatic
920+
endif
915921

916922
# Make it possible to specify the JIB_DATA_DIR for tests using the
917923
# JIB Artifact resolver

make/autoconf/toolchain_microsoft.m4

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
################################################################################
2727
# The order of these defines the priority by which we try to find them.
28-
VALID_VS_VERSIONS="2022 2019"
28+
VALID_VS_VERSIONS="2022 2019 2026"
2929

3030
VS_DESCRIPTION_2019="Microsoft Visual Studio 2019"
3131
VS_VERSION_INTERNAL_2019=142
@@ -57,6 +57,21 @@ VS_SDK_PLATFORM_NAME_2022=
5757
VS_SUPPORTED_2022=true
5858
VS_TOOLSET_SUPPORTED_2022=true
5959

60+
VS_DESCRIPTION_2026="Microsoft Visual Studio 2026"
61+
VS_VERSION_INTERNAL_2026=145
62+
VS_MSVCR_2026=vcruntime140.dll
63+
VS_VCRUNTIME_1_2026=vcruntime140_1.dll
64+
VS_MSVCP_2026=msvcp140.dll
65+
VS_ENVVAR_2026="VS180COMNTOOLS"
66+
VS_USE_UCRT_2026="true"
67+
VS_VS_INSTALLDIR_2026="Microsoft Visual Studio/18"
68+
VS_EDITIONS_2026="BuildTools Community Professional Enterprise"
69+
VS_SDK_INSTALLDIR_2026=
70+
VS_VS_PLATFORM_NAME_2026="v145"
71+
VS_SDK_PLATFORM_NAME_2026=
72+
VS_SUPPORTED_2026=true
73+
VS_TOOLSET_SUPPORTED_2026=true
74+
6075
################################################################################
6176

6277
AC_DEFUN([TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT],

make/hotspot/lib/CompileGtest.gmk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ $(eval $(call SetupJdkLibrary, BUILD_GTEST_LIBJVM, \
9595
EXTRA_OBJECT_FILES := $(BUILD_LIBJVM_ALL_OBJS), \
9696
DEFAULT_CFLAGS := false, \
9797
CFLAGS := $(JVM_CFLAGS) \
98+
-DHOTSPOT_GTEST \
9899
-I$(GTEST_FRAMEWORK_SRC)/googletest/include \
99100
-I$(GTEST_FRAMEWORK_SRC)/googlemock/include \
100101
$(addprefix -I, $(GTEST_TEST_SRC)), \

0 commit comments

Comments
 (0)