851 |
851 |
852 // Determines how many threads can add records to an rset in parallel. |
852 // Determines how many threads can add records to an rset in parallel. |
853 // This can be done by either mutator threads together with the |
853 // This can be done by either mutator threads together with the |
854 // concurrent refinement threads or GC threads. |
854 // concurrent refinement threads or GC threads. |
855 uint HeapRegionRemSet::num_par_rem_sets() { |
855 uint HeapRegionRemSet::num_par_rem_sets() { |
856 return (uint)MAX2(DirtyCardQueueSet::num_par_ids() + ConcurrentG1Refine::thread_num(), ParallelGCThreads); |
856 return MAX2(DirtyCardQueueSet::num_par_ids() + ConcurrentG1Refine::thread_num(), (uint)ParallelGCThreads); |
857 } |
857 } |
858 |
858 |
859 HeapRegionRemSet::HeapRegionRemSet(G1BlockOffsetSharedArray* bosa, |
859 HeapRegionRemSet::HeapRegionRemSet(G1BlockOffsetSharedArray* bosa, |
860 HeapRegion* hr) |
860 HeapRegion* hr) |
861 : _bosa(bosa), |
861 : _bosa(bosa), |