diff src/share/vm/runtime/arguments.cpp @ 12739:b699233403ad

Delegate hprof enabled information from hotspot to graal
author Christos Kotselidis <christos.kotselidis@oracle.com>
date Sat, 09 Nov 2013 21:32:51 +0100
parents 4dba97fb1a6f
children 096c224171c4
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp	Sat Nov 09 21:30:33 2013 +0100
+++ b/src/share/vm/runtime/arguments.cpp	Sat Nov 09 21:32:51 2013 +0100
@@ -2632,6 +2632,11 @@
           return JNI_ERR;
         }
 #endif // !INCLUDE_JVMTI
+#if defined(GRAAL)
+        if (strcmp(name, "hprof") == 0) {
+          FLAG_SET_CMDLINE(bool, GraalHProfEnabled, true);
+        }
+#endif
         add_init_library(name, options);
       }
     // -agentlib and -agentpath
@@ -2654,6 +2659,12 @@
           return JNI_ERR;
         }
 #endif // !INCLUDE_JVMTI
+#if defined(GRAAL)
+        if (valid_hprof_or_jdwp_agent(name, is_absolute_path)) {
+          FLAG_SET_CMDLINE(bool, GraalHProfEnabled, true);
+        }
+#endif
+
         add_init_agent(name, options, is_absolute_path);
       }
     // -javaagent