< prev index next >

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

Print this page
rev 8052 : imported patch g1HotCardCache

*** 27,37 **** #include "gc_implementation/g1/g1_globals.hpp" #include "gc_implementation/g1/g1CardCounts.hpp" #include "memory/allocation.hpp" #include "runtime/safepoint.hpp" ! #include "runtime/thread.inline.hpp" #include "utilities/globalDefinitions.hpp" class DirtyCardQueue; class G1CollectedHeap; class G1RemSet; --- 27,37 ---- #include "gc_implementation/g1/g1_globals.hpp" #include "gc_implementation/g1/g1CardCounts.hpp" #include "memory/allocation.hpp" #include "runtime/safepoint.hpp" ! #include "runtime/thread.hpp" #include "utilities/globalDefinitions.hpp" class DirtyCardQueue; class G1CollectedHeap; class G1RemSet;
*** 121,131 **** } // Resets the hot card cache and discards the entries. void reset_hot_cache() { assert(SafepointSynchronize::is_at_safepoint(), "Should be at a safepoint"); ! assert(Thread::current()->is_VM_thread(), "Current thread should be the VMthread"); if (default_use_cache()) { reset_hot_cache_internal(); } } --- 121,131 ---- } // Resets the hot card cache and discards the entries. void reset_hot_cache() { assert(SafepointSynchronize::is_at_safepoint(), "Should be at a safepoint"); ! assert(Thread::current_noinline()->is_VM_thread(), "Current thread should be the VMthread"); if (default_use_cache()) { reset_hot_cache_internal(); } }
< prev index next >