comparison src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp @ 3986:65a8ff39a6da

7095194: G1: HeapRegion::GrainBytes, GrainWords, and CardsPerRegion should be size_t Summary: Declare GrainBytes, GrainWords, and CardsPerRegion as size_t. Reviewed-by: jcoomes, tonyp, jmasa
author johnc
date Wed, 05 Oct 2011 08:44:10 -0700
parents 273b46400613
children 074f0252cc13
comparison
equal deleted inserted replaced
3985:c63b928b212b 3986:65a8ff39a6da
296 } else { 296 } else {
297 G1ErgoVerbose::set_enabled(false); 297 G1ErgoVerbose::set_enabled(false);
298 } 298 }
299 299
300 // Verify PLAB sizes 300 // Verify PLAB sizes
301 const uint region_size = HeapRegion::GrainWords; 301 const size_t region_size = HeapRegion::GrainWords;
302 if (YoungPLABSize > region_size || OldPLABSize > region_size) { 302 if (YoungPLABSize > region_size || OldPLABSize > region_size) {
303 char buffer[128]; 303 char buffer[128];
304 jio_snprintf(buffer, sizeof(buffer), "%sPLABSize should be at most %u", 304 jio_snprintf(buffer, sizeof(buffer), "%sPLABSize should be at most "SIZE_FORMAT,
305 OldPLABSize > region_size ? "Old" : "Young", region_size); 305 OldPLABSize > region_size ? "Old" : "Young", region_size);
306 vm_exit_during_initialization(buffer); 306 vm_exit_during_initialization(buffer);
307 } 307 }
308 308
309 _recent_prev_end_times_for_all_gcs_sec->add(os::elapsedTime()); 309 _recent_prev_end_times_for_all_gcs_sec->add(os::elapsedTime());