agent/src/os/bsd/symtab.h

Mon, 28 Jul 2014 15:06:38 -0700

author
fzhinkin
date
Mon, 28 Jul 2014 15:06:38 -0700
changeset 6997
dbb05f6d93c4
parent 4750
39432a1cefdd
child 6876
710a3c8b516e
permissions
-rw-r--r--

8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
Summary: call rtm_deopt() only if there were no compilation bailouts before.
Reviewed-by: kvn

never@3156 1 /*
minqi@4750 2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
never@3156 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
never@3156 4 *
never@3156 5 * This code is free software; you can redistribute it and/or modify it
never@3156 6 * under the terms of the GNU General Public License version 2 only, as
never@3156 7 * published by the Free Software Foundation.
never@3156 8 *
never@3156 9 * This code is distributed in the hope that it will be useful, but WITHOUT
never@3156 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
never@3156 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
never@3156 12 * version 2 for more details (a copy is included in the LICENSE file that
never@3156 13 * accompanied this code).
never@3156 14 *
never@3156 15 * You should have received a copy of the GNU General Public License version
never@3156 16 * 2 along with this work; if not, write to the Free Software Foundation,
never@3156 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
never@3156 18 *
never@3156 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
never@3156 20 * or visit www.oracle.com if you need additional information or have any
never@3156 21 * questions.
never@3156 22 *
never@3156 23 */
never@3156 24
never@3156 25 #ifndef _SYMTAB_H_
never@3156 26 #define _SYMTAB_H_
never@3156 27
never@3156 28 #include <stdint.h>
never@3156 29
minqi@4750 30 // interface to manage ELF or MachO symbol tables
never@3156 31
never@3156 32 struct symtab;
never@3156 33
minqi@4750 34 // build symbol table for a given ELF or MachO file escriptor
never@3156 35 struct symtab* build_symtab(int fd);
never@3156 36
never@3156 37 // destroy the symbol table
never@3156 38 void destroy_symtab(struct symtab* symtab);
never@3156 39
never@3156 40 // search for symbol in the given symbol table. Adds offset
never@3156 41 // to the base uintptr_t supplied. Returns NULL if not found.
never@3156 42 uintptr_t search_symbol(struct symtab* symtab, uintptr_t base,
never@3156 43 const char *sym_name, int *sym_size);
never@3156 44
never@3156 45 // look for nearest symbol for a given offset (not address - base
never@3156 46 // subtraction done by caller
never@3156 47 const char* nearest_symbol(struct symtab* symtab, uintptr_t offset,
never@3156 48 uintptr_t* poffset);
never@3156 49
never@3156 50 #endif /*_SYMTAB_H_*/

mercurial