src/share/vm/gc_implementation/g1/concurrentMark.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hs-gc9 Sdiff src/share/vm/gc_implementation/g1

src/share/vm/gc_implementation/g1/concurrentMark.hpp

Print this page




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_GC_IMPLEMENTATION_G1_CONCURRENTMARK_HPP
  26 #define SHARE_VM_GC_IMPLEMENTATION_G1_CONCURRENTMARK_HPP
  27 
  28 #include "gc_implementation/g1/heapRegionSets.hpp"
  29 #include "utilities/taskqueue.hpp"
  30 
  31 class G1CollectedHeap;
  32 class CMTask;
  33 typedef GenericTaskQueue<oop, mtGC>            CMTaskQueue;
  34 typedef GenericTaskQueueSet<CMTaskQueue, mtGC> CMTaskQueueSet;
  35 
  36 // Closure used by CM during concurrent reference discovery
  37 // and reference processing (during remarking) to determine
  38 // if a particular object is alive. It is primarily used
  39 // to determine if referents of discovered reference objects
  40 // are alive. An instance is also embedded into the
  41 // reference processor as the _is_alive_non_header field
  42 class G1CMIsAliveClosure: public BoolObjectClosure {
  43   G1CollectedHeap* _g1;
  44  public:
  45   G1CMIsAliveClosure(G1CollectedHeap* g1) : _g1(g1) { }
  46 
  47   bool do_object_b(oop obj);
  48 };




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_GC_IMPLEMENTATION_G1_CONCURRENTMARK_HPP
  26 #define SHARE_VM_GC_IMPLEMENTATION_G1_CONCURRENTMARK_HPP
  27 
  28 #include "gc_implementation/g1/heapRegionSet.hpp"
  29 #include "utilities/taskqueue.hpp"
  30 
  31 class G1CollectedHeap;
  32 class CMTask;
  33 typedef GenericTaskQueue<oop, mtGC>            CMTaskQueue;
  34 typedef GenericTaskQueueSet<CMTaskQueue, mtGC> CMTaskQueueSet;
  35 
  36 // Closure used by CM during concurrent reference discovery
  37 // and reference processing (during remarking) to determine
  38 // if a particular object is alive. It is primarily used
  39 // to determine if referents of discovered reference objects
  40 // are alive. An instance is also embedded into the
  41 // reference processor as the _is_alive_non_header field
  42 class G1CMIsAliveClosure: public BoolObjectClosure {
  43   G1CollectedHeap* _g1;
  44  public:
  45   G1CMIsAliveClosure(G1CollectedHeap* g1) : _g1(g1) { }
  46 
  47   bool do_object_b(oop obj);
  48 };


src/share/vm/gc_implementation/g1/concurrentMark.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File