src/share/vm/memory/defNewGeneration.cpp

changeset 1822
0bfd3fb24150
parent 1580
e018e6884bd8
child 1907
c18cbe5936b8
     1.1 --- a/src/share/vm/memory/defNewGeneration.cpp	Fri Apr 09 13:08:34 2010 -0400
     1.2 +++ b/src/share/vm/memory/defNewGeneration.cpp	Tue Apr 13 13:52:10 2010 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright 2001-2008 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 @@ -594,6 +594,10 @@
    1.11      _tenuring_threshold =
    1.12        age_table()->compute_tenuring_threshold(to()->capacity()/HeapWordSize);
    1.13  
    1.14 +    // A successful scavenge should restart the GC time limit count which is
    1.15 +    // for full GC's.
    1.16 +    AdaptiveSizePolicy* size_policy = gch->gen_policy()->size_policy();
    1.17 +    size_policy->reset_gc_overhead_limit_count();
    1.18      if (PrintGC && !PrintGCDetails) {
    1.19        gch->print_heap_change(gch_prev_used);
    1.20      }

mercurial