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

changeset 1281
42d84bbbecf4
parent 1280
df6caf649ff7
child 1296
45d97a99715b
     1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp	Tue Jul 14 15:40:39 2009 -0700
     1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp	Wed Jul 15 12:22:59 2009 -0400
     1.3 @@ -1666,6 +1666,11 @@
     1.4    return result;
     1.5  }
     1.6  
     1.7 +size_t G1CollectedHeap::used_unlocked() const {
     1.8 +  size_t result = _summary_bytes_used;
     1.9 +  return result;
    1.10 +}
    1.11 +
    1.12  class SumUsedClosure: public HeapRegionClosure {
    1.13    size_t _used;
    1.14  public:
    1.15 @@ -2349,7 +2354,7 @@
    1.16  void G1CollectedHeap::print_on(outputStream* st, bool extended) const {
    1.17    st->print(" %-20s", "garbage-first heap");
    1.18    st->print(" total " SIZE_FORMAT "K, used " SIZE_FORMAT "K",
    1.19 -            capacity()/K, used()/K);
    1.20 +            capacity()/K, used_unlocked()/K);
    1.21    st->print(" [" INTPTR_FORMAT ", " INTPTR_FORMAT ", " INTPTR_FORMAT ")",
    1.22              _g1_storage.low_boundary(),
    1.23              _g1_storage.high(),

mercurial