comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.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 fd2b426c30db
children bacb651cf5bf
comparison
equal deleted inserted replaced
4727:67fdcb391461 4728:441e946dc1af
993 jint initialize(); 993 jint initialize();
994 994
995 // Initialize weak reference processing. 995 // Initialize weak reference processing.
996 virtual void ref_processing_init(); 996 virtual void ref_processing_init();
997 997
998 void set_par_threads(int t) { 998 void set_par_threads(uint t) {
999 SharedHeap::set_par_threads(t); 999 SharedHeap::set_par_threads(t);
1000 // Done in SharedHeap but oddly there are 1000 // Done in SharedHeap but oddly there are
1001 // two _process_strong_tasks's in a G1CollectedHeap 1001 // two _process_strong_tasks's in a G1CollectedHeap
1002 // so do it here too. 1002 // so do it here too.
1003 _process_strong_tasks->set_n_threads(t); 1003 _process_strong_tasks->set_n_threads(t);
1296 // successful, applying the closure to each region in the chunk (and 1296 // successful, applying the closure to each region in the chunk (and
1297 // setting the claim value of the second and subsequent regions of the 1297 // setting the claim value of the second and subsequent regions of the
1298 // chunk.) For now requires that "doHeapRegion" always returns "false", 1298 // chunk.) For now requires that "doHeapRegion" always returns "false",
1299 // i.e., that a closure never attempt to abort a traversal. 1299 // i.e., that a closure never attempt to abort a traversal.
1300 void heap_region_par_iterate_chunked(HeapRegionClosure* blk, 1300 void heap_region_par_iterate_chunked(HeapRegionClosure* blk,
1301 int worker, 1301 uint worker,
1302 int no_of_par_workers, 1302 uint no_of_par_workers,
1303 jint claim_value); 1303 jint claim_value);
1304 1304
1305 // It resets all the region claim values to the default. 1305 // It resets all the region claim values to the default.
1306 void reset_heap_region_claim_values(); 1306 void reset_heap_region_claim_values();
1307 1307