366 void finished_recalculating_age_indexes(bool is_survivors) {
367 if (is_survivors) {
368 _survivor_surv_rate_group->finished_recalculating_age_indexes();
369 } else {
370 _short_lived_surv_rate_group->finished_recalculating_age_indexes();
371 }
372 }
373
374 size_t young_list_target_length() const { return _young_list_target_length; }
375
376 bool should_allocate_mutator_region() const;
377
378 bool can_expand_young_list() const;
379
380 uint young_list_max_length() const {
381 return _young_list_max_length;
382 }
383
384 bool adaptive_young_list_length() const;
385
386 bool should_process_references() const {
387 return true;
388 }
389
390 void transfer_survivors_to_cset(const G1SurvivorRegions* survivors);
391
392 private:
393 //
394 // Survivor regions policy.
395 //
396
397 // Current tenuring threshold, set to 0 if the collector reaches the
398 // maximum amount of survivors regions.
399 uint _tenuring_threshold;
400
401 // The limit on the number of regions allocated for survivors.
402 uint _max_survivor_regions;
403
404 AgeTable _survivors_age_table;
405
406 size_t desired_survivor_size() const;
407 public:
408 uint tenuring_threshold() const { return _tenuring_threshold; }
409
|
366 void finished_recalculating_age_indexes(bool is_survivors) {
367 if (is_survivors) {
368 _survivor_surv_rate_group->finished_recalculating_age_indexes();
369 } else {
370 _short_lived_surv_rate_group->finished_recalculating_age_indexes();
371 }
372 }
373
374 size_t young_list_target_length() const { return _young_list_target_length; }
375
376 bool should_allocate_mutator_region() const;
377
378 bool can_expand_young_list() const;
379
380 uint young_list_max_length() const {
381 return _young_list_max_length;
382 }
383
384 bool adaptive_young_list_length() const;
385
386 void transfer_survivors_to_cset(const G1SurvivorRegions* survivors);
387
388 private:
389 //
390 // Survivor regions policy.
391 //
392
393 // Current tenuring threshold, set to 0 if the collector reaches the
394 // maximum amount of survivors regions.
395 uint _tenuring_threshold;
396
397 // The limit on the number of regions allocated for survivors.
398 uint _max_survivor_regions;
399
400 AgeTable _survivors_age_table;
401
402 size_t desired_survivor_size() const;
403 public:
404 uint tenuring_threshold() const { return _tenuring_threshold; }
405
|