hotspot/src/share/vm/runtime/vm_operations.hpp
changeset 26587 e8b28fa936af
parent 25051 8110ec6e7340
child 26837 72a43d3841e7
equal deleted inserted replaced
26585:2048b8d90c91 26587:e8b28fa936af
    97   template(Exit)                                  \
    97   template(Exit)                                  \
    98   template(LinuxDllLoad)                          \
    98   template(LinuxDllLoad)                          \
    99   template(RotateGCLog)                           \
    99   template(RotateGCLog)                           \
   100   template(WhiteBoxOperation)                     \
   100   template(WhiteBoxOperation)                     \
   101   template(ClassLoaderStatsOperation)             \
   101   template(ClassLoaderStatsOperation)             \
       
   102   template(PrintCompileQueue)                     \
       
   103   template(PrintCodeList)                         \
       
   104   template(PrintCodeCache)                        \
   102 
   105 
   103 class VM_Operation: public CHeapObj<mtInternal> {
   106 class VM_Operation: public CHeapObj<mtInternal> {
   104  public:
   107  public:
   105   enum Mode {
   108   enum Mode {
   106     _safepoint,       // blocking,        safepoint, vm_op C-heap allocated
   109     _safepoint,       // blocking,        safepoint, vm_op C-heap allocated
   411   VM_RotateGCLog(outputStream* st) : _out(st) {}
   414   VM_RotateGCLog(outputStream* st) : _out(st) {}
   412   VMOp_Type type() const { return VMOp_RotateGCLog; }
   415   VMOp_Type type() const { return VMOp_RotateGCLog; }
   413   void doit() { gclog_or_tty->rotate_log(true, _out); }
   416   void doit() { gclog_or_tty->rotate_log(true, _out); }
   414 };
   417 };
   415 
   418 
       
   419 class VM_PrintCompileQueue: public VM_Operation {
       
   420  private:
       
   421   outputStream* _out;
       
   422 
       
   423  public:
       
   424   VM_PrintCompileQueue(outputStream* st) : _out(st) {}
       
   425   VMOp_Type type() const { return VMOp_PrintCompileQueue; }
       
   426   void doit();
       
   427 };
       
   428 
       
   429 class VM_PrintCodeList: public VM_Operation {
       
   430  private:
       
   431   outputStream* _out;
       
   432 
       
   433  public:
       
   434   VM_PrintCodeList(outputStream* st) : _out(st) {}
       
   435   VMOp_Type type() const { return VMOp_PrintCodeList; }
       
   436   void doit();
       
   437 };
       
   438 
       
   439 class VM_PrintCodeCache: public VM_Operation {
       
   440  private:
       
   441   outputStream* _out;
       
   442 
       
   443  public:
       
   444   VM_PrintCodeCache(outputStream* st) : _out(st) {}
       
   445   VMOp_Type type() const { return VMOp_PrintCodeCache; }
       
   446   void doit();
       
   447 };
       
   448 
       
   449 
   416 #endif // SHARE_VM_RUNTIME_VM_OPERATIONS_HPP
   450 #endif // SHARE_VM_RUNTIME_VM_OPERATIONS_HPP