-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8364973: Add JVMTI stress testing mode #26360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 17 commits
74a0751
6cfa190
2c2ffd9
4eaae9d
9aee241
ede07c8
9bc7a60
65a6426
d23f2e9
014e4e4
5f7a1e4
e891f7a
829af9e
262aa48
6badb2c
4c23432
cb9c645
6d505a8
49c2a67
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -60,8 +60,13 @@ define SetTestOpt | |||||||||
endif | ||||||||||
endef | ||||||||||
|
||||||||||
AGENT_PREFIX := lib | ||||||||||
AGENT_EXT := .so | ||||||||||
|
||||||||||
# Setup _NT_SYMBOL_PATH on Windows, which points to our pdb files. | ||||||||||
ifeq ($(call isTargetOs, windows), true) | ||||||||||
AGENT_PREFIX := | ||||||||||
AGENT_EXT := .dll | ||||||||||
ifndef _NT_SYMBOL_PATH | ||||||||||
SYMBOL_PATH := $(call PathList, $(sort $(patsubst %/, %, $(dir $(wildcard \ | ||||||||||
$(addprefix $(SYMBOLS_IMAGE_DIR)/bin/, *.pdb */*.pdb)))))) | ||||||||||
|
@@ -71,6 +76,9 @@ ifeq ($(call isTargetOs, windows), true) | |||||||||
endif | ||||||||||
endif | ||||||||||
|
||||||||||
ifeq ($(call isTargetOs, macosx), true) | ||||||||||
AGENT_EXT := .dyLib | ||||||||||
endif | ||||||||||
################################################################################ | ||||||||||
|
||||||||||
# This is the JDK that we will test | ||||||||||
|
@@ -204,7 +212,7 @@ $(eval $(call SetTestOpt,AOT_JDK,JTREG)) | |||||||||
|
||||||||||
$(eval $(call ParseKeywordVariable, JTREG, \ | ||||||||||
SINGLE_KEYWORDS := JOBS TIMEOUT_FACTOR FAILURE_HANDLER_TIMEOUT \ | ||||||||||
TEST_MODE ASSERT VERBOSE RETAIN TEST_THREAD_FACTORY MAX_MEM RUN_PROBLEM_LISTS \ | ||||||||||
TEST_MODE ASSERT VERBOSE RETAIN TEST_THREAD_FACTORY JVMTI_STRESS_AGENT MAX_MEM RUN_PROBLEM_LISTS \ | ||||||||||
lmesnik marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||
RETRY_COUNT REPEAT_COUNT MAX_OUTPUT REPORT AOT_JDK $(CUSTOM_JTREG_SINGLE_KEYWORDS), \ | ||||||||||
STRING_KEYWORDS := OPTIONS JAVA_OPTIONS VM_OPTIONS KEYWORDS \ | ||||||||||
EXTRA_PROBLEM_LISTS LAUNCHER_OPTIONS \ | ||||||||||
|
@@ -876,6 +884,15 @@ define SetupRunJtregTestBody | |||||||||
)) | ||||||||||
endif | ||||||||||
|
||||||||||
ifneq ($$(JTREG_JVMTI_STRESS_AGENT), ) | ||||||||||
AGENT := $${AGENT_PREFIX}JvmtiStressAgent${AGENT_EXT}=$${JTREG_JVMTI_STRESS_AGENT} | ||||||||||
$1_JTREG_BASIC_OPTIONS += -javaoption:'-agentpath:${TEST_IMAGE_DIR}/hotspot/jtreg/native/$${AGENT}' | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, this line looks quite long. Can you check that it does not pass 80 characters? (Can't tell on github reviews...) |
||||||||||
$1_JTREG_BASIC_OPTIONS += $$(addprefix $$(JTREG_PROBLEM_LIST_PREFIX), $$(wildcard \ | ||||||||||
$$(addprefix $$($1_TEST_ROOT)/, ProblemList-jvmti-stress-agent.txt) \ | ||||||||||
)) | ||||||||||
lmesnik marked this conversation as resolved.
Show resolved
Hide resolved
Comment on lines
+884
to
+885
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Also, the comment on line length applies here. |
||||||||||
endif | ||||||||||
|
||||||||||
|
||||||||||
ifneq ($$(JTREG_LAUNCHER_OPTIONS), ) | ||||||||||
$1_JTREG_LAUNCHER_OPTIONS += $$(JTREG_LAUNCHER_OPTIONS) | ||||||||||
endif | ||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
# | ||
# Copyright (c) 2025, 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. | ||
# | ||
# 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. | ||
# | ||
|
||
############################################################################# | ||
# | ||
# List of quarantined tests failing with jvmti stress agent in any mode. | ||
# | ||
############################################################################# | ||
|
||
|
||
compiler/macronodes/TestTopInMacroElimination.java 8362832 generic-all | ||
|
||
gc/stringdedup/TestStringDeduplicationAgeThreshold.java 8362562 generic-all | ||
gc/stringdedup/TestStringDeduplicationInterned.java 8362562 generic-all | ||
gc/stringdedup/TestStringDeduplicationPrintOptions.java 8362562 generic-all | ||
|
||
|
||
serviceability/jvmti/events/SingleStep/singlestep02/singlestep02.java 8362350 generic-all | ||
vmTestbase/nsk/jvmti/scenarios/events/EM02/em02t007/TestDescription.java 8362350 generic-all | ||
|
||
# Incompatbile tests | ||
|
||
# IR | ||
compiler/loopopts/superword/TestDependencyOffsets.java#avx1-v016-A 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#avx1-v016-U 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#avx1-v032-A 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#avx1-v032-U 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#avx2-v016-A 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#avx2-v016-U 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#avx2-v032-A 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#avx2-v032-U 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#sse4-v004-A 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#sse4-v004-U 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#sse4-v008-A 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#sse4-v008-U 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#sse4-v016-A 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#sse4-v016-U 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#vanilla-A 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#vanilla-U 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#vec-v004-A 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#vec-v004-U 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#vec-v008-A 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#vec-v008-U 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#vec-v016-A 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#vec-v016-U 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#vec-v032-A 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#vec-v032-U 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#vec-v064-A 0000000 generic-all | ||
compiler/loopopts/superword/TestDependencyOffsets.java#vec-v064-U 0000000 generic-all | ||
|
||
# Requires solo jvmti capabilities | ||
|
||
compiler/jvmci/events/JvmciShutdownEventTest.java 0000000 generic-all | ||
|
||
# jdwp | ||
runtime/6294277/SourceDebugExtension.java 0000000 generic-all | ||
|
||
# heap stats | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorArrayAllSampledTest.java 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorEventOnOffTest.java 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorGCParallelTest.java 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorGCSerialTest.java 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorGCTest.java 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorIllegalArgumentTest.java 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorInitialAllocationTest.java 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorInterpreterArrayTest.java 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorInterpreterObjectTest.java 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorMultiArrayTest.java 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorNoCapabilityTest.java 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorRecursiveTest.java 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatArrayCorrectnessTest.java 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatIntervalTest.java 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatObjectCorrectnessTest.java 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatSimpleTest.java 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorTest.java 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorThreadDisabledTest.java 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorThreadOnOffTest.java 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorThreadTest.java 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorTwoAgentsTest.java 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorVMEventsTest.java#id0 0000000 generic-all | ||
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorVMEventsTest.java#id1 0000000 generic-all |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# | ||
# Copyright (c) 2025, 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. | ||
# | ||
# 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. | ||
# | ||
|
||
############################################################################# | ||
# | ||
# List of quarantined tests failing with jvmti stress agent in any mode. | ||
# | ||
############################################################################# | ||
|
||
|
||
sun/security/ssl/SSLEngineImpl/SSLEngineKeyLimit.java 8362658 generic-all | ||
sun/security/ssl/SSLSessionImpl/MultiNSTClient.java 8362658 generic-all | ||
sun/security/ssl/SSLSessionImpl/MultiNSTNoSessionCreation.java 8362658 generic-all | ||
sun/security/ssl/SSLSessionImpl/MultiNSTParallel.java 8362658 generic-all | ||
sun/security/ssl/SSLSessionImpl/MultiNSTSequence.java 8362658 generic-all | ||
sun/security/ssl/SSLSessionImpl/ResumptionUpdateBoundValues.java 8362658 generic-all | ||
sun/security/ssl/SSLSocketImpl/SSLSocketKeyLimit.java 8362658 generic-all | ||
|
||
|
||
# List of tests incompatible with jvmti stress agent or requiring more investigation | ||
|
||
com/sun/jdi/EATests.java#id0 0000000 generic-all | ||
com/sun/jdi/ThreadMemoryLeakTest.java 0000000 generic-all | ||
|
||
# weak referenced are not cleared | ||
java/lang/WeakPairMap/Driver.java 0000000 generic-all | ||
java/lang/ref/ReachabilityFenceTest.java 0000000 generic-all |
Uh oh!
There was an error while loading. Please reload this page.