hotspot/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp
changeset 7923 fc200fcd4e05
parent 7416 cfe3bfab7d48
child 8103 65eafe3fb3c7
equal deleted inserted replaced
7922:e97540c35e38 7923:fc200fcd4e05
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
  2873   _collection_set_size = 0;
  2873   _collection_set_size = 0;
  2874 
  2874 
  2875   // Adjust for expansion and slop.
  2875   // Adjust for expansion and slop.
  2876   max_live_bytes = max_live_bytes + expansion_bytes;
  2876   max_live_bytes = max_live_bytes + expansion_bytes;
  2877 
  2877 
  2878   assert(_g1->regions_accounted_for(), "Region leakage!");
       
  2879 
       
  2880   HeapRegion* hr;
  2878   HeapRegion* hr;
  2881   if (in_young_gc_mode()) {
  2879   if (in_young_gc_mode()) {
  2882     double young_start_time_sec = os::elapsedTime();
  2880     double young_start_time_sec = os::elapsedTime();
  2883 
  2881 
  2884     if (G1PolicyVerbose > 0) {
  2882     if (G1PolicyVerbose > 0) {