src/share/vm/memory/genCollectedHeap.cpp

changeset 3499
aa3d708d67c4
parent 3357
441e946dc1af
child 3711
b632e80fc9dc
     1.1 --- a/src/share/vm/memory/genCollectedHeap.cpp	Wed Feb 01 10:36:58 2012 +0100
     1.2 +++ b/src/share/vm/memory/genCollectedHeap.cpp	Wed Feb 01 07:59:01 2012 -0800
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2000, 2012, 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 @@ -479,11 +479,9 @@
    1.11  
    1.12    const size_t perm_prev_used = perm_gen()->used();
    1.13  
    1.14 -  if (PrintHeapAtGC) {
    1.15 -    Universe::print_heap_before_gc();
    1.16 -    if (Verbose) {
    1.17 -      gclog_or_tty->print_cr("GC Cause: %s", GCCause::to_string(gc_cause()));
    1.18 -    }
    1.19 +  print_heap_before_gc();
    1.20 +  if (Verbose) {
    1.21 +    gclog_or_tty->print_cr("GC Cause: %s", GCCause::to_string(gc_cause()));
    1.22    }
    1.23  
    1.24    {
    1.25 @@ -685,9 +683,7 @@
    1.26    AdaptiveSizePolicy* sp = gen_policy()->size_policy();
    1.27    AdaptiveSizePolicyOutput(sp, total_collections());
    1.28  
    1.29 -  if (PrintHeapAtGC) {
    1.30 -    Universe::print_heap_after_gc();
    1.31 -  }
    1.32 +  print_heap_after_gc();
    1.33  
    1.34  #ifdef TRACESPINNING
    1.35    ParallelTaskTerminator::print_termination_counts();

mercurial