Mercurial > hg > truffle
comparison src/share/vm/utilities/debug.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 | 436b4a3231bf |
children | 09d00c18e323 |
comparison
equal
deleted
inserted
replaced
4871:f067b4e0e04b | 4872:aa3d708d67c4 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 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. |
599 Command c("flush"); | 599 Command c("flush"); |
600 tty->flush(); | 600 tty->flush(); |
601 } | 601 } |
602 | 602 |
603 | 603 |
604 extern "C" void events() { | |
605 Command c("events"); | |
606 Events::print_last(tty, 50); | |
607 } | |
608 | |
609 | |
610 extern "C" void nevents(int n) { | |
611 Command c("events"); | |
612 Events::print_last(tty, n); | |
613 } | |
614 | |
615 | |
616 // Given a heap address that was valid before the most recent GC, if | 604 // Given a heap address that was valid before the most recent GC, if |
617 // the oop that used to contain it is still live, prints the new | 605 // the oop that used to contain it is still live, prints the new |
618 // location of the oop and the address. Useful for tracking down | 606 // location of the oop and the address. Useful for tracking down |
619 // certain kinds of naked oop and oop map bugs. | 607 // certain kinds of naked oop and oop map bugs. |
620 extern "C" void pnl(intptr_t old_heap_addr) { | 608 extern "C" void pnl(intptr_t old_heap_addr) { |