src/share/vm/services/diagnosticCommand.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/services

src/share/vm/services/diagnosticCommand.hpp

Print this page
rev 8995 : 8046155: JEP165: Compiler Control
Summary:
Reviewed-by:


 596 public:
 597   CodeCacheDCmd(outputStream* output, bool heap) : DCmd(output, heap) {}
 598   static const char* name() {
 599     return "Compiler.codecache";
 600   }
 601   static const char* description() {
 602     return "Print code cache layout and bounds.";
 603   }
 604   static const char* impact() {
 605     return "Low";
 606   }
 607   static const JavaPermission permission() {
 608     JavaPermission p = {"java.lang.management.ManagementPermission",
 609                         "monitor", NULL};
 610     return p;
 611   }
 612   static int num_arguments() { return 0; }
 613   virtual void execute(DCmdSource source, TRAPS);
 614 };
 615 






















































































 616 #endif // SHARE_VM_SERVICES_DIAGNOSTICCOMMAND_HPP


 596 public:
 597   CodeCacheDCmd(outputStream* output, bool heap) : DCmd(output, heap) {}
 598   static const char* name() {
 599     return "Compiler.codecache";
 600   }
 601   static const char* description() {
 602     return "Print code cache layout and bounds.";
 603   }
 604   static const char* impact() {
 605     return "Low";
 606   }
 607   static const JavaPermission permission() {
 608     JavaPermission p = {"java.lang.management.ManagementPermission",
 609                         "monitor", NULL};
 610     return p;
 611   }
 612   static int num_arguments() { return 0; }
 613   virtual void execute(DCmdSource source, TRAPS);
 614 };
 615 
 616 class CompilerDirectivesPrintDCmd : public DCmd {
 617 public:
 618   CompilerDirectivesPrintDCmd(outputStream* output, bool heap) : DCmd(output, heap) {}
 619   static const char* name() {
 620     return "Compiler.directives_print";
 621   }
 622   static const char* description() {
 623     return "Print all active compiler directives.";
 624   }
 625   static const char* impact() {
 626     return "Low";
 627   }
 628   static const JavaPermission permission() {
 629     JavaPermission p = {"java.lang.management.ManagementPermission",
 630                         "monitor", NULL};
 631     return p;
 632   }
 633   static int num_arguments() { return 0; }
 634   virtual void execute(DCmdSource source, TRAPS);
 635 };
 636 
 637 class CompilerDirectivesRemoveDCmd : public DCmd {
 638 public:
 639   CompilerDirectivesRemoveDCmd(outputStream* output, bool heap) : DCmd(output, heap) {}
 640   static const char* name() {
 641     return "Compiler.directives_remove";
 642   }
 643   static const char* description() {
 644     return "Remove latest added compiler directive.";
 645   }
 646   static const char* impact() {
 647     return "Low";
 648   }
 649   static const JavaPermission permission() {
 650     JavaPermission p = {"java.lang.management.ManagementPermission",
 651                         "monitor", NULL};
 652     return p;
 653   }
 654   static int num_arguments() { return 0; }
 655   virtual void execute(DCmdSource source, TRAPS);
 656 };
 657 
 658 class CompilerDirectivesAddDCmd : public DCmdWithParser {
 659 protected:
 660   DCmdArgument<char*> _filename;
 661 public:
 662   CompilerDirectivesAddDCmd(outputStream* output, bool heap);
 663   static const char* name() {
 664     return "Compiler.directives_add";
 665   }
 666   static const char* description() {
 667     return "Add compiler directives from file.";
 668   }
 669   static const char* impact() {
 670     return "Low";
 671   }
 672   static const JavaPermission permission() {
 673     JavaPermission p = {"java.lang.management.ManagementPermission",
 674                         "monitor", NULL};
 675     return p;
 676   }
 677   static int num_arguments();
 678   virtual void execute(DCmdSource source, TRAPS);
 679 };
 680 
 681 class CompilerDirectivesClearDCmd : public DCmd {
 682 public:
 683   CompilerDirectivesClearDCmd(outputStream* output, bool heap) : DCmd(output, heap) {}
 684   static const char* name() {
 685     return "Compiler.directives_clear";
 686   }
 687   static const char* description() {
 688     return "Remove all compiler directives.";
 689   }
 690   static const char* impact() {
 691     return "Low";
 692   }
 693   static const JavaPermission permission() {
 694     JavaPermission p = {"java.lang.management.ManagementPermission",
 695                         "monitor", NULL};
 696     return p;
 697   }
 698   static int num_arguments() { return 0; }
 699   virtual void execute(DCmdSource source, TRAPS);
 700 };
 701 
 702 #endif // SHARE_VM_SERVICES_DIAGNOSTICCOMMAND_HPP
src/share/vm/services/diagnosticCommand.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File