Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JavaTailor committed Sep 4, 2021
0 parents commit 99ba36e
Show file tree
Hide file tree
Showing 14,783 changed files with 2,305,783 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
36 changes: 36 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
*.trc
*.dmp
*.phd

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

01JVMS
03results
04SynthesisHistory
sootOutput
out
target
.idea
*.iml
.DS_Store
7 changes: 7 additions & 0 deletions 02Benchmarks/HotspotTests-Java/src/JVMTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
public class JVMTest {

public static void main(String[] args) {

System.out.println("Hello MyJvm!");
}
}
89 changes: 89 additions & 0 deletions 02Benchmarks/HotspotTests-Java/src/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
#
# Copyright (c) 1995, 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.
#
# 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.
#
#

NATIVE_TEST_PATH := hotspot/jtreg/native

TREAT_EXIT_CODE_1_AS_0 := true

CLEAN_BEFORE_PREP := true

USE_JTREG_VERSION := 4.1

USE_JTREG_ASSERT := false

LIMIT_JTREG_VM_MEMORY := false

IGNORE_MARKED_TESTS := true

# Include the common base file with most of the logic
include ../../TestCommon.gmk

################################################################
# Default make rule (runs jtreg_tests)
all: hotspot_all
@$(ECHO) "Testing completed successfully"

# Support "hotspot_" prefixed test make targets (too)
# The hotspot_% targets are used by the top level Makefile
# Unless explicitly defined below, hotspot_<x> is interpreted as a jtreg test group name
hotspot_%:
$(ECHO) "Running tests: $@"
$(MAKE) -j 1 TEST_SELECTION=":$@" UNIQUE_DIR=$@ jtreg_tests;

hotspot_internal:
$(ALT_OUTPUTDIR)/jdk/bin/java -XX:+ExecuteInternalVMTests -XX:+ShowMessageBoxOnError -version

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

# Set up the directory in which the jvm directories live (client/, server/, etc.)
ifeq ($(PLATFORM),windows)
JVMS_DIR := $(PRODUCT_HOME)/bin
else
JVMS_DIR := $(PRODUCT_HOME)/lib
endif

# Use the existance of a directory as a sign that jvm variant is available
CANDIDATE_JVM_VARIANTS := client minimal server
JVM_VARIANTS := $(strip $(foreach x,$(CANDIDATE_JVM_VARIANTS),$(if $(wildcard $(JVMS_DIR)/$(x)),$(x))))

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

# Run the native gtest tests from the test image

define NEWLINE


endef


hotspot_gtest:
$(foreach v, $(JVM_VARIANTS), \
$(MAKE) hotspot_gtest$v $(NEWLINE) )

hotspot_gtestserver hotspot_gtestclient hotspot_gtestminimal: hotspot_gtest%:
$(TESTNATIVE_DIR)/hotspot/gtest/$*/gtestLauncher \
-jdk $(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)")

PHONY_LIST += hotspot_gtest hotspot_gtestserver hotspot_gtestclient \
hotspot_gtestminimal
31 changes: 31 additions & 0 deletions 02Benchmarks/HotspotTests-Java/src/ProblemList-cds-mode.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# 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.
#
# 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.
#

#############################################################################
#
# Additional list of quarantined tests when CDS mode enabled.
#
#############################################################################

serviceability/sa/TestInstanceKlassSize.java 8204308 generic-all
serviceability/sa/TestInstanceKlassSizeForInterface.java 8204308 generic-all
184 changes: 184 additions & 0 deletions 02Benchmarks/HotspotTests-Java/src/ProblemList-graal.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
#
# 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.
#
# 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 for testing in Graal JIT mode.
#
#############################################################################

compiler/c2/cr7200264/TestSSE2IntVect.java 8194958 generic-all
compiler/c2/cr7200264/TestSSE4IntVect.java 8194958 generic-all

