Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/heapRegionRemSet.cpp @ 17844:8847586c9037
8016302: Change type of the number of GC workers to unsigned int (2)
Reviewed-by: tschatzl, jwilhelm
author | vkempik |
---|---|
date | Thu, 03 Apr 2014 17:49:31 +0400 |
parents | ae7336d6337e |
children | 78bbf4d43a14 |
comparison
equal
deleted
inserted
replaced
17843:81d7a4b28dc5 | 17844:8847586c9037 |
---|---|
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), |