< prev index next >

src/hotspot/share/gc/g1/g1OldGenAllocationTracker.hpp

Print this page
rev 60542 : [mq]: 8245511-rev.3

*** 43,54 **** size_t _humongous_bytes_after_penultimate_gc; size_t _allocated_bytes_since_last_gc; size_t _allocated_humongous_bytes_since_last_gc; - friend class G1AdaptiveIHOPControl; - public: G1OldGenAllocationTracker(); // Add the given number of bytes to the total number of allocated bytes in the old gen. void add_allocated_bytes_since_last_gc(size_t bytes) { _allocated_bytes_since_last_gc += bytes; } --- 43,52 ----
*** 69,76 **** --- 67,82 ---- size_t last_period_old_bytes() const { return _last_period_old_bytes; } // Reset stats after a collection. void reset_after_gc(size_t humongous_bytes_after_gc); + + // This is used by Adaptive IHOP to sample the old gen allocation rate. + // Different from the regular old gen allocation rate, this method considers the + // humongous objects that can be reclaimed early by young GCs. Since we cannot + // track the life cycle of individual humongous objects, we assume that such + // objects were all newly allocated and not survivors, unless more were + // reclaimed than allocated. + size_t last_period_net_survived_old_bytes() const; }; #endif // SHARE_VM_GC_G1_G1OLDGENALLOCATIONTRACKER_HPP \ No newline at end of file
< prev index next >