< prev index next >

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

Print this page




  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_GC_SHENANDOAH_SHENANDOAHCONCURRENTROOTS_HPP
  25 #define SHARE_GC_SHENANDOAH_SHENANDOAHCONCURRENTROOTS_HPP
  26 
  27 #include "memory/allocation.hpp"
  28 
  29 class ShenandoahConcurrentRoots : public AllStatic {
  30 public:
  31   // Can GC settings allow concurrent root processing
  32   static bool can_do_concurrent_roots();
  33   // If current GC cycle can process roots concurrently
  34   static bool should_do_concurrent_roots();





  35 };
  36 
  37 
  38 #endif // SHARE_GC_SHENANDOAH_SHENANDOAHCONCURRENTROOTS_HPP


  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_GC_SHENANDOAH_SHENANDOAHCONCURRENTROOTS_HPP
  25 #define SHARE_GC_SHENANDOAH_SHENANDOAHCONCURRENTROOTS_HPP
  26 
  27 #include "memory/allocation.hpp"
  28 
  29 class ShenandoahConcurrentRoots : public AllStatic {
  30 public:
  31   // Can GC settings allow concurrent root processing
  32   static bool can_do_concurrent_roots();
  33   // If current GC cycle can process roots concurrently
  34   static bool should_do_concurrent_roots();
  35 
  36   // If GC settings allow concurrent class unloading
  37   static bool can_do_concurrent_class_unloading();
  38   // If current GC cycle can unload classes concurrently
  39   static bool should_do_concurrent_class_unloading();
  40 };
  41 
  42 
  43 #endif // SHARE_GC_SHENANDOAH_SHENANDOAHCONCURRENTROOTS_HPP
< prev index next >