compiler/ciReplay/TestServerVM.java 8181747 generic-all
compiler/ciReplay/TestVMNoCompLevel.java 8181747 generic-all

compiler/compilercontrol/commandfile/LogTest.java 8181753 generic-all
compiler/compilercontrol/commands/LogTest.java 8181753 generic-all
compiler/compilercontrol/directives/ExcludeTest.java 8181753 generic-all
compiler/compilercontrol/jcmd/AddExcludeTest.java 8181753 generic-all
compiler/compilercontrol/jcmd/AddLogTest.java 8181753 generic-all
compiler/compilercontrol/mixed/RandomValidCommandsTest.java 8181753 generic-all

compiler/graalunit/JttThreadsTest.java 8208066 generic-all

compiler/intrinsics/mathexact/LongMulOverflowTest.java 8196568 generic-all

compiler/jvmci/SecurityRestrictionsTest.java 8181837 generic-all

compiler/jvmci/TestValidateModules.java 8194942 generic-all
gc/arguments/TestVerifyBeforeAndAfterGCFlags.java 8194942 generic-all

compiler/unsafe/UnsafeGetConstantField.java 8181833 generic-all
compiler/unsafe/UnsafeGetStableArrayElement.java 8181833 generic-all
compiler/unsafe/UnsafeOffHeapBooleanTest.java 8181833 generic-all
compiler/unsafe/UnsafeOnHeapBooleanTest.java 8181833 generic-all

compiler/whitebox/ClearMethodStateTest.java 8181831 generic-all
compiler/whitebox/EnqueueMethodForCompilationTest.java 8181831 generic-all
compiler/whitebox/MakeMethodNotCompilableTest.java 8181831 generic-all

gc/arguments/TestNewSizeFlags.java 8196611 generic-all
gc/g1/TestConcurrentSystemGC.java 8196611 generic-all
vmTestbase/gc/lock/malloc/malloclock03/TestDescription.java 8196611 macosx-all

gc/g1/ihop/TestIHOPErgo.java 8191048 generic-all
gc/g1/plab/TestPLABEvacuationFailure.java 8191048 generic-all
gc/g1/plab/TestPLABPromotion.java 8191048 generic-all
gc/g1/plab/TestPLABResize.java 8191048 generic-all

compiler/compilercontrol/directives/LogTest.java 8181753 generic-all

gc/g1/ihop/TestIHOPStatic.java 8199486 generic-all

gc/parallel/TestPrintGCDetailsVerbose.java 8200186 macosx-all

compiler/jvmci/compilerToVM/ReprofileTest.java 8201333 generic-all

compiler/tiered/LevelTransitionTest.java 8202124 generic-all
compiler/tiered/TieredLevelsTest.java 8202124 generic-all
compiler/tiered/NonTieredLevelsTest.java 8202124 generic-all
compiler/intrinsics/mathexact/sanity/IncrementExactIntTest.java 8202124 generic-all
compiler/intrinsics/mathexact/sanity/NegateExactIntTest.java 8202124 generic-all
compiler/intrinsics/mathexact/sanity/AddExactLongTest.java 8202124 generic-all
compiler/intrinsics/mathexact/sanity/SubtractExactLongTest.java 8202124 generic-all
compiler/intrinsics/mathexact/sanity/AddExactIntTest.java 8202124 generic-all
compiler/intrinsics/mathexact/sanity/NegateExactLongTest.java 8202124 generic-all
compiler/intrinsics/mathexact/sanity/DecrementExactLongTest.java 8202124 generic-all
compiler/intrinsics/mathexact/sanity/DecrementExactIntTest.java 8202124 generic-all
compiler/intrinsics/mathexact/sanity/IncrementExactLongTest.java 8202124 generic-all
compiler/intrinsics/mathexact/sanity/SubtractExactIntTest.java 8202124 generic-all
compiler/intrinsics/mathexact/sanity/MultiplyExactLongTest.java 8202124 generic-all
compiler/intrinsics/mathexact/sanity/MultiplyExactIntTest.java 8202124 generic-all
compiler/whitebox/DeoptimizeAllTest.java 8202124 generic-all
compiler/whitebox/DeoptimizeFramesTest.java 8202124 generic-all
compiler/whitebox/DeoptimizeMethodTest.java 8202124 generic-all
compiler/whitebox/ForceNMethodSweepTest.java 8202124 generic-all
compiler/whitebox/GetNMethodTest.java 8202124 generic-all
compiler/whitebox/IsMethodCompilableTest.java 8202124 generic-all
compiler/whitebox/LockCompilationTest.java 8202124 generic-all
compiler/whitebox/SetDontInlineMethodTest.java 8202124 generic-all
compiler/whitebox/SetForceInlineMethodTest.java 8202124 generic-all

