diff src/share/vm/gc_implementation/g1/g1HotCardCache.hpp @ 22902:ae374055ebce

8053998: Hot card cache flush chunk size too coarse grained Summary: Changed the chunk size to a smaller fixed number. Reviewed-by: tschatzl, mgerdin
author mlarsson
date Thu, 18 Sep 2014 11:27:59 +0200
parents 1f1d373cd044
children b6a1bf5222c5
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/g1HotCardCache.hpp	Fri Dec 19 09:21:06 2014 +0100
+++ b/src/share/vm/gc_implementation/g1/g1HotCardCache.hpp	Thu Sep 18 11:27:59 2014 +0200
@@ -70,6 +70,9 @@
 
   G1CardCounts _card_counts;
 
+  // The number of cached cards a thread claims when flushing the cache
+  static const int ClaimChunkSize = 32;
+
   bool default_use_cache() const {
     return (G1ConcRSLogCacheSize > 0);
   }