equal
deleted
inserted
replaced
27 |
27 |
28 #include "gc_implementation/g1/g1_globals.hpp" |
28 #include "gc_implementation/g1/g1_globals.hpp" |
29 #include "gc_implementation/g1/g1CardCounts.hpp" |
29 #include "gc_implementation/g1/g1CardCounts.hpp" |
30 #include "memory/allocation.hpp" |
30 #include "memory/allocation.hpp" |
31 #include "runtime/safepoint.hpp" |
31 #include "runtime/safepoint.hpp" |
32 #include "runtime/thread.inline.hpp" |
32 #include "runtime/thread.hpp" |
33 #include "utilities/globalDefinitions.hpp" |
33 #include "utilities/globalDefinitions.hpp" |
34 |
34 |
35 class DirtyCardQueue; |
35 class DirtyCardQueue; |
36 class G1CollectedHeap; |
36 class G1CollectedHeap; |
37 class G1RemSet; |
37 class G1RemSet; |
121 } |
121 } |
122 |
122 |
123 // Resets the hot card cache and discards the entries. |
123 // Resets the hot card cache and discards the entries. |
124 void reset_hot_cache() { |
124 void reset_hot_cache() { |
125 assert(SafepointSynchronize::is_at_safepoint(), "Should be at a safepoint"); |
125 assert(SafepointSynchronize::is_at_safepoint(), "Should be at a safepoint"); |
126 assert(Thread::current()->is_VM_thread(), "Current thread should be the VMthread"); |
126 assert(Thread::current_noinline()->is_VM_thread(), "Current thread should be the VMthread"); |
127 if (default_use_cache()) { |
127 if (default_use_cache()) { |
128 reset_hot_cache_internal(); |
128 reset_hot_cache_internal(); |
129 } |
129 } |
130 } |
130 } |
131 |
131 |