< prev index next >

src/hotspot/share/gc/g1/g1CollectionSet.cpp

Print this page

 55   _candidates(NULL),
 56   _eden_region_length(0),
 57   _survivor_region_length(0),
 58   _old_region_length(0),
 59   _collection_set_regions(NULL),
 60   _collection_set_cur_length(0),
 61   _collection_set_max_length(0),
 62   _num_optional_regions(0),
 63   _bytes_used_before(0),
 64   _recorded_rs_length(0),
 65   _inc_build_state(Inactive),
 66   _inc_part_start(0),
 67   _inc_bytes_used_before(0),
 68   _inc_recorded_rs_length(0),
 69   _inc_recorded_rs_length_diff(0),
 70   _inc_predicted_elapsed_time_ms(0.0),
 71   _inc_predicted_elapsed_time_ms_diff(0.0) {
 72 }
 73 
 74 G1CollectionSet::~G1CollectionSet() {
 75   if (_collection_set_regions != NULL) {
 76     FREE_C_HEAP_ARRAY(uint, _collection_set_regions);
 77   }
 78   free_optional_regions();
 79   clear_candidates();
 80 }
 81 
 82 void G1CollectionSet::init_region_lengths(uint eden_cset_region_length,
 83                                           uint survivor_cset_region_length) {
 84   assert_at_safepoint_on_vm_thread();
 85 
 86   _eden_region_length     = eden_cset_region_length;
 87   _survivor_region_length = survivor_cset_region_length;
 88 
 89   assert((size_t) young_region_length() == _collection_set_cur_length,
 90          "Young region length %u should match collection set length " SIZE_FORMAT, young_region_length(), _collection_set_cur_length);
 91 
 92   _old_region_length = 0;
 93   free_optional_regions();
 94 }
 95 
 96 void G1CollectionSet::initialize(uint max_region_length) {
 97   guarantee(_collection_set_regions == NULL, "Must only initialize once.");

 55   _candidates(NULL),
 56   _eden_region_length(0),
 57   _survivor_region_length(0),
 58   _old_region_length(0),
 59   _collection_set_regions(NULL),
 60   _collection_set_cur_length(0),
 61   _collection_set_max_length(0),
 62   _num_optional_regions(0),
 63   _bytes_used_before(0),
 64   _recorded_rs_length(0),
 65   _inc_build_state(Inactive),
 66   _inc_part_start(0),
 67   _inc_bytes_used_before(0),
 68   _inc_recorded_rs_length(0),
 69   _inc_recorded_rs_length_diff(0),
 70   _inc_predicted_elapsed_time_ms(0.0),
 71   _inc_predicted_elapsed_time_ms_diff(0.0) {
 72 }
 73 
 74 G1CollectionSet::~G1CollectionSet() {
 75   FREE_C_HEAP_ARRAY(uint, _collection_set_regions);


 76   free_optional_regions();
 77   clear_candidates();
 78 }
 79 
 80 void G1CollectionSet::init_region_lengths(uint eden_cset_region_length,
 81                                           uint survivor_cset_region_length) {
 82   assert_at_safepoint_on_vm_thread();
 83 
 84   _eden_region_length     = eden_cset_region_length;
 85   _survivor_region_length = survivor_cset_region_length;
 86 
 87   assert((size_t) young_region_length() == _collection_set_cur_length,
 88          "Young region length %u should match collection set length " SIZE_FORMAT, young_region_length(), _collection_set_cur_length);
 89 
 90   _old_region_length = 0;
 91   free_optional_regions();
 92 }
 93 
 94 void G1CollectionSet::initialize(uint max_region_length) {
 95   guarantee(_collection_set_regions == NULL, "Must only initialize once.");
< prev index next >