compiler/jvmci/meta/StableFieldTest.java CODETOOLS-7902162 generic-all
compiler/jvmci/jdk.vm.ci.hotspot.test/src/jdk/vm/ci/hotspot/test/HotSpotConstantReflectionProviderTest.java CODETOOLS-7902162 generic-all
compiler/jvmci/jdk.vm.ci.hotspot.test/src/jdk/vm/ci/hotspot/test/MemoryAccessProviderTest.java CODETOOLS-7902162 generic-all
compiler/jvmci/events/JvmciShutdownEventTest.java CODETOOLS-7902162 generic-all

vmTestbase/nsk/stress/strace/strace001.java 8191047 generic-all
vmTestbase/nsk/stress/strace/strace002.java 8191047 generic-all
vmTestbase/nsk/stress/strace/strace005.java 8191047 generic-all
vmTestbase/nsk/stress/strace/strace006.java 8191047 generic-all
vmTestbase/nsk/jvmti/scenarios/sampling/SP07/sp07t002/TestDescription.java 8191047 generic-all
vmTestbase/nsk/jdi/ThreadReference/forceEarlyReturn/forceEarlyReturn009/forceEarlyReturn009.java 8191047 generic-all

vmTestbase/nsk/jdi/ThreadReference/forceEarlyReturn/forceEarlyReturn007/TestDescription.java 8195600 generic-all

vmTestbase/nsk/jdi/ArrayType/newInstance/newinstance001/TestDescription.java 8203174 generic-all
vmTestbase/nsk/jdi/ArrayType/newInstance/newinstance002/TestDescription.java 8203174 generic-all
vmTestbase/nsk/jdi/ArrayType/newInstance/newinstance003/TestDescription.java 8203174 generic-all
vmTestbase/nsk/jdi/EventRequestManager/methodExitRequests/methexitreq002/TestDescription.java 8203174 generic-all
vmTestbase/nsk/jdi/MonitorContendedEnteredRequest/MonitorContendedEnteredRequest001/TestDescription.java 8203174 generic-all
vmTestbase/nsk/jdi/MonitorContendedEnteredRequest/MonitorContendedEnteredRequest002/TestDescription.java 8203174 generic-all
vmTestbase/nsk/jdi/MonitorWaitedRequest/addClassExclusionFilter/TestDescription.java 8203174 generic-all
vmTestbase/nsk/jdi/ReferenceType/instances/instances002/instances002.java 8203174 generic-all
vmTestbase/nsk/jdi/ReferenceType/instances/instances003/instances003.java 8203174 generic-all
vmTestbase/nsk/jdi/stress/MonitorEvents/MonitorEvents002/TestDescription.java 8203174 generic-all
vmTestbase/nsk/jdi/stress/serial/heapwalking001/TestDescription.java 8203174 generic-all
vmTestbase/nsk/jdi/stress/serial/heapwalking002/TestDescription.java 8203174 generic-all
vmTestbase/nsk/jdi/stress/serial/mixed002/TestDescription.java 8203174 generic-all

