src/share/vm/gc_implementation/g1/survRateGroup.hpp

changeset 1829
1316cec51b4d
parent 1014
0fbdb4381b99
child 1907
c18cbe5936b8
     1.1 --- a/src/share/vm/gc_implementation/g1/survRateGroup.hpp	Mon Apr 19 05:40:21 2010 -0700
     1.2 +++ b/src/share/vm/gc_implementation/g1/survRateGroup.hpp	Thu Apr 22 10:02:38 2010 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright 2001-2009 Sun Microsystems, Inc.  All Rights Reserved.
     1.6 + * Copyright 2001-2010 Sun Microsystems, Inc.  All Rights Reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -41,7 +41,6 @@
    1.11  
    1.12    int _all_regions_allocated;
    1.13    size_t _region_num;
    1.14 -  size_t _scan_only_prefix;
    1.15    size_t _setup_seq_num;
    1.16  
    1.17  public:
    1.18 @@ -51,13 +50,11 @@
    1.19    void reset();
    1.20    void start_adding_regions();
    1.21    void stop_adding_regions();
    1.22 -  void record_scan_only_prefix(size_t scan_only_prefix);
    1.23    void record_surviving_words(int age_in_group, size_t surv_words);
    1.24    void all_surviving_words_recorded(bool propagate);
    1.25    const char* name() { return _name; }
    1.26  
    1.27    size_t region_num() { return _region_num; }
    1.28 -  size_t scan_only_length() { return _scan_only_prefix; }
    1.29    double accum_surv_rate_pred(int age) {
    1.30      assert(age >= 0, "must be");
    1.31      if ((size_t)age < _stats_arrays_length)
    1.32 @@ -82,17 +79,12 @@
    1.33  
    1.34    int next_age_index();
    1.35    int age_in_group(int age_index) {
    1.36 -    int ret = (int) (_all_regions_allocated -  age_index);
    1.37 +    int ret = (int) (_all_regions_allocated - age_index);
    1.38      assert( ret >= 0, "invariant" );
    1.39      return ret;
    1.40    }
    1.41 -  int recalculate_age_index(int age_index) {
    1.42 -    int new_age_index = (int) _scan_only_prefix - age_in_group(age_index);
    1.43 -    guarantee( new_age_index >= 0, "invariant" );
    1.44 -    return new_age_index;
    1.45 -  }
    1.46    void finished_recalculating_age_indexes() {
    1.47 -    _all_regions_allocated = (int) _scan_only_prefix;
    1.48 +    _all_regions_allocated = 0;
    1.49    }
    1.50  
    1.51  #ifndef PRODUCT

mercurial