--- a/test/jtreg-ext/requires/VMProps.java Thu Jul 26 09:30:58 2018 -0700
+++ b/test/jtreg-ext/requires/VMProps.java Thu Jul 26 10:00:40 2018 -0700
@@ -79,6 +79,9 @@
// vm.hasSAandCanAttach is "true" if the VM contains the serviceability agent
// and jhsdb and it can attach to the VM.
map.put("vm.hasSAandCanAttach", vmHasSAandCanAttach());
+ // vm.hasJFR is "true" if JFR is included in the build of the VM and
+ // so tests can be executed.
+ map.put("vm.hasJFR", vmHasJFR());
map.put("vm.cpu.features", cpuFeatures());
map.put("vm.rtm.cpu", vmRTMCPU());
map.put("vm.rtm.os", vmRTMOS());
@@ -288,6 +291,14 @@
}
/**
+ * @return "true" if the VM is compiled with Java Flight Recorder (JFR)
+ * support.
+ */
+ protected String vmHasJFR() {
+ return "" + WB.isJFRIncludedInVmBuild();
+ }
+
+ /**
* @return true if VM runs RTM supported OS and false otherwise.
*/
protected String vmRTMOS() {