vmTestbase/nsk/jdi/VirtualMachine/redefineClasses/redefineclasses026/TestDescription.java 8195627 generic-all
vmTestbase/nsk/jdi/VirtualMachine/redefineClasses/redefineclasses028/TestDescription.java 8195627 generic-all
vmTestbase/nsk/jdi/VirtualMachine/redefineClasses/redefineclasses030/TestDescription.java 8195627 generic-all
vmTestbase/nsk/jdb/wherei/wherei001/wherei001.java 8195627 generic-all

vmTestbase/vm/mlvm/anonloader/stress/oome/heap/Test.java 8186299 generic-all
vmTestbase/vm/mlvm/anonloader/stress/oome/metaspace/Test.java 8186299 generic-all

# jvmti tests
vmTestbase/nsk/jvmti/IterateThroughHeap/filter-tagged/TestDescription.java 8193577 generic-all
vmTestbase/nsk/jvmti/IterateThroughHeap/filter-class-tagged/TestDescription.java 8193577 generic-all

vmTestbase/nsk/jvmti/unit/ForceEarlyReturn/earlyretbase/TestDescription.java 8195635 generic-all

vmTestbase/nsk/jvmti/PopFrame/popframe009/TestDescription.java 8195639 generic-all

vmTestbase/nsk/jvmti/ForceEarlyReturn/ForceEarlyReturn001/TestDescription.java 8195674 generic-all
vmTestbase/nsk/jvmti/ForceEarlyReturn/ForceEarlyReturn002/TestDescription.java 8195674 generic-all

vmTestbase/nsk/jvmti/unit/FollowReferences/followref003/TestDescription.java 8202342 generic-all

vmTestbase/nsk/jvmti/scenarios/hotswap/HS102/hs102t002/TestDescription.java 8204506 macosx-all

compiler/stable/TestStableBoolean.java 8204347 generic-all
compiler/stable/TestStableByte.java 8204347 generic-all
compiler/stable/TestStableChar.java 8204347 generic-all
compiler/stable/TestStableDouble.java 8204347 generic-all
compiler/stable/TestStableFloat.java 8204347 generic-all
compiler/stable/TestStableInt.java 8204347 generic-all
compiler/stable/TestStableLong.java 8204347 generic-all
compiler/stable/TestStableMismatched.java 8204347 generic-all
compiler/stable/TestStableObject.java 8204347 generic-all
compiler/stable/TestStableShort.java 8204347 generic-all
compiler/stable/TestStableUByte.java 8204347 generic-all
compiler/stable/TestStableUShort.java 8204347 generic-all

# Graal unit tests
org.graalvm.compiler.core.test.CheckGraalInvariants 8205081
org.graalvm.compiler.core.test.inlining.PolymorphicInliningTest 8205081
org.graalvm.compiler.core.test.OptionsVerifierTest 8205081
org.graalvm.compiler.core.test.ProfilingInfoTest 8205081
org.graalvm.compiler.hotspot.test.CompilationWrapperTest 8205081
org.graalvm.compiler.hotspot.test.HsErrLogTest 8205081
org.graalvm.compiler.hotspot.test.OptionsInFileTest 8205081
org.graalvm.compiler.hotspot.test.ReservedStackAccessTest 8205081
org.graalvm.compiler.replacements.test.classfile.ClassfileBytecodeProviderTest 8205081
org.graalvm.compiler.replacements.test.classfile.RedefineIntrinsicTest 8205081

org.graalvm.compiler.core.test.deopt.CompiledMethodTest 8202955
org.graalvm.compiler.core.test.CountedLoopTest 8199885
org.graalvm.compiler.debug.test.DebugContextTest 8203504
org.graalvm.compiler.core.test.VerifyDebugUsageTest 8205078

org.graalvm.compiler.hotspot.test.GraalOSRTest 8206947
Loading

0 comments on commit 99ba36e

Please sign in to comment.