src/share/vm/interpreter/interpreter.cpp
Print this page
@@ -298,11 +298,14 @@
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 expect only getters
+ // with a|i_return. See CppInterpreter::accessor_entry in cppInterpreter_zero.cpp. This should be
+ // fixed in Zero, then the call above updated to ::is_accessor, and ::is_simple_accessor removed.
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