< prev index next >
src/hotspot/share/gc/g1/vm_operations_g1.hpp
Print this page
rev 50605 : Updated patch.
rev 50607 : Minor code cleanups.
@@ -31,10 +31,11 @@
// VM_operations for the G1 collector.
// VM_GC_Operation:
// - VM_CGC_Operation
// - VM_G1CollectForAllocation
// - VM_G1CollectFull
+// - VM_G1IdleCompaction
class VM_G1CollectFull: public VM_GC_Operation {
public:
VM_G1CollectFull(uint gc_count_before,
uint full_gc_count_before,
@@ -45,10 +46,22 @@
virtual const char* name() const {
return "G1 Full collection";
}
};
+class VM_G1IdleCompaction : public VM_GC_Operation {
+public:
+ VM_G1IdleCompaction(uint gc_count_before,
+ uint full_gc_count_before,
+ GCCause::Cause cause)
+ : VM_GC_Operation(gc_count_before, cause, full_gc_count_before, true) { }
+ virtual VMOp_Type type() const { return VMOp_G1IdleCompaction; }
+ virtual void doit();
+ virtual const char* name() const {
+ return "G1 Idle Compaction";
+ }
+};
class VM_G1CollectForAllocation: public VM_CollectForAllocation {
private:
bool _pause_succeeded;
bool _should_initiate_conc_mark;
< prev index next >