src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp

Print this page
rev 2722 : 7095194: G1: HeapRegion::GrainBytes, GrainWords, and CardsPerRegion should be size_t
Summary: Declare GrainBytes, GrainWords, and CardsPerRegion as size_t.
Reviewed-by:

*** 296,309 **** } else { G1ErgoVerbose::set_enabled(false); } // Verify PLAB sizes ! const uint region_size = HeapRegion::GrainWords; if (YoungPLABSize > region_size || OldPLABSize > region_size) { char buffer[128]; ! jio_snprintf(buffer, sizeof(buffer), "%sPLABSize should be at most %u", OldPLABSize > region_size ? "Old" : "Young", region_size); vm_exit_during_initialization(buffer); } _recent_prev_end_times_for_all_gcs_sec->add(os::elapsedTime()); --- 296,309 ---- } else { G1ErgoVerbose::set_enabled(false); } // Verify PLAB sizes ! const size_t region_size = HeapRegion::GrainWords; if (YoungPLABSize > region_size || OldPLABSize > region_size) { char buffer[128]; ! jio_snprintf(buffer, sizeof(buffer), "%sPLABSize should be at most "SIZE_FORMAT, OldPLABSize > region_size ? "Old" : "Young", region_size); vm_exit_during_initialization(buffer); } _recent_prev_end_times_for_all_gcs_sec->add(os::elapsedTime());