src/share/vm/gc/g1/g1EvacStats.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8141570.01 Sdiff src/share/vm/gc/g1

src/share/vm/gc/g1/g1EvacStats.hpp

Print this page




   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_G1_G1EVACSTATS_HPP
  26 #define SHARE_VM_gc_G1_G1EVACSTATS_HPP
  27 
  28 #include "gc/shared/plab.hpp"
  29 #include "runtime/atomic.hpp"

  30 
  31 // Records various memory allocation statistics gathered during evacuation.
  32 class G1EvacStats : public PLABStats {
  33  private:
  34   size_t _region_end_waste; // Number of words wasted due to skipping to the next region.
  35   uint   _regions_filled;   // Number of regions filled completely.
  36   size_t _direct_allocated; // Number of words allocated directly into the regions.
  37 
  38   // Number of words in live objects remaining in regions that ultimately suffered an
  39   // evacuation failure. This is used in the regions when the regions are made old regions.
  40   size_t _failure_used;
  41   // Number of words wasted in regions which failed evacuation. This is the sum of space
  42   // for objects successfully copied out of the regions (now dead space) plus waste at the
  43   // end of regions.
  44   size_t _failure_waste;
  45 
  46   virtual void reset() {
  47     PLABStats::reset();
  48     _region_end_waste = 0;
  49     _regions_filled = 0;




   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_G1_G1EVACSTATS_HPP
  26 #define SHARE_VM_gc_G1_G1EVACSTATS_HPP
  27 
  28 #include "gc/shared/plab.hpp"
  29 #include "memory/allocation.inline.hpp"
  30 #include "runtime/atomic.inline.hpp"
  31 
  32 // Records various memory allocation statistics gathered during evacuation.
  33 class G1EvacStats : public PLABStats {
  34  private:
  35   size_t _region_end_waste; // Number of words wasted due to skipping to the next region.
  36   uint   _regions_filled;   // Number of regions filled completely.
  37   size_t _direct_allocated; // Number of words allocated directly into the regions.
  38 
  39   // Number of words in live objects remaining in regions that ultimately suffered an
  40   // evacuation failure. This is used in the regions when the regions are made old regions.
  41   size_t _failure_used;
  42   // Number of words wasted in regions which failed evacuation. This is the sum of space
  43   // for objects successfully copied out of the regions (now dead space) plus waste at the
  44   // end of regions.
  45   size_t _failure_waste;
  46 
  47   virtual void reset() {
  48     PLABStats::reset();
  49     _region_end_waste = 0;
  50     _regions_filled = 0;


src/share/vm/gc/g1/g1EvacStats.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File