Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/parallelScavenge/psScavenge.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 | bca17e38de00 |
children | 95f6641e38e0 |
comparison
equal
deleted
inserted
replaced
4871:f067b4e0e04b | 4872:aa3d708d67c4 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2002, 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. |
293 if (ZapUnusedHeapArea) { | 293 if (ZapUnusedHeapArea) { |
294 // Save information needed to minimize mangling | 294 // Save information needed to minimize mangling |
295 heap->record_gen_tops_before_GC(); | 295 heap->record_gen_tops_before_GC(); |
296 } | 296 } |
297 | 297 |
298 if (PrintHeapAtGC) { | 298 heap->print_heap_before_gc(); |
299 Universe::print_heap_before_gc(); | |
300 } | |
301 | 299 |
302 assert(!NeverTenure || _tenuring_threshold == markOopDesc::max_age + 1, "Sanity"); | 300 assert(!NeverTenure || _tenuring_threshold == markOopDesc::max_age + 1, "Sanity"); |
303 assert(!AlwaysTenure || _tenuring_threshold == 0, "Sanity"); | 301 assert(!AlwaysTenure || _tenuring_threshold == 0, "Sanity"); |
304 | 302 |
305 size_t prev_used = heap->used(); | 303 size_t prev_used = heap->used(); |
641 HandleMark hm; // Discard invalid handles created during verification | 639 HandleMark hm; // Discard invalid handles created during verification |
642 gclog_or_tty->print(" VerifyAfterGC:"); | 640 gclog_or_tty->print(" VerifyAfterGC:"); |
643 Universe::verify(false); | 641 Universe::verify(false); |
644 } | 642 } |
645 | 643 |
646 if (PrintHeapAtGC) { | 644 heap->print_heap_after_gc(); |
647 Universe::print_heap_after_gc(); | |
648 } | |
649 | 645 |
650 if (ZapUnusedHeapArea) { | 646 if (ZapUnusedHeapArea) { |
651 young_gen->eden_space()->check_mangled_unused_area_complete(); | 647 young_gen->eden_space()->check_mangled_unused_area_complete(); |
652 young_gen->from_space()->check_mangled_unused_area_complete(); | 648 young_gen->from_space()->check_mangled_unused_area_complete(); |
653 young_gen->to_space()->check_mangled_unused_area_complete(); | 649 young_gen->to_space()->check_mangled_unused_area_complete(); |