diff src/share/vm/ci/ciField.cpp @ 1459:a8f9f091c219

Don't mess with VMToNative transitions..
author Thomas Wuerthinger <wuerthinger@ssw.jku.at>
date Sat, 13 Nov 2010 18:28:48 +0100
parents 73b22f919c34
children 944071972cd9
line wrap: on
line diff
--- a/src/share/vm/ci/ciField.cpp	Fri Nov 12 20:57:08 2010 +0100
+++ b/src/share/vm/ci/ciField.cpp	Sat Nov 13 18:28:48 2010 +0100
@@ -294,15 +294,19 @@
   return type;
 }
 
+bool ciField::will_link(ciInstanceKlass* accessing_klass,
+                        Bytecodes::Code bc) {
+  VM_ENTRY_MARK;
+  will_link_from_vm(accessing_klass, bc);
+}
 
 // ------------------------------------------------------------------
 // ciField::will_link
 //
 // Can a specific access to this field be made without causing
 // link errors?
-bool ciField::will_link(ciInstanceKlass* accessing_klass,
+bool ciField::will_link_from_vm(ciInstanceKlass* accessing_klass,
                         Bytecodes::Code bc) {
-  VM_ENTRY_MARK;
   if (_offset == -1) {
     // at creation we couldn't link to our holder so we need to
     // maintain that stance, otherwise there's no safe way to use this