Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/g1/g1RemSet.hpp @ 4728:441e946dc1af
7121618: Change type of number of GC workers to unsigned int.
Summary: Change variables representing the number of GC workers to uint from int and size_t. Change the parameter in work(int i) to work(uint worker_id).
Reviewed-by: brutisso, tonyp
author | jmasa |
---|---|
date | Wed, 14 Dec 2011 13:34:57 -0800 |
parents | dc467e8b2c5e |
children | b4ebad3520bb |
comparison
equal
deleted
inserted
replaced
4727:67fdcb391461 | 4728:441e946dc1af |
---|---|
38 | 38 |
39 class G1RemSet: public CHeapObj { | 39 class G1RemSet: public CHeapObj { |
40 protected: | 40 protected: |
41 G1CollectedHeap* _g1; | 41 G1CollectedHeap* _g1; |
42 unsigned _conc_refine_cards; | 42 unsigned _conc_refine_cards; |
43 size_t n_workers(); | 43 uint n_workers(); |
44 | 44 |
45 protected: | 45 protected: |
46 enum SomePrivateConstants { | 46 enum SomePrivateConstants { |
47 UpdateRStoMergeSync = 0, | 47 UpdateRStoMergeSync = 0, |
48 MergeRStoDoDirtySync = 1, | 48 MergeRStoDoDirtySync = 1, |
120 | 120 |
121 // Like the above, but assumes is called in parallel: "worker_num" is the | 121 // Like the above, but assumes is called in parallel: "worker_num" is the |
122 // parallel thread id of the current thread, and "claim_val" is the | 122 // parallel thread id of the current thread, and "claim_val" is the |
123 // value that should be used to claim heap regions. | 123 // value that should be used to claim heap regions. |
124 void scrub_par(BitMap* region_bm, BitMap* card_bm, | 124 void scrub_par(BitMap* region_bm, BitMap* card_bm, |
125 int worker_num, int claim_val); | 125 uint worker_num, int claim_val); |
126 | 126 |
127 // Refine the card corresponding to "card_ptr". If "sts" is non-NULL, | 127 // Refine the card corresponding to "card_ptr". If "sts" is non-NULL, |
128 // join and leave around parts that must be atomic wrt GC. (NULL means | 128 // join and leave around parts that must be atomic wrt GC. (NULL means |
129 // being done at a safepoint.) | 129 // being done at a safepoint.) |
130 // If check_for_refs_into_cset is true, a true result is returned | 130 // If check_for_refs_into_cset is true, a true result is returned |