agent/src/share/classes/sun/jvm/hotspot/types/TypeDataBase.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/agent/src/share/classes/sun/jvm/hotspot/types/TypeDataBase.java	Fri Sep  9 14:16:03 2011
--- new/agent/src/share/classes/sun/jvm/hotspot/types/TypeDataBase.java	Fri Sep  9 14:16:03 2011

*** 1,7 **** --- 1,7 ---- /* ! * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved. ! * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 118,127 **** --- 118,132 ---- addressTypeIsEqualToType for all known types. Returns a matching Type for the given address if one was found, or null if none was found. */ public Type guessTypeForAddress(Address addr); + /** Helper routine for guessing the most derived type of a + polymorphic C++ object. Requires a baseType that must be virtual + so that lookup can be performed without false positives */ + public Type findDynamicTypeForAddress(Address addr, Type baseType); + /** Returns an Iterator over the Types in the database. */ public Iterator getTypes(); /** Returns an Iterator over the String names of the integer constants in the database. */

agent/src/share/classes/sun/jvm/hotspot/types/TypeDataBase.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File