# HG changeset patch # User tschatzl # Date 1441180623 -7200 # Node ID e121ff3775dae7462286c026b3589c634d25d038 # Parent ef2ec6fac7311e3d322a5d63ca4e0c3d04dddb2f 8134858: Remove G1 specific checking of Young/OldPLABSize in G1CollectorPolicy constructor Summary: Remove obsolete and wrong code. Reviewed-by: mgerdin, brutisso diff -r ef2ec6fac731 -r e121ff3775da hotspot/src/share/vm/gc/g1/g1CollectorPolicy.cpp --- a/hotspot/src/share/vm/gc/g1/g1CollectorPolicy.cpp Wed Sep 02 09:51:05 2015 +0200 +++ b/hotspot/src/share/vm/gc/g1/g1CollectorPolicy.cpp Wed Sep 02 09:57:03 2015 +0200 @@ -181,15 +181,6 @@ 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()); _prev_collection_pause_end_ms = os::elapsedTime() * 1000.0;