< prev index next >

src/share/vm/services/diagnosticCommand.cpp

Print this page
rev 13107 : imported patch jvm_h
rev 13108 : imported patch move_format_buffer


  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/classLoaderStats.hpp"
  27 #include "classfile/compactHashtable.hpp"
  28 #include "compiler/compileBroker.hpp"
  29 #include "compiler/directivesParser.hpp"
  30 #include "gc/shared/vmGCOperations.hpp"
  31 #include "memory/resourceArea.hpp"
  32 #include "oops/oop.inline.hpp"

  33 #include "runtime/globals.hpp"
  34 #include "runtime/javaCalls.hpp"
  35 #include "runtime/os.hpp"
  36 #include "services/diagnosticArgument.hpp"
  37 #include "services/diagnosticCommand.hpp"
  38 #include "services/diagnosticFramework.hpp"
  39 #include "services/heapDumper.hpp"
  40 #include "services/management.hpp"
  41 #include "services/writeableFlags.hpp"


  42 #include "utilities/macros.hpp"
  43 #include "oops/objArrayOop.inline.hpp"
  44 
  45 
  46 static void loadAgentModule(TRAPS) {
  47   ResourceMark rm(THREAD);
  48   HandleMark hm(THREAD);
  49 
  50   JavaValue result(T_OBJECT);
  51   Handle h_module_name = java_lang_String::create_from_str("jdk.management.agent", CHECK);
  52   JavaCalls::call_static(&result,
  53                          SystemDictionary::module_Modules_klass(),
  54                          vmSymbols::loadModule_name(),
  55                          vmSymbols::loadModule_signature(),
  56                          h_module_name,
  57                          THREAD);
  58 }
  59 
  60 void DCmdRegistrant::register_dcmds(){
  61   // Registration of the diagnostic commands




  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/classLoaderStats.hpp"
  27 #include "classfile/compactHashtable.hpp"
  28 #include "compiler/compileBroker.hpp"
  29 #include "compiler/directivesParser.hpp"
  30 #include "gc/shared/vmGCOperations.hpp"
  31 #include "memory/resourceArea.hpp"
  32 #include "oops/oop.inline.hpp"
  33 #include "prims/jvm.h"
  34 #include "runtime/globals.hpp"
  35 #include "runtime/javaCalls.hpp"
  36 #include "runtime/os.hpp"
  37 #include "services/diagnosticArgument.hpp"
  38 #include "services/diagnosticCommand.hpp"
  39 #include "services/diagnosticFramework.hpp"
  40 #include "services/heapDumper.hpp"
  41 #include "services/management.hpp"
  42 #include "services/writeableFlags.hpp"
  43 #include "utilities/debug.hpp"
  44 #include "utilities/formatBuffer.hpp"
  45 #include "utilities/macros.hpp"
  46 #include "oops/objArrayOop.inline.hpp"
  47 
  48 
  49 static void loadAgentModule(TRAPS) {
  50   ResourceMark rm(THREAD);
  51   HandleMark hm(THREAD);
  52 
  53   JavaValue result(T_OBJECT);
  54   Handle h_module_name = java_lang_String::create_from_str("jdk.management.agent", CHECK);
  55   JavaCalls::call_static(&result,
  56                          SystemDictionary::module_Modules_klass(),
  57                          vmSymbols::loadModule_name(),
  58                          vmSymbols::loadModule_signature(),
  59                          h_module_name,
  60                          THREAD);
  61 }
  62 
  63 void DCmdRegistrant::register_dcmds(){
  64   // Registration of the diagnostic commands


< prev index next >