Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8251384: [TESTBUG] jvmti tests should not be executed with minimal VM
Reviewed-by: sspitsyn, iignatyev
  • Loading branch information
Alex Menkov committed Aug 21, 2020
1 parent 8c53a97 commit 59d5f4dcc71cbbaa9a6e4018de9e87efa4b5afac
Showing with 87 additions and 1 deletion.
  1. +5 −0 src/hotspot/share/prims/whitebox.cpp
  2. +1 −0 test/hotspot/jtreg/TEST.ROOT
  3. +1 −0 test/hotspot/jtreg/serviceability/jvmti/8036666/GetObjectLockCount.java
  4. +1 −0 ...t/jtreg/serviceability/jvmti/AddModuleExportsAndOpens/MyPackage/AddModuleExportsAndOpensTest.java
  5. +1 −0 test/hotspot/jtreg/serviceability/jvmti/AddModuleReads/MyPackage/AddModuleReadsTest.java
  6. +1 −0 ...t/jtreg/serviceability/jvmti/AddModuleUsesAndProvides/MyPackage/AddModuleUsesAndProvidesTest.java
  7. +1 −0 test/hotspot/jtreg/serviceability/jvmti/CompiledMethodLoad/Zombie.java
  8. +1 −0 test/hotspot/jtreg/serviceability/jvmti/FieldAccessWatch/FieldAccessWatch.java
  9. +1 −0 test/hotspot/jtreg/serviceability/jvmti/GenerateEvents/MyPackage/GenerateEventsTest.java
  10. +1 −0 test/hotspot/jtreg/serviceability/jvmti/GetClassMethods/OverpassMethods.java
  11. +1 −1 test/hotspot/jtreg/serviceability/jvmti/GetLocalVariable/GetLocalVars.java
  12. +1 −0 test/hotspot/jtreg/serviceability/jvmti/GetModulesInfo/JvmtiGetAllModulesTest.java
  13. +1 −0 test/hotspot/jtreg/serviceability/jvmti/GetNamedModule/MyPackage/GetNamedModuleTest.java
  14. +1 −0 test/hotspot/jtreg/serviceability/jvmti/GetObjectSizeClass.java
  15. +1 −0 test/hotspot/jtreg/serviceability/jvmti/GetObjectSizeOverflow.java
  16. +1 −0 test/hotspot/jtreg/serviceability/jvmti/GetOwnedMonitorInfo/GetOwnedMonitorInfoTest.java
  17. +1 −0 test/hotspot/jtreg/serviceability/jvmti/GetOwnedMonitorInfo/GetOwnedMonitorInfoWithEATest.java
  18. +1 −0 ...t/jtreg/serviceability/jvmti/GetOwnedMonitorStackDepthInfo/GetOwnedMonitorStackDepthInfoTest.java
  19. +1 −0 ...g/serviceability/jvmti/GetOwnedMonitorStackDepthInfo/GetOwnedMonitorStackDepthInfoWithEATest.java
  20. +1 −0 test/hotspot/jtreg/serviceability/jvmti/GetSystemProperty/JvmtiGetSystemPropertyTest.java
  21. +1 −0 test/hotspot/jtreg/serviceability/jvmti/GetThreadListStackTraces/OneGetThreadListStackTraces.java
  22. +1 −0 test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorArrayAllSampledTest.java
  23. +1 −0 test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorEventOnOffTest.java
  24. +1 −0 test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorGCParallelTest.java
  25. +1 −0 test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorGCSerialTest.java
  26. +1 −0 test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorGCTest.java
  27. +1 −0 test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorIllegalArgumentTest.java
  28. +1 −0 test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorInitialAllocationTest.java
  29. +1 −0 test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorInterpreterArrayTest.java
  30. +1 −0 test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorInterpreterObjectTest.java
  31. +1 −0 test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorMultiArrayTest.java
  32. +1 −0 test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorNoCapabilityTest.java
  33. +1 −0 test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorRecursiveTest.java
  34. +1 −0 ...hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatArrayCorrectnessTest.java
  35. +1 −0 test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatIntervalTest.java
  36. +1 −0 ...otspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatObjectCorrectnessTest.java
  37. +1 −0 test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatSimpleTest.java
  38. +1 −0 test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorTest.java
  39. +1 −0 test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorThreadDisabledTest.java
  40. +1 −0 test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorThreadOnOffTest.java
  41. +1 −0 test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorThreadTest.java
  42. +1 −0 test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorTwoAgentsTest.java
  43. +1 −0 test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorVMEventsTest.java
  44. +1 −0 test/hotspot/jtreg/serviceability/jvmti/HiddenClass/P/Q/HiddenClassSigTest.java
  45. +1 −0 test/hotspot/jtreg/serviceability/jvmti/IsModifiableModule/MyPackage/IsModifiableModuleTest.java
  46. +1 −0 .../hotspot/jtreg/serviceability/jvmti/ModuleAwareAgents/ClassFileLoadHook/MAAClassFileLoadHook.java
  47. +1 −0 test/hotspot/jtreg/serviceability/jvmti/ModuleAwareAgents/ClassLoadPrepare/MAAClassLoadPrepare.java
  48. +1 −0 test/hotspot/jtreg/serviceability/jvmti/ModuleAwareAgents/ThreadStart/MAAThreadStart.java
  49. +1 −0 test/hotspot/jtreg/serviceability/jvmti/NotifyFramePop/NotifyFramePopTest.java
  50. +1 −0 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/ModifyAnonymous.java
  51. +1 −0 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineAddLambdaExpression.java
  52. +1 −0 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineAnnotations.java
  53. +1 −0 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineDoubleDelete.java
  54. +1 −0 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineFinalizer.java
  55. +1 −0 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineInterfaceCall.java
  56. +1 −0 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineInterfaceMethods.java
  57. +1 −0 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineLeak.java
  58. +1 −0 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineObject.java
  59. +1 −0 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefinePreviousVersions.java
  60. +1 −0 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineRunningMethods.java
  61. +1 −0 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineRunningMethodsWithBacktrace.java
  62. +1 −0 ...otspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineRunningMethodsWithResolutionErrors.java
  63. +1 −0 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineSubtractLambdaExpression.java
  64. +1 −0 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RetransformClassesZeroLength.java
  65. +1 −0 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/TestAddDeleteMethods.java
  66. +1 −0 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/TestLambdaFormRetransformation.java
  67. +1 −0 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/TestMultipleClasses.java
  68. +1 −0 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/TestRedefineCondy.java
  69. +1 −0 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/TestRedefineObject.java
  70. +1 −0 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/TestRedefineWithUnresolvedClass.java
  71. +1 −0 test/hotspot/jtreg/serviceability/jvmti/StartPhase/AllowedFunctions/AllowedFunctions.java
  72. +1 −0 test/hotspot/jtreg/serviceability/jvmti/SuspendWithCurrentThread/SuspendWithCurrentThread.java
  73. +1 −0 test/hotspot/jtreg/serviceability/jvmti/VMEvent/MyPackage/VMEventRecursionTest.java
  74. +8 −0 test/jtreg-ext/requires/VMProps.java
  75. +2 −0 test/lib/sun/hotspot/WhiteBox.java
