File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/heap Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -308,6 +308,25 @@ public Properties getSystemProperties() {
308
308
return HprofProxy .getProperties (props );
309
309
}
310
310
}
311
+ // Substrate VM
312
+ systemClass = getJavaClassByName ("com.oracle.svm.core.jdk.SystemPropertiesSupport" ); // NOI18N
313
+ if (systemClass != null ) {
314
+ Collection propSupportSubClasses = systemClass .getSubClasses ();
315
+
316
+ for (Iterator it = propSupportSubClasses .iterator (); it .hasNext ();) {
317
+ JavaClass propSupportSubClass = (JavaClass ) it .next ();
318
+ List propSupportInstances = propSupportSubClass .getInstances ();
319
+
320
+ if (!propSupportInstances .isEmpty ()) {
321
+ Instance propSupportInstance = (Instance ) propSupportInstances .get (0 );
322
+ Object props = propSupportInstance .getValueOfField ("properties" ); // NOI18N
323
+
324
+ if (props instanceof Instance ) {
325
+ return HprofProxy .getProperties ((Instance ) props );
326
+ }
327
+ }
328
+ }
329
+ }
311
330
return null ;
312
331
}
313
332
You can’t perform that action at this time.
0 commit comments