< prev index next >

src/share/vm/gc/parallel/psAdaptiveSizePolicy.hpp

Print this page
rev 8362 : 8079792: GC directory structure cleanup
Reviewed-by:
   1 /*
   2  * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   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 #ifndef SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSADAPTIVESIZEPOLICY_HPP
  26 #define SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSADAPTIVESIZEPOLICY_HPP
  27 
  28 #include "gc_implementation/shared/adaptiveSizePolicy.hpp"
  29 #include "gc_implementation/shared/gcStats.hpp"
  30 #include "gc_implementation/shared/gcUtil.hpp"
  31 #include "gc_interface/gcCause.hpp"
  32 
  33 // This class keeps statistical information and computes the
  34 // optimal free space for both the young and old generation
  35 // based on current application characteristics (based on gc cost
  36 // and application footprint).
  37 //
  38 // It also computes an optimal tenuring threshold between the young
  39 // and old generations, so as to equalize the cost of collections
  40 // of those generations, as well as optimal survivor space sizes
  41 // for the young generation.
  42 //
  43 // While this class is specifically intended for a generational system
  44 // consisting of a young gen (containing an Eden and two semi-spaces)
  45 // and a tenured gen, as well as a perm gen for reflective data, it
  46 // makes NO references to specific generations.
  47 //
  48 // 05/02/2003 Update
  49 // The 1.5 policy makes use of data gathered for the costs of GC on
  50 // specific generations.  That data does reference specific
  51 // generation.  Also diagnostics specific to generations have


 388   size_t bytes_absorbed_from_eden() const { return _bytes_absorbed_from_eden; }
 389   void   reset_bytes_absorbed_from_eden() { _bytes_absorbed_from_eden = 0; }
 390 
 391   void set_bytes_absorbed_from_eden(size_t val) {
 392     _bytes_absorbed_from_eden = val;
 393   }
 394 
 395   // Update averages that are always used (even
 396   // if adaptive sizing is turned off).
 397   void update_averages(bool is_survivor_overflow,
 398                        size_t survived,
 399                        size_t promoted);
 400 
 401   // Printing support
 402   virtual bool print_adaptive_size_policy_on(outputStream* st) const;
 403 
 404   // Decay the supplemental growth additive.
 405   void decay_supplemental_growth(bool is_full_gc);
 406 };
 407 
 408 #endif // SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSADAPTIVESIZEPOLICY_HPP
   1 /*
   2  * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   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 #ifndef SHARE_VM_GC_PARALLEL_PSADAPTIVESIZEPOLICY_HPP
  26 #define SHARE_VM_GC_PARALLEL_PSADAPTIVESIZEPOLICY_HPP
  27 
  28 #include "gc/shared/adaptiveSizePolicy.hpp"
  29 #include "gc/shared/gcCause.hpp"
  30 #include "gc/shared/gcStats.hpp"
  31 #include "gc/shared/gcUtil.hpp"
  32 
  33 // This class keeps statistical information and computes the
  34 // optimal free space for both the young and old generation
  35 // based on current application characteristics (based on gc cost
  36 // and application footprint).
  37 //
  38 // It also computes an optimal tenuring threshold between the young
  39 // and old generations, so as to equalize the cost of collections
  40 // of those generations, as well as optimal survivor space sizes
  41 // for the young generation.
  42 //
  43 // While this class is specifically intended for a generational system
  44 // consisting of a young gen (containing an Eden and two semi-spaces)
  45 // and a tenured gen, as well as a perm gen for reflective data, it
  46 // makes NO references to specific generations.
  47 //
  48 // 05/02/2003 Update
  49 // The 1.5 policy makes use of data gathered for the costs of GC on
  50 // specific generations.  That data does reference specific
  51 // generation.  Also diagnostics specific to generations have


 388   size_t bytes_absorbed_from_eden() const { return _bytes_absorbed_from_eden; }
 389   void   reset_bytes_absorbed_from_eden() { _bytes_absorbed_from_eden = 0; }
 390 
 391   void set_bytes_absorbed_from_eden(size_t val) {
 392     _bytes_absorbed_from_eden = val;
 393   }
 394 
 395   // Update averages that are always used (even
 396   // if adaptive sizing is turned off).
 397   void update_averages(bool is_survivor_overflow,
 398                        size_t survived,
 399                        size_t promoted);
 400 
 401   // Printing support
 402   virtual bool print_adaptive_size_policy_on(outputStream* st) const;
 403 
 404   // Decay the supplemental growth additive.
 405   void decay_supplemental_growth(bool is_full_gc);
 406 };
 407 
 408 #endif // SHARE_VM_GC_PARALLEL_PSADAPTIVESIZEPOLICY_HPP
< prev index next >