comparison 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
comparison
equal deleted inserted replaced
12738:9a56121f285b 12739:b699233403ad
2630 jio_fprintf(defaultStream::error_stream(), 2630 jio_fprintf(defaultStream::error_stream(),
2631 "Profiling and debugging agents are not supported in this VM\n"); 2631 "Profiling and debugging agents are not supported in this VM\n");
2632 return JNI_ERR; 2632 return JNI_ERR;
2633 } 2633 }
2634 #endif // !INCLUDE_JVMTI 2634 #endif // !INCLUDE_JVMTI
2635 #if defined(GRAAL)
2636 if (strcmp(name, "hprof") == 0) {
2637 FLAG_SET_CMDLINE(bool, GraalHProfEnabled, true);
2638 }
2639 #endif
2635 add_init_library(name, options); 2640 add_init_library(name, options);
2636 } 2641 }
2637 // -agentlib and -agentpath 2642 // -agentlib and -agentpath
2638 } else if (match_option(option, "-agentlib:", &tail) || 2643 } else if (match_option(option, "-agentlib:", &tail) ||
2639 (is_absolute_path = match_option(option, "-agentpath:", &tail))) { 2644 (is_absolute_path = match_option(option, "-agentpath:", &tail))) {
2652 jio_fprintf(defaultStream::error_stream(), 2657 jio_fprintf(defaultStream::error_stream(),
2653 "Profiling and debugging agents are not supported in this VM\n"); 2658 "Profiling and debugging agents are not supported in this VM\n");
2654 return JNI_ERR; 2659 return JNI_ERR;
2655 } 2660 }
2656 #endif // !INCLUDE_JVMTI 2661 #endif // !INCLUDE_JVMTI
2662 #if defined(GRAAL)
2663 if (valid_hprof_or_jdwp_agent(name, is_absolute_path)) {
2664 FLAG_SET_CMDLINE(bool, GraalHProfEnabled, true);
2665 }
2666 #endif
2667
2657 add_init_agent(name, options, is_absolute_path); 2668 add_init_agent(name, options, is_absolute_path);
2658 } 2669 }
2659 // -javaagent 2670 // -javaagent
2660 } else if (match_option(option, "-javaagent:", &tail)) { 2671 } else if (match_option(option, "-javaagent:", &tail)) {
2661 #if !INCLUDE_JVMTI 2672 #if !INCLUDE_JVMTI