File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
visualvm/profiler/src/com/sun/tools/visualvm/profiler Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ public final class ProfilerSupport {
72
72
private static final String HP_VM_VENDOR_PREFIX = "\" Hewlett-Packard " ; // NOI18N
73
73
private static final String AZUL_VM_VENDOR_PREFIX = "Azul " ; // NOI18N
74
74
private static final String SAP_VM_VENDOR_PREFIX = "SAP AG" ; // NOI18N
75
+ private static final String GRAAL_VM_VENDOR_PREFIX = "GraalVM " ; // NOI18N
75
76
76
77
private static final String JAVA_RT_16_PREFIX = "1.6.0" ; // NOI18N
77
78
private static final String JAVA_RT_17_PREFIX = "1.7.0" ; // NOI18N
@@ -313,9 +314,9 @@ boolean supportsProfiling(Application application) {
313
314
314
315
// VM has to be a HotSpot VM or OpenJDK by Sun Microsystems Inc. or
315
316
// Oracle Co. or Apple Inc. or Hewlett-Packard Co. or
316
- // Azul Systems, Inc. or SAP AG
317
+ // Azul Systems, Inc. or SAP AG or Graal VM
317
318
return vmName != null && (vmName .startsWith (HOTSPOT_VM_NAME_PREFIX ) || vmName .startsWith (OPENJDK_VM_NAME_PREFIX )
318
- || vmName .startsWith (SAPJDK_VM_NAME_PREFIX )) &&
319
+ || vmName . startsWith ( SAPJDK_VM_NAME_PREFIX ) || vmName .startsWith (GRAAL_VM_VENDOR_PREFIX )) &&
319
320
vmVendor != null && (vmVendor .startsWith (ORACLE_VM_VENDOR_PREFIX ) || vmVendor .startsWith (SUN_VM_VENDOR_PREFIX )
320
321
|| vmVendor .startsWith (APPLE_VM_VENDOR_PREFIX ) || vmVendor .startsWith (HP_VM_VENDOR_PREFIX )
321
322
|| vmVendor .startsWith (AZUL_VM_VENDOR_PREFIX ) || vmVendor .startsWith (SAP_VM_VENDOR_PREFIX ));
You can’t perform that action at this time.
0 commit comments