< prev index next >

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

Print this page
rev 52572 : JDK-8212657: Implementation of JDK-8204089 Promptly Return Unused Committed Memory from G1
Summary: Issue optional, default enabled, concurrent cycles when the VM is idle to reclaim unused internal and Java heap memory.
Reviewed-by:
Contributed-by: Rodrigo Bruno <rbruno@gsd.inesc-id.pt>, Ruslan Synytsky <rs@jelastic.com>, Thomas Schatzl <thomas.schatzl@oracle.com>
rev 52573 : [mq]: 8212657-stefanj-review

*** 41,58 **** // increase the young gen size to keep pause time length goal. class G1YoungRemSetSamplingThread: public ConcurrentGCThread { private: Monitor _monitor; void sample_young_list_rs_lengths(); void run_service(); void stop_service(); void sleep_before_next_cycle(); ! double _vtime_accum; // Accumulated virtual time. public: G1YoungRemSetSamplingThread(); double vtime_accum() { return _vtime_accum; } }; --- 41,64 ---- // increase the young gen size to keep pause time length goal. class G1YoungRemSetSamplingThread: public ConcurrentGCThread { private: Monitor _monitor; + double _last_periodic_gc_attempt_s; + + double _vtime_accum; // Accumulated virtual time. + void sample_young_list_rs_lengths(); void run_service(); + void check_for_periodic_gc(); + void stop_service(); void sleep_before_next_cycle(); ! bool should_start_periodic_gc(); public: G1YoungRemSetSamplingThread(); double vtime_accum() { return _vtime_accum; } };
< prev index next >