< prev index next >

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

Print this page
rev 7905 : imported patch 8067336-allow-that-plab-allocations-at-the-end-of-regions-are-flexible


   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "gc_implementation/g1/g1CollectedHeap.inline.hpp"
  27 #include "gc_implementation/g1/g1CollectorPolicy.hpp"
  28 #include "gc_implementation/g1/heapRegion.hpp"
  29 #include "gc_implementation/g1/survRateGroup.hpp"
  30 #include "memory/allocation.hpp"
  31 
  32 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
  33 
  34 SurvRateGroup::SurvRateGroup(G1CollectorPolicy* g1p,
  35                              const char* name,
  36                              size_t summary_surv_rates_len) :
  37     _g1p(g1p), _name(name),
  38     _summary_surv_rates_len(summary_surv_rates_len),
  39     _summary_surv_rates_max_len(0),
  40     _summary_surv_rates(NULL),
  41     _surv_rate(NULL),
  42     _accum_surv_rate_pred(NULL),
  43     _surv_rate_pred(NULL),
  44     _stats_arrays_length(0) {
  45   reset();
  46   if (summary_surv_rates_len > 0) {
  47     size_t length = summary_surv_rates_len;
  48       _summary_surv_rates = NEW_C_HEAP_ARRAY(NumberSeq*, length, mtGC);




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "gc_implementation/g1/g1CollectedHeap.inline.hpp"
  27 #include "gc_implementation/g1/g1CollectorPolicy.hpp"
  28 #include "gc_implementation/g1/heapRegion.inline.hpp"
  29 #include "gc_implementation/g1/survRateGroup.hpp"
  30 #include "memory/allocation.hpp"
  31 
  32 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
  33 
  34 SurvRateGroup::SurvRateGroup(G1CollectorPolicy* g1p,
  35                              const char* name,
  36                              size_t summary_surv_rates_len) :
  37     _g1p(g1p), _name(name),
  38     _summary_surv_rates_len(summary_surv_rates_len),
  39     _summary_surv_rates_max_len(0),
  40     _summary_surv_rates(NULL),
  41     _surv_rate(NULL),
  42     _accum_surv_rate_pred(NULL),
  43     _surv_rate_pred(NULL),
  44     _stats_arrays_length(0) {
  45   reset();
  46   if (summary_surv_rates_len > 0) {
  47     size_t length = summary_surv_rates_len;
  48       _summary_surv_rates = NEW_C_HEAP_ARRAY(NumberSeq*, length, mtGC);


< prev index next >