src/share/vm/gc/g1/g1EvacStats.hpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/src/share/vm/gc/g1/g1EvacStats.hpp Mon Nov 16 17:03:22 2015
--- new/src/share/vm/gc/g1/g1EvacStats.hpp Mon Nov 16 17:03:21 2015
*** 20,34 ****
--- 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
! #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.
*** 73,93 ****
--- 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; }
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);
}
+ 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);
void add_failure_used_and_waste(size_t used, size_t waste) {
Atomic::add_ptr(used, &_failure_used);
Atomic::add_ptr(waste, &_failure_waste);
}
+ ~G1EvacStats();
};
! #endif // SHARE_VM_gc_G1_G1EVACSTATS_HPP
! #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