< prev index next >


Print this page


@@ -23,11 +23,10 @@
-#include "gc/shared/gcCause.hpp"
 #include "memory/allocation.hpp"
 #include "utilities/globalDefinitions.hpp"
 #include "utilities/macros.hpp"
 class JavaThread;

@@ -44,11 +43,10 @@
   // unlocking.
   static volatile jint _jni_lock_count;  // number of jni active instances.
   static volatile bool _needs_gc;        // heap is filling, we need a GC
                                          // note: bool is typedef'd as jint
   static volatile bool _doing_gc;        // unlock_critical() is doing a GC
-  static uint _total_collections;        // value for _gc_locker collection
 #ifdef ASSERT
   // This lock count is updated for all operations and is used to
   // validate the jni_lock_count that is computed during safepoints.
   static volatile jint _debug_jni_lock_count;

@@ -98,16 +96,10 @@
   // Sets _needs_gc if is_active() is true. Returns is_active().
   static bool check_active_before_gc();
-  // Return true if the designated collection is a GCLocker request
-  // that should be discarded.  Returns true if cause == GCCause::_gc_locker
-  // and the given total collection value indicates a collection has been
-  // done since the GCLocker request was made.
-  static bool should_discard(GCCause::Cause cause, uint total_collections);
   // Stalls the caller (who should not be in a jni critical section)
   // until needs_gc() clears. Note however that needs_gc() may be
   // set at a subsequent safepoint and/or cleared under the
   // JNICritical_lock, so the caller may not safely assert upon
   // return from this method that "!needs_gc()" since that is
< prev index next >