--- old/src/hotspot/share/oops/method.cpp 2019-07-01 16:23:32.000000000 +0200 +++ new/src/hotspot/share/oops/method.cpp 2019-07-01 16:23:27.000000000 +0200 @@ -505,7 +505,6 @@ 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. @@ -524,7 +523,6 @@ 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