Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/vm_operations.hpp @ 17827:f42c10a3d4b1
7090324: gclog rotation via external tool
Summary: GC log rotation can be set via java command line, but customer sometime need to sync with OS level rotation setting.
Reviewed-by: sla, minqi, ehelin
Contributed-by: suenaga.yasumasa@lab.ntt.co.jp
author | minqi |
---|---|
date | Mon, 31 Mar 2014 13:09:35 -0700 |
parents | 510fbd28919c |
children | b127b0d6de7f |
comparison
equal
deleted
inserted
replaced
17826:d5818eeedb40 | 17827:f42c10a3d4b1 |
---|---|
92 template(HeapIterateOperation) \ | 92 template(HeapIterateOperation) \ |
93 template(ReportJavaOutOfMemory) \ | 93 template(ReportJavaOutOfMemory) \ |
94 template(JFRCheckpoint) \ | 94 template(JFRCheckpoint) \ |
95 template(Exit) \ | 95 template(Exit) \ |
96 template(LinuxDllLoad) \ | 96 template(LinuxDllLoad) \ |
97 template(RotateGCLog) \ | |
97 | 98 |
98 class VM_Operation: public CHeapObj<mtInternal> { | 99 class VM_Operation: public CHeapObj<mtInternal> { |
99 public: | 100 public: |
100 enum Mode { | 101 enum Mode { |
101 _safepoint, // blocking, safepoint, vm_op C-heap allocated | 102 _safepoint, // blocking, safepoint, vm_op C-heap allocated |
395 } | 396 } |
396 VMOp_Type type() const { return VMOp_Exit; } | 397 VMOp_Type type() const { return VMOp_Exit; } |
397 void doit(); | 398 void doit(); |
398 }; | 399 }; |
399 | 400 |
401 | |
402 class VM_RotateGCLog: public VM_Operation { | |
403 private: | |
404 outputStream* _out; | |
405 | |
406 public: | |
407 VM_RotateGCLog(outputStream* st) : _out(st) {} | |
408 VMOp_Type type() const { return VMOp_RotateGCLog; } | |
409 void doit() { gclog_or_tty->rotate_log(true, _out); } | |
410 }; | |
411 | |
400 #endif // SHARE_VM_RUNTIME_VM_OPERATIONS_HPP | 412 #endif // SHARE_VM_RUNTIME_VM_OPERATIONS_HPP |