Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/genCollectedHeap.cpp @ 4872:aa3d708d67c4
7141200: log some interesting information in ring buffers for crashes
Reviewed-by: kvn, jrose, kevinw, brutisso, twisti, jmasa
author | never |
---|---|
date | Wed, 01 Feb 2012 07:59:01 -0800 |
parents | 441e946dc1af |
children | b632e80fc9dc |
comparison
equal
deleted
inserted
replaced
4871:f067b4e0e04b | 4872:aa3d708d67c4 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
477 | 477 |
478 ClearedAllSoftRefs casr(do_clear_all_soft_refs, collector_policy()); | 478 ClearedAllSoftRefs casr(do_clear_all_soft_refs, collector_policy()); |
479 | 479 |
480 const size_t perm_prev_used = perm_gen()->used(); | 480 const size_t perm_prev_used = perm_gen()->used(); |
481 | 481 |
482 if (PrintHeapAtGC) { | 482 print_heap_before_gc(); |
483 Universe::print_heap_before_gc(); | 483 if (Verbose) { |
484 if (Verbose) { | 484 gclog_or_tty->print_cr("GC Cause: %s", GCCause::to_string(gc_cause())); |
485 gclog_or_tty->print_cr("GC Cause: %s", GCCause::to_string(gc_cause())); | |
486 } | |
487 } | 485 } |
488 | 486 |
489 { | 487 { |
490 FlagSetting fl(_is_gc_active, true); | 488 FlagSetting fl(_is_gc_active, true); |
491 | 489 |
683 } | 681 } |
684 | 682 |
685 AdaptiveSizePolicy* sp = gen_policy()->size_policy(); | 683 AdaptiveSizePolicy* sp = gen_policy()->size_policy(); |
686 AdaptiveSizePolicyOutput(sp, total_collections()); | 684 AdaptiveSizePolicyOutput(sp, total_collections()); |
687 | 685 |
688 if (PrintHeapAtGC) { | 686 print_heap_after_gc(); |
689 Universe::print_heap_after_gc(); | |
690 } | |
691 | 687 |
692 #ifdef TRACESPINNING | 688 #ifdef TRACESPINNING |
693 ParallelTaskTerminator::print_termination_counts(); | 689 ParallelTaskTerminator::print_termination_counts(); |
694 #endif | 690 #endif |
695 | 691 |