hotspot/src/share/vm/runtime/vm_operations.hpp
changeset 23517 27c4307d6cda
parent 23180 e87156376bed
child 23848 2a4fff3b50c1
equal deleted inserted replaced
23516:b32d8f04648b 23517:27c4307d6cda
    94   template(HeapIterateOperation)                  \
    94   template(HeapIterateOperation)                  \
    95   template(ReportJavaOutOfMemory)                 \
    95   template(ReportJavaOutOfMemory)                 \
    96   template(JFRCheckpoint)                         \
    96   template(JFRCheckpoint)                         \
    97   template(Exit)                                  \
    97   template(Exit)                                  \
    98   template(LinuxDllLoad)                          \
    98   template(LinuxDllLoad)                          \
       
    99   template(RotateGCLog)                           \
    99 
   100 
   100 class VM_Operation: public CHeapObj<mtInternal> {
   101 class VM_Operation: public CHeapObj<mtInternal> {
   101  public:
   102  public:
   102   enum Mode {
   103   enum Mode {
   103     _safepoint,       // blocking,        safepoint, vm_op C-heap allocated
   104     _safepoint,       // blocking,        safepoint, vm_op C-heap allocated
   397   }
   398   }
   398   VMOp_Type type() const { return VMOp_Exit; }
   399   VMOp_Type type() const { return VMOp_Exit; }
   399   void doit();
   400   void doit();
   400 };
   401 };
   401 
   402 
       
   403 
       
   404 class VM_RotateGCLog: public VM_Operation {
       
   405  private:
       
   406   outputStream* _out;
       
   407 
       
   408  public:
       
   409   VM_RotateGCLog(outputStream* st) : _out(st) {}
       
   410   VMOp_Type type() const { return VMOp_RotateGCLog; }
       
   411   void doit() { gclog_or_tty->rotate_log(true, _out); }
       
   412 };
       
   413 
   402 #endif // SHARE_VM_RUNTIME_VM_OPERATIONS_HPP
   414 #endif // SHARE_VM_RUNTIME_VM_OPERATIONS_HPP