< prev index next >
src/share/vm/gc/g1/g1CollectedHeap.hpp
Print this page
@@ -288,12 +288,11 @@
double verify(bool guard, const char* msg);
void verify_before_gc();
void verify_after_gc();
- void log_gc_header();
- void log_gc_footer(double pause_time_sec);
+ void log_gc_footer(double pause_time_counter);
void trace_heap(GCWhen::Type when, const GCTracer* tracer);
void process_weak_jni_handles();
@@ -699,12 +698,12 @@
// (Rounds down to a HeapRegion boundary.)
virtual void shrink(size_t expand_bytes);
void shrink_helper(size_t expand_bytes);
#if TASKQUEUE_STATS
- static void print_taskqueue_stats_hdr(outputStream* const st = gclog_or_tty);
- void print_taskqueue_stats(outputStream* const st = gclog_or_tty) const;
+ static void print_taskqueue_stats_hdr(outputStream* const st);
+ void print_taskqueue_stats() const;
void reset_taskqueue_stats();
#endif // TASKQUEUE_STATS
// Schedule the VM operation that will do an evacuation pause to
// satisfy an allocation request of word_size. *succeeded will
@@ -733,14 +732,13 @@
void pre_evacuate_collection_set();
void post_evacuate_collection_set(EvacuationInfo& evacuation_info, G1ParScanThreadStateSet* pss);
// Print the header for the per-thread termination statistics.
- static void print_termination_stats_hdr(outputStream* const st);
+ static void print_termination_stats_hdr();
// Print actual per-thread termination statistics.
- void print_termination_stats(outputStream* const st,
- uint worker_id,
+ void print_termination_stats(uint worker_id,
double elapsed_ms,
double strong_roots_ms,
double term_ms,
size_t term_attempts,
size_t alloc_buffer_waste,
@@ -963,10 +961,14 @@
virtual Name kind() const {
return CollectedHeap::G1CollectedHeap;
}
+ virtual const char* name() const {
+ return "G1";
+ }
+
const G1CollectorState* collector_state() const { return &_collector_state; }
G1CollectorState* collector_state() { return &_collector_state; }
// The current policy object for the collector.
G1CollectorPolicy* g1_policy() const { return _g1_policy; }
@@ -1360,10 +1362,14 @@
void set_region_short_lived_locked(HeapRegion* hr);
// add appropriate methods for any other surv rate groups
YoungList* young_list() const { return _young_list; }
+ uint old_regions_count() const { return _old_set.length(); }
+
+ uint humongous_regions_count() const { return _humongous_set.length(); }
+
// debugging
bool check_young_list_well_formed() {
return _young_list->check_list_well_formed();
}
@@ -1477,14 +1483,11 @@
// vo == UseNextMarking, which is to verify the "next" marking
// information at the end of remark.
// Currently there is only one place where this is called with
// vo == UseMarkWord, which is to verify the marking during a
// full GC.
- void verify(bool silent, VerifyOption vo);
-
- // Override; it uses the "prev" marking information
- virtual void verify(bool silent);
+ void verify(VerifyOption vo);
// The methods below are here for convenience and dispatch the
// appropriate method depending on value of the given VerifyOption
// parameter. The values for that parameter, and their meanings,
// are the same as those above.
< prev index next >