comparison src/share/vm/code/compiledIC.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 1d1603768966
children 33df1aeaebbf da91efe96a93
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.
163 ResourceMark rm; 163 ResourceMark rm;
164 tty->print_cr ("IC@" INTPTR_FORMAT ": to megamorphic %s entry: " INTPTR_FORMAT, 164 tty->print_cr ("IC@" INTPTR_FORMAT ": to megamorphic %s entry: " INTPTR_FORMAT,
165 instruction_address(), method->print_value_string(), entry); 165 instruction_address(), method->print_value_string(), entry);
166 } 166 }
167 167
168 Events::log("compiledIC " INTPTR_FORMAT " --> megamorphic " INTPTR_FORMAT, this, (address)method());
169 // We can't check this anymore. With lazy deopt we could have already 168 // We can't check this anymore. With lazy deopt we could have already
170 // cleaned this IC entry before we even return. This is possible if 169 // cleaned this IC entry before we even return. This is possible if
171 // we ran out of space in the inline cache buffer trying to do the 170 // we ran out of space in the inline cache buffer trying to do the
172 // set_next and we safepointed to free up space. This is a benign 171 // set_next and we safepointed to free up space. This is a benign
173 // race because the IC entry was complete when we safepointed so 172 // race because the IC entry was complete when we safepointed so