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

changeset 2504
c33825b68624
parent 2314
f95d63e2154a
child 2646
04d1138b4cce
     1.1 --- a/src/share/vm/gc_implementation/g1/concurrentG1Refine.cpp	Tue Feb 01 14:05:46 2011 +0100
     1.2 +++ b/src/share/vm/gc_implementation/g1/concurrentG1Refine.cpp	Wed Feb 02 10:41:20 2011 -0800
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2001, 2011, Oracle and/or its affiliates. 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 @@ -99,7 +99,7 @@
    1.11    if (G1ConcRSLogCacheSize > 0) {
    1.12      _g1h = G1CollectedHeap::heap();
    1.13      _max_n_card_counts =
    1.14 -      (unsigned) (_g1h->g1_reserved_obj_bytes() >> CardTableModRefBS::card_shift);
    1.15 +      (unsigned) (_g1h->max_capacity() >> CardTableModRefBS::card_shift);
    1.16  
    1.17      size_t max_card_num = ((size_t)1 << (sizeof(unsigned)*BitsPerByte-1)) - 1;
    1.18      guarantee(_max_n_card_counts < max_card_num, "card_num representation");

mercurial