src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp

changeset 2504
c33825b68624
parent 2472
0fa27f37d4d4
child 2645
c93aa6caa02f
     1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp	Tue Feb 01 14:05:46 2011 +0100
     1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp	Wed Feb 02 10:41:20 2011 -0800
     1.3 @@ -2011,7 +2011,7 @@
     1.4      // space, whichever is smaller, bounded below by a minimum
     1.5      // expansion (unless that's all that's left.)
     1.6      const size_t min_expand_bytes = 1*M;
     1.7 -    size_t reserved_bytes = _g1->g1_reserved_obj_bytes();
     1.8 +    size_t reserved_bytes = _g1->max_capacity();
     1.9      size_t committed_bytes = _g1->capacity();
    1.10      size_t uncommitted_bytes = reserved_bytes - committed_bytes;
    1.11      size_t expand_bytes;

mercurial