@@ -2282,6 +2282,10 @@ WB_ENTRY(void, WB_CheckThreadObjOfTerminatingThread(JNIEnv* env, jobject wb, job
}
WB_END

WB_ENTRY(jboolean, WB_IsJVMTIIncluded(JNIEnv* env, jobject wb))
return INCLUDE_JVMTI ? JNI_TRUE : JNI_FALSE;
WB_END

#define CC (char*)

static JNINativeMethod methods[] = {
@@ -2533,6 +2537,7 @@ static JNINativeMethod methods[] = {
{CC"protectionDomainRemovedCount", CC"()I", (void*)&WB_ProtectionDomainRemovedCount },
{CC"aotLibrariesCount", CC"()I", (void*)&WB_AotLibrariesCount },
{CC"getKlassMetadataSize", CC"(Ljava/lang/Class;)I",(void*)&WB_GetKlassMetadataSize},
{CC"isJVMTIIncluded", CC"()Z", (void*)&WB_IsJVMTIIncluded},
};


@@ -68,6 +68,7 @@ requires.properties= \
vm.cds \
vm.cds.custom.loaders \
vm.cds.archived.java.heap \
vm.jvmti \
vm.graal.enabled \
vm.compiler1.enabled \
vm.compiler2.enabled \
@@ -61,6 +61,7 @@
* @test GetObjectLockCount.java
* @bug 8036666
* @summary verify jvm returns correct lock recursion count
* @requires vm.jvmti
* @run compile -g RecursiveObjectLock.java
* @run main/othervm GetObjectLockCount
* @author axel.siebenborn@sap.com
@@ -26,6 +26,7 @@
/**
* @test
* @summary Verifies the JVMTI AddModuleExports and AddModuleOpens API
* @requires vm.jvmti
* @compile AddModuleExportsAndOpensTest.java
* @run main/othervm/native -agentlib:AddModuleExportsAndOpensTest MyPackage.AddModuleExportsAndOpensTest
*/
@@ -26,6 +26,7 @@
/**
* @test
* @summary Verifies the JVMTI AddModuleReads API
* @requires vm.jvmti
* @compile AddModuleReadsTest.java
* @run main/othervm/native -agentlib:AddModuleReadsTest MyPackage.AddModuleReadsTest
*/
@@ -26,6 +26,7 @@
/**
* @test
* @summary Basic test for JVMTI AddModuleUses and AddModuleProvides
* @requires vm.jvmti
* @build java.base/java.lang.TestProvider
* java.base/jdk.internal.test.TestProviderImpl
* @compile AddModuleUsesAndProvidesTest.java
@@ -25,6 +25,7 @@
* @test
* @bug 8212159
* @summary Generate compiled method load events without crashing
* @requires vm.jvmti
* @run main/othervm/native -agentlib:CompiledZombie -Xcomp -XX:ReservedCodeCacheSize=50m Zombie
**/

@@ -26,6 +26,7 @@
* @bug 8193369
* @summary Tests that all FieldAccess and FieldModification notifications
are generated.
* @requires vm.jvmti
* @compile FieldAccessWatch.java
* @run main/othervm/native -agentlib:FieldAccessWatch FieldAccessWatch
*/
@@ -25,6 +25,7 @@
* @test
* @bug 8222072
* @summary Send CompiledMethodLoad events only to the environment requested it with GenerateEvents
* @requires vm.jvmti
* @compile GenerateEventsTest.java
* @run main/othervm/native -agentlib:GenerateEvents1 -agentlib:GenerateEvents2 MyPackage.GenerateEventsTest
*/
@@ -27,6 +27,7 @@
* @test
* @bug 8216324
* @summary GetClassMethods is confused by the presence of default methods in super interfaces
* @requires vm.jvmti
* @library /test/lib
* @compile OverpassMethods.java
* @run main/othervm/native -agentlib:OverpassMethods OverpassMethods
@@ -25,7 +25,7 @@
* @test
* @bug 8080406
* @summary VM_GetOrSetLocal doesn't check local slot type against requested type
*
* @requires vm.jvmti
* @compile GetLocalVars.java
* @run main/othervm/native -Xcomp -agentlib:GetLocalVars GetLocalVars
*/
@@ -24,6 +24,7 @@
/**
* @test
* @summary Verifies the JVMTI GetAllModules API
* @requires vm.jvmti
* @library /test/lib
* @run main/othervm/native -agentlib:JvmtiGetAllModulesTest JvmtiGetAllModulesTest
*
@@ -26,6 +26,7 @@
/**
* @test
* @summary Verifies the JVMTI GetNamedModule API
* @requires vm.jvmti
* @compile GetNamedModuleTest.java
* @run main/othervm/native -agentlib:GetNamedModuleTest MyPackage.GetNamedModuleTest
*/
@@ -30,6 +30,7 @@
* @test
* @bug 8075030
* @summary JvmtiEnv::GetObjectSize reports incorrect java.lang.Class instance size
* @requires vm.jvmti
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.compiler
@@ -33,6 +33,7 @@
* java.management
* jdk.internal.jvmstat/sun.jvmstat.monitor
* @requires vm.bits == 64
* @requires vm.jvmti
* @build GetObjectSizeOverflowAgent
* @run driver ClassFileInstaller GetObjectSizeOverflowAgent
* @run main GetObjectSizeOverflow
@@ -26,6 +26,7 @@
* @test
* @bug 8185164
* @summary Checks that a contended monitor does not show up in the list of owned monitors
* @requires vm.jvmti
* @compile GetOwnedMonitorInfoTest.java
* @run main/othervm/native -agentlib:GetOwnedMonitorInfoTest GetOwnedMonitorInfoTest
*/
@@ -27,6 +27,7 @@
* @summary Test JVMTI's GetOwnedMonitorInfo with scalar replaced objects and eliminated locks on stack (optimizations based on escape analysis).
* @comment Without RFE 8227745 escape analysis needs to be switched off to pass the test. For the implementation of RFE 8227745 it serves as a regression test.
* @requires (vm.compMode != "Xcomp" & vm.compiler2.enabled)
* @requires vm.jvmti
* @library /test/lib
* @compile GetOwnedMonitorInfoWithEATest.java
* @run main/othervm/native
@@ -26,6 +26,7 @@
* @test
* @bug 8153629
* @summary Need to cover JVMTI's GetOwnedMonitorStackDepthInfo function
* @requires vm.jvmti
* @compile GetOwnedMonitorStackDepthInfoTest.java
* @run main/othervm/native -agentlib:GetOwnedMonitorStackDepthInfoTest GetOwnedMonitorStackDepthInfoTest
*/
@@ -27,6 +27,7 @@
* @summary Test JVMTI's GetOwnedMonitorStackDepthInfo with scalar replaced objects and eliminated locks on stack (optimizations based on escape analysis).
* @comment Without RFE 8227745 escape analysis needs to be switched off to pass the test. For the implementation of RFE 8227745 it serves as a regression test.
* @requires (vm.compMode != "Xcomp" & vm.compiler2.enabled)
* @requires vm.jvmti
* @library /test/lib
* @compile GetOwnedMonitorStackDepthInfoWithEATest.java
* @run main/othervm/native
@@ -25,6 +25,7 @@
* @test
* @bug 8203329
* @summary Verifies the JVMTI GetSystemProperty API returns the updated java.vm.info value
* @requires vm.jvmti
* @library /test/lib
* @run main/othervm/native -agentlib:JvmtiGetSystemPropertyTest JvmtiGetSystemPropertyTest
*
@@ -26,6 +26,7 @@
* @test
* @bug 8242428
* @summary Verifies JVMTI GetThreadListStackTraces API with thread_count = 1
* @requires vm.jvmti
* @library /test/lib
* @run main/othervm/native -agentlib:OneGetThreadListStackTraces OneGetThreadListStackTraces
*
@@ -28,6 +28,7 @@
* @test
* @build Frame HeapMonitor
* @summary Verifies the JVMTI Heap Monitor interval when allocating arrays.
* @requires vm.jvmti
* @compile HeapMonitorArrayAllSampledTest.java
* @run main/othervm/native -agentlib:HeapMonitorTest MyPackage.HeapMonitorArrayAllSampledTest
*/
@@ -29,6 +29,7 @@
/**
* @test
* @summary Verifies if turning off the event notification stops events.
* @requires vm.jvmti
* @build Frame HeapMonitor
* @compile HeapMonitorEventOnOffTest.java
* @run main/othervm/native -agentlib:HeapMonitorTest MyPackage.HeapMonitorEventOnOffTest
@@ -30,5 +30,6 @@
* @build Frame HeapMonitor
* @compile HeapMonitorGCTest.java
* @requires vm.gc == "Parallel" | vm.gc == "null"
* @requires vm.jvmti
* @run main/othervm/native -agentlib:HeapMonitorTest -XX:+UseParallelGC MyPackage.HeapMonitorGCTest
*/
@@ -30,5 +30,6 @@
* @build Frame HeapMonitor
* @compile HeapMonitorGCTest.java
* @requires vm.gc == "Serial" | vm.gc == "null"
* @requires vm.jvmti
* @run main/othervm/native -agentlib:HeapMonitorTest -XX:+UseSerialGC MyPackage.HeapMonitorGCTest
*/
@@ -32,6 +32,7 @@
* @summary Verifies the default GC with the Heap Monitor event system.
* @compile HeapMonitorGCTest.java
* @requires vm.gc == "G1" | vm.gc == "null"
* @requires vm.jvmti
* @run main/othervm/native -agentlib:HeapMonitorTest MyPackage.HeapMonitorGCTest
*/

@@ -27,6 +27,7 @@
/**
* @test
* @summary Verifies the JVMTI SetHeapSamplingInterval returns an illegal argument for negative ints.
* @requires vm.jvmti
* @build Frame HeapMonitor
* @compile HeapMonitorIllegalArgumentTest.java
* @run main/othervm/native -agentlib:HeapMonitorTest MyPackage.HeapMonitorIllegalArgumentTest
@@ -27,6 +27,7 @@
/**
* @test
* @summary Verifies the JVMTI Heap Monitor does not always sample the first object.
* @requires vm.jvmti
* @build Frame HeapMonitor
* @compile HeapMonitorInitialAllocationTest.java
* @run main/othervm/native -agentlib:HeapMonitorTest MyPackage.HeapMonitorInitialAllocationTest
@@ -27,6 +27,7 @@
/**
* @test
* @summary Verifies the JVMTI Heap Monitor using the interpreter.
* @requires vm.jvmti
* @build Frame HeapMonitor
* @compile HeapMonitorTest.java
* @run main/othervm/native -agentlib:HeapMonitorTest -Xint MyPackage.HeapMonitorTest 10
@@ -27,6 +27,7 @@
/**
* @test
* @summary Verifies the JVMTI Heap Monitor using the interpreter.
* @requires vm.jvmti
* @build Frame HeapMonitor
* @compile HeapMonitorStatObjectCorrectnessTest.java
* @run main/othervm/native -agentlib:HeapMonitorTest -Xint MyPackage.HeapMonitorStatObjectCorrectnessTest
@@ -29,6 +29,7 @@
/**
* @test
* @summary Verifies the JVMTI Heap Monitor API when allocating a multi-array.
* @requires vm.jvmti
* @build Frame HeapMonitor
* @compile HeapMonitorMultiArrayTest.java
* @run main/othervm/native -agentlib:HeapMonitorTest MyPackage.HeapMonitorMultiArrayTest
@@ -27,6 +27,7 @@
/**
* @test
* @summary Verifies the JVMTI Heap Monitor does not work without the required capability.
* @requires vm.jvmti
* @build Frame HeapMonitor
* @compile HeapMonitorNoCapabilityTest.java
* @run main/othervm/native -agentlib:HeapMonitorTest MyPackage.HeapMonitorNoCapabilityTest
@@ -29,6 +29,7 @@
/**
* @test
* @summary Verifies the JVMTI Heap Monitor API does not do infinite recursion.
* @requires vm.jvmti
* @build Frame HeapMonitor
* @compile HeapMonitorRecursiveTest.java
* @run main/othervm/native -agentlib:HeapMonitorTest MyPackage.HeapMonitorRecursiveTest
@@ -28,6 +28,7 @@
* @test
* @build Frame HeapMonitor
* @summary Verifies the JVMTI Heap Monitor interval when allocating arrays.
* @requires vm.jvmti
* @compile HeapMonitorStatArrayCorrectnessTest.java
* @run main/othervm/native -agentlib:HeapMonitorTest MyPackage.HeapMonitorStatArrayCorrectnessTest
*/
@@ -29,6 +29,7 @@
* @summary Verifies the JVMTI Heap Monitor sampling interval average.
* @build Frame HeapMonitor
* @compile HeapMonitorStatIntervalTest.java
* @requires vm.jvmti
* @requires vm.compMode != "Xcomp"
* @run main/othervm/native -agentlib:HeapMonitorTest MyPackage.HeapMonitorStatIntervalTest
*/
@@ -28,6 +28,7 @@
* @test
* @build Frame HeapMonitor
* @summary Verifies the JVMTI Heap Monitor sampling via object allocation.
* @requires vm.jvmti
* @compile HeapMonitorStatObjectCorrectnessTest.java
* @run main/othervm/native -agentlib:HeapMonitorTest MyPackage.HeapMonitorStatObjectCorrectnessTest
*/
@@ -27,6 +27,7 @@
/**
* @test
* @build Frame HeapMonitor
* @requires vm.jvmti
* @summary Verifies the JVMTI Heap Monitor events are only sent after enabling.
* @compile HeapMonitorStatSimpleTest.java
* @run main/othervm/native -agentlib:HeapMonitorTest MyPackage.HeapMonitorStatSimpleTest
@@ -27,6 +27,7 @@
/**
* @test
* @summary Verifies the JVMTI Heap Monitor API
* @requires vm.jvmti
* @build Frame HeapMonitor
* @compile HeapMonitorTest.java
* @run main/othervm/native -agentlib:HeapMonitorTest MyPackage.HeapMonitorTest
@@ -28,6 +28,7 @@
* @test
* @build Frame HeapMonitor ThreadInformation
* @summary Verifies the JVMTI Heap Monitor Thread can disable events for a given thread.
* @requires vm.jvmti
* @compile HeapMonitorThreadDisabledTest.java
* @run main/othervm/native -Xmx512m -agentlib:HeapMonitorTest MyPackage.HeapMonitorThreadDisabledTest
*/
@@ -28,6 +28,7 @@
* @test
* @build Frame HeapMonitor
* @summary Verifies the JVMTI Heap Monitor Thread sanity.
* @requires vm.jvmti
* @compile HeapMonitorThreadOnOffTest.java
* @run main/othervm/native -agentlib:HeapMonitorTest MyPackage.HeapMonitorThreadOnOffTest
*/
@@ -28,6 +28,7 @@
* @test
* @build Frame HeapMonitor ThreadInformation
* @summary Verifies the JVMTI Heap Monitor Thread information sanity.
* @requires vm.jvmti
* @compile HeapMonitorThreadTest.java
* @run main/othervm/native -Xmx512m -agentlib:HeapMonitorTest MyPackage.HeapMonitorThreadTest
*/
@@ -28,6 +28,7 @@
* @test
* @build Frame HeapMonitor ThreadInformation
* @summary Verifies the JVMTI Heap Monitor does not work with two agents.
* @requires vm.jvmti
* @compile HeapMonitorTwoAgentsTest.java
* @run main/othervm/native -agentlib:HeapMonitorTest MyPackage.HeapMonitorTwoAgentsTest
*/
@@ -33,6 +33,7 @@
* @summary Verifies that when the VM event is sent, sampled events are also collected.
* @build Frame HeapMonitor
* @compile HeapMonitorVMEventsTest.java
* @requires vm.jvmti
* @requires !vm.graal.enabled
* @run main/othervm/native -XX:+UnlockDiagnosticVMOptions
* -XX:DisableIntrinsic=_clone
@@ -23,6 +23,7 @@

/**
* @test
* @requires vm.jvmti
* @library /test/lib
* @modules java.base/jdk.internal.misc
* jdk.compiler