< prev index next >

src/hotspot/share/runtime/vmOperations.hpp

Print this page
rev 52818 : [mq]: 8193312-rename-vm-operation-classes
rev 52819 : [mq]: 8193312-pliden-review
rev 52821 : [mq]: 8214850-rename-vm_operations


   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  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 #ifndef SHARE_VM_RUNTIME_VM_OPERATIONS_HPP
  26 #define SHARE_VM_RUNTIME_VM_OPERATIONS_HPP
  27 
  28 #include "classfile/javaClasses.hpp"
  29 #include "memory/allocation.hpp"
  30 #include "oops/oop.hpp"
  31 #include "runtime/thread.hpp"
  32 #include "runtime/threadSMR.hpp"
  33 #include "code/codeCache.hpp"
  34 
  35 // The following classes are used for operations
  36 // initiated by a Java thread but that must
  37 // take place in the VMThread.
  38 
  39 #define VM_OP_ENUM(type)   VMOp_##type,
  40 
  41 // Note: When new VM_XXX comes up, add 'XXX' to the template table.
  42 #define VM_OPS_DO(template)                       \
  43   template(None)                                  \
  44   template(ThreadStop)                            \
  45   template(ThreadDump)                            \
  46   template(PrintThreads)                          \


 492   void doit();
 493 };
 494 
 495 #if INCLUDE_SERVICES
 496 class VM_PrintClassHierarchy: public VM_Operation {
 497  private:
 498   outputStream* _out;
 499   bool _print_interfaces;
 500   bool _print_subclasses;
 501   char* _classname;
 502 
 503  public:
 504   VM_PrintClassHierarchy(outputStream* st, bool print_interfaces, bool print_subclasses, char* classname) :
 505     _out(st), _print_interfaces(print_interfaces), _print_subclasses(print_subclasses),
 506     _classname(classname) {}
 507   VMOp_Type type() const { return VMOp_PrintClassHierarchy; }
 508   void doit();
 509 };
 510 #endif // INCLUDE_SERVICES
 511 
 512 #endif // SHARE_VM_RUNTIME_VM_OPERATIONS_HPP


   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  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 #ifndef SHARE_VM_RUNTIME_VMOPERATIONS_HPP
  26 #define SHARE_VM_RUNTIME_VMOPERATIONS_HPP
  27 
  28 #include "classfile/javaClasses.hpp"
  29 #include "memory/allocation.hpp"
  30 #include "oops/oop.hpp"
  31 #include "runtime/thread.hpp"
  32 #include "runtime/threadSMR.hpp"
  33 #include "code/codeCache.hpp"
  34 
  35 // The following classes are used for operations
  36 // initiated by a Java thread but that must
  37 // take place in the VMThread.
  38 
  39 #define VM_OP_ENUM(type)   VMOp_##type,
  40 
  41 // Note: When new VM_XXX comes up, add 'XXX' to the template table.
  42 #define VM_OPS_DO(template)                       \
  43   template(None)                                  \
  44   template(ThreadStop)                            \
  45   template(ThreadDump)                            \
  46   template(PrintThreads)                          \


 492   void doit();
 493 };
 494 
 495 #if INCLUDE_SERVICES
 496 class VM_PrintClassHierarchy: public VM_Operation {
 497  private:
 498   outputStream* _out;
 499   bool _print_interfaces;
 500   bool _print_subclasses;
 501   char* _classname;
 502 
 503  public:
 504   VM_PrintClassHierarchy(outputStream* st, bool print_interfaces, bool print_subclasses, char* classname) :
 505     _out(st), _print_interfaces(print_interfaces), _print_subclasses(print_subclasses),
 506     _classname(classname) {}
 507   VMOp_Type type() const { return VMOp_PrintClassHierarchy; }
 508   void doit();
 509 };
 510 #endif // INCLUDE_SERVICES
 511 
 512 #endif // SHARE_VM_RUNTIME_VMOPERATIONS_HPP
< prev index next >