comparison src/share/vm/gc_implementation/parallelScavenge/asPSOldGen.cpp @ 11038:f99cd6e20ab1

8014851: UseAdaptiveGCBoundary is broken Reviewed-by: tschatzl, brutisso
author jmasa
date Tue, 25 Jun 2013 15:17:11 -0700
parents f95d63e2154a
children 46d7652b223c
comparison
equal deleted inserted replaced
11037:df7e1c0e3dc1 11038:f99cd6e20ab1
68 68
69 { 69 {
70 _virtual_space = vs; 70 _virtual_space = vs;
71 } 71 }
72 72
73 void ASPSOldGen::initialize_work(const char* perf_data_name, int level) {
74
75 PSOldGen::initialize_work(perf_data_name, level);
76
77 // The old gen can grow to gen_size_limit(). _reserve reflects only
78 // the current maximum that can be committed.
79 assert(_reserved.byte_size() <= gen_size_limit(), "Consistency check");
80
81 initialize_performance_counters(perf_data_name, level);
82 }
83
73 void ASPSOldGen::reset_after_change() { 84 void ASPSOldGen::reset_after_change() {
74 _reserved = MemRegion((HeapWord*)virtual_space()->low_boundary(), 85 _reserved = MemRegion((HeapWord*)virtual_space()->low_boundary(),
75 (HeapWord*)virtual_space()->high_boundary()); 86 (HeapWord*)virtual_space()->high_boundary());
76 post_resize(); 87 post_resize();
77 } 88 }