src/share/vm/gc/g1/g1EvacStats.hpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
8141570.02 Cdiff src/share/vm/gc/g1/g1EvacStats.hpp
src/share/vm/gc/g1/g1EvacStats.hpp
Print this page
*** 20,34 ****
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
! #ifndef SHARE_VM_gc_G1_G1EVACSTATS_HPP
! #define SHARE_VM_gc_G1_G1EVACSTATS_HPP
#include "gc/shared/plab.hpp"
- #include "runtime/atomic.hpp"
// Records various memory allocation statistics gathered during evacuation.
class G1EvacStats : public PLABStats {
private:
size_t _region_end_waste; // Number of words wasted due to skipping to the next region.
--- 20,33 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
! #ifndef SHARE_VM_GC_G1_G1EVACSTATS_HPP
! #define SHARE_VM_GC_G1_G1EVACSTATS_HPP
#include "gc/shared/plab.hpp"
// Records various memory allocation statistics gathered during evacuation.
class G1EvacStats : public PLABStats {
private:
size_t _region_end_waste; // Number of words wasted due to skipping to the next region.
*** 73,93 ****
// Amount of space in heapwords used in the failing regions when an evacuation failure happens.
size_t failure_used() const { return _failure_used; }
// Amount of space in heapwords wasted (unused) in the failing regions when an evacuation failure happens.
size_t failure_waste() const { return _failure_waste; }
! void add_direct_allocated(size_t value) {
! Atomic::add_ptr(value, &_direct_allocated);
! }
!
! void add_region_end_waste(size_t value) {
! Atomic::add_ptr(value, &_region_end_waste);
! Atomic::add_ptr(1, &_regions_filled);
! }
! void add_failure_used_and_waste(size_t used, size_t waste) {
! Atomic::add_ptr(used, &_failure_used);
! Atomic::add_ptr(waste, &_failure_waste);
! }
};
! #endif // SHARE_VM_gc_G1_G1EVACSTATS_HPP
--- 72,84 ----
// Amount of space in heapwords used in the failing regions when an evacuation failure happens.
size_t failure_used() const { return _failure_used; }
// Amount of space in heapwords wasted (unused) in the failing regions when an evacuation failure happens.
size_t failure_waste() const { return _failure_waste; }
! inline void add_direct_allocated(size_t value);
! inline void add_region_end_waste(size_t value);
! inline void add_failure_used_and_waste(size_t used, size_t waste);
! ~G1EvacStats();
};
! #endif // SHARE_VM_GC_G1_G1EVACSTATS_HPP
src/share/vm/gc/g1/g1EvacStats.hpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File