--- old/src/share/vm/gc/g1/g1EvacStats.cpp 2017-02-17 11:08:10.808875087 -0500 +++ new/src/share/vm/gc/g1/g1EvacStats.cpp 2017-02-17 11:08:09.608805810 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -46,18 +46,7 @@ _failure_waste * HeapWordSize); } -void G1EvacStats::adjust_desired_plab_sz() { - log_plab_allocation(); - - if (!ResizePLAB) { - // Clear accumulators for next round. - reset(); - return; - } - - assert(is_object_aligned(max_size()) && min_size() <= max_size(), - "PLAB clipping computation may be incorrect"); - +size_t G1EvacStats::adjust_desired_plab_sz_helper() { if (_allocated == 0) { assert((_unused == 0), "Inconsistency in PLAB stats: " @@ -109,13 +98,7 @@ size_t const total_waste_allowed = used_for_waste_calculation * TargetPLABWastePct; size_t const cur_plab_sz = (size_t)((double)total_waste_allowed / G1LastPLABAverageOccupancy); - // Take historical weighted average - _filter.sample(cur_plab_sz); - _desired_net_plab_sz = MAX2(min_size(), (size_t)_filter.average()); - - log_sizing(cur_plab_sz, _desired_net_plab_sz); - // Clear accumulators for next round. - reset(); + return cur_plab_sz; } G1EvacStats::G1EvacStats(const char* description, size_t desired_plab_sz_, unsigned wt) :