< prev index next >
src/hotspot/share/oops/method.cpp
Print this page
@@ -503,11 +503,10 @@
BasicType Method::result_type() const {
ResultTypeFinder rtf(signature());
return rtf.type();
}
-#ifdef ASSERT
// ValueKlass the method is declared to return. This must not
// safepoint as it is called with references live on the stack at
// locations the GC is unaware of.
ValueKlass* Method::returned_value_type(Thread* thread) const {
SignatureStream ss(signature());
@@ -522,11 +521,10 @@
k = ss.as_klass(class_loader, protection_domain, SignatureStream::ReturnNull, thread);
}
assert(k != NULL && !thread->has_pending_exception(), "can't resolve klass");
return ValueKlass::cast(k);
}
-#endif
bool Method::is_empty_method() const {
return code_size() == 1
&& *code_base() == Bytecodes::_return;
}
< prev index next >