1 /* 2 * Copyright (c) 2013, 2015, Red Hat, Inc. and/or its affiliates. 3 * 4 * This code is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU General Public License version 2 only, as 6 * published by the Free Software Foundation. 7 * 8 * This code is distributed in the hope that it will be useful, but WITHOUT 9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 11 * version 2 for more details (a copy is included in the LICENSE file that 12 * accompanied this code). 13 * 14 * You should have received a copy of the GNU General Public License version 15 * 2 along with this work; if not, write to the Free Software Foundation, 16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 17 * 18 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 19 * or visit www.oracle.com if you need additional information or have any 20 * questions. 21 * 22 */ 23 24 #ifndef SHARE_VM_GC_SHENANDOAH_VM_OPERATIONS_SHENANDOAH_HPP 25 #define SHARE_VM_GC_SHENANDOAH_VM_OPERATIONS_SHENANDOAH_HPP 26 27 #include "gc/shenandoah/shenandoahConcurrentMark.hpp" 28 #include "gc/shared/vmGCOperations.hpp" 29 30 // VM_operations for the Shenandoah Collector. 31 // For now we are just doing two pauses. The initial marking pause, and the final finish up marking and perform evacuation pause. 32 // VM_ShenandoahInitMark 33 // VM_ShenandoahFinishMark 34 35 class VM_ShenandoahInitMark: public VM_Operation { 36 37 public: 38 virtual VMOp_Type type() const; 39 virtual void doit(); 40 41 virtual const char* name() const; 42 }; 43 44 class VM_ShenandoahReferenceOperation : public VM_Operation { 45 bool doit_prologue(); 46 void doit_epilogue(); 47 48 }; 49 50 class VM_ShenandoahStartEvacuation: public VM_ShenandoahReferenceOperation { 51 52 public: 53 VMOp_Type type() const; 54 void doit(); 55 const char* name() const; 56 57 }; 58 59 class VM_ShenandoahFullGC : public VM_ShenandoahReferenceOperation { 60 public: 61 VMOp_Type type() const; 62 void doit(); 63 const char* name() const; 64 }; 65 66 class VM_ShenandoahVerifyHeapAfterEvacuation: public VM_Operation { 67 68 public: 69 virtual VMOp_Type type() const; 70 virtual void doit(); 71 72 virtual const char* name() const; 73 74 }; 75 76 class VM_ShenandoahEvacuation: public VM_Operation { 77 78 public: 79 virtual VMOp_Type type() const; 80 virtual void doit(); 81 82 virtual const char* name() const; 83 84 }; 85 86 /* 87 class VM_ShenandoahVerifyHeapAfterUpdateRefs: public VM_Operation { 88 89 public: 90 virtual VMOp_Type type() const; 91 virtual void doit(); 92 93 virtual const char* name() const; 94 95 }; 96 */ 97 class VM_ShenandoahUpdateRootRefs: public VM_Operation { 98 99 public: 100 virtual VMOp_Type type() const; 101 virtual void doit(); 102 103 virtual const char* name() const; 104 105 }; 106 107 class VM_ShenandoahUpdateRefs: public VM_Operation { 108 109 public: 110 virtual VMOp_Type type() const; 111 virtual void doit(); 112 113 virtual const char* name() const; 114 115 }; 116 117 #endif //SHARE_VM_GC_SHENANDOAH_VM_OPERATIONS_SHENANDOAH_HPP