src/share/vm/interpreter/interpreter.cpp
Print this page
@@ -298,11 +298,15 @@
case vmIntrinsics::_Reference_get:
return java_lang_ref_reference_get;
}
// Accessor method?
- if (m->is_accessor()) {
+ if (m->is_simple_accessor()) {
+ // TODO: We should have used is_accessor() above, but fast accessors in Zero expects only getters
+ // with a|i_return. See CppInterpreter::accessor_entry in cppInterpreter_zero.cpp. Since
+ // UseFastAccessorMethods is apparently listed as obsolete flag, we may want to remove that part
+ // of Zero, and then "accessor" entries from the interpreter completely.
assert(m->size_of_parameters() == 1, "fast code for accessors assumes parameter size = 1");
return accessor;
}
// Note: for now: zero locals for all non-empty methods