src/share/vm/ci/ciMemberName.cpp

Mon, 07 Oct 2013 10:41:56 -0700

author
twisti
date
Mon, 07 Oct 2013 10:41:56 -0700
changeset 5907
c775af091fe9
parent 4037
da91efe96a93
child 6876
710a3c8b516e
permissions
-rw-r--r--

8025566: EXCEPTION_ACCESS_VIOLATION in compiled by C1 String.valueOf method
Reviewed-by: kvn

twisti@3969 1 /*
twisti@3969 2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
twisti@3969 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
twisti@3969 4 *
twisti@3969 5 * This code is free software; you can redistribute it and/or modify it
twisti@3969 6 * under the terms of the GNU General Public License version 2 only, as
twisti@3969 7 * published by the Free Software Foundation.
twisti@3969 8 *
twisti@3969 9 * This code is distributed in the hope that it will be useful, but WITHOUT
twisti@3969 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
twisti@3969 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
twisti@3969 12 * version 2 for more details (a copy is included in the LICENSE file that
twisti@3969 13 * accompanied this code).
twisti@3969 14 *
twisti@3969 15 * You should have received a copy of the GNU General Public License version
twisti@3969 16 * 2 along with this work; if not, write to the Free Software Foundation,
twisti@3969 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
twisti@3969 18 *
twisti@3969 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
twisti@3969 20 * or visit www.oracle.com if you need additional information or have any
twisti@3969 21 * questions.
twisti@3969 22 *
twisti@3969 23 */
twisti@3969 24
twisti@3969 25 #include "precompiled.hpp"
twisti@3969 26 #include "ci/ciClassList.hpp"
twisti@3969 27 #include "ci/ciMemberName.hpp"
twisti@3969 28 #include "ci/ciUtilities.hpp"
twisti@3969 29 #include "classfile/javaClasses.hpp"
twisti@3969 30
twisti@3969 31 // ------------------------------------------------------------------
twisti@3969 32 // ciMemberName::get_vmtarget
twisti@3969 33 //
twisti@3969 34 // Return: MN.vmtarget
twisti@3969 35 ciMethod* ciMemberName::get_vmtarget() const {
twisti@3969 36 VM_ENTRY_MARK;
coleenp@4037 37 // FIXME: Share code with ciMethodHandle::get_vmtarget
coleenp@4037 38 Metadata* vmtarget = java_lang_invoke_MemberName::vmtarget(get_oop());
coleenp@4037 39 if (vmtarget->is_method())
coleenp@4037 40 return CURRENT_ENV->get_method((Method*) vmtarget);
coleenp@4037 41 // FIXME: What if the vmtarget is a Klass?
coleenp@4037 42 assert(false, "");
coleenp@4037 43 return NULL;
twisti@3969 44 }

mercurial