< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahClosures.hpp

Print this page
rev 57589 : 8237632: Shenandoah fails some vmTestbase_nsk_jvmti tests with "Forwardee must point to a heap address"
   1 /*
   2  * Copyright (c) 2019, Red Hat, Inc. All rights reserved.
   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 #ifndef SHARE_GC_SHENANDOAH_SHENANDOAHCLOSURES_HPP
  24 #define SHARE_GC_SHENANDOAH_SHENANDOAHCLOSURES_HPP
  25 
  26 #include "memory/iterator.hpp"
  27 
  28 class ShenandoahHeap;
  29 class ShenandoahMarkingContext;
  30 class ShenandoahHeapRegionSet;
  31 class Thread;
  32 
  33 class ShenandoahForwardedIsAliveClosure: public BoolObjectClosure {
  34 private:

  35   ShenandoahMarkingContext* const _mark_context;
  36 public:
  37   inline ShenandoahForwardedIsAliveClosure();
  38   inline bool do_object_b(oop obj);
  39 };









  40 
  41 class ShenandoahIsAliveClosure: public BoolObjectClosure {
  42 private:
  43   ShenandoahMarkingContext* const _mark_context;
  44 public:
  45   inline ShenandoahIsAliveClosure();
  46   inline bool do_object_b(oop obj);
  47 };
  48 
  49 class ShenandoahIsAliveSelector : public StackObj {
  50 private:
  51   ShenandoahIsAliveClosure _alive_cl;
  52   ShenandoahForwardedIsAliveClosure _fwd_alive_cl;
  53 public:
  54   inline BoolObjectClosure* is_alive_closure();
  55 };
  56 
  57 class ShenandoahUpdateRefsClosure: public OopClosure {
  58 private:
  59   ShenandoahHeap* _heap;


   1 /*
   2  * Copyright (c) 2019, 2020, Red Hat, Inc. All rights reserved.
   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 #ifndef SHARE_GC_SHENANDOAH_SHENANDOAHCLOSURES_HPP
  24 #define SHARE_GC_SHENANDOAH_SHENANDOAHCLOSURES_HPP
  25 
  26 #include "memory/iterator.hpp"
  27 
  28 class ShenandoahHeap;
  29 class ShenandoahMarkingContext;
  30 class ShenandoahHeapRegionSet;
  31 class Thread;
  32 
  33 class ShenandoahForwardedIsAliveClosure: public BoolObjectClosure {
  34 private:
  35   ShenandoahHeap* const _heap;
  36   ShenandoahMarkingContext* const _mark_context;
  37 public:
  38   inline ShenandoahForwardedIsAliveClosure();
  39   inline bool do_object_b(oop obj);
  40 };
  41 
  42 class ShenandoahForwardedIsAliveNoCSetCheckClosure: public BoolObjectClosure {
  43 private:
  44   ShenandoahMarkingContext* const _mark_context;
  45 public:
  46   inline ShenandoahForwardedIsAliveNoCSetCheckClosure();
  47   inline bool do_object_b(oop obj);
  48 };
  49 
  50 
  51 class ShenandoahIsAliveClosure: public BoolObjectClosure {
  52 private:
  53   ShenandoahMarkingContext* const _mark_context;
  54 public:
  55   inline ShenandoahIsAliveClosure();
  56   inline bool do_object_b(oop obj);
  57 };
  58 
  59 class ShenandoahIsAliveSelector : public StackObj {
  60 private:
  61   ShenandoahIsAliveClosure _alive_cl;
  62   ShenandoahForwardedIsAliveClosure _fwd_alive_cl;
  63 public:
  64   inline BoolObjectClosure* is_alive_closure();
  65 };
  66 
  67 class ShenandoahUpdateRefsClosure: public OopClosure {
  68 private:
  69   ShenandoahHeap* _heap;


< prev index next >