8223213: Implement fast class initialization checks on x86-64

Reviewed-by: kvn, redestad, dholmes, mdoerr, coleenp
This commit is contained in:
Vladimir Ivanov 2019-05-30 13:39:13 +03:00
parent ba723fbdfb
commit e72bfe15ad
33 changed files with 734 additions and 44 deletions

View file

@ -704,6 +704,10 @@ bool Method::is_object_initializer() const {
return name() == vmSymbols::object_initializer_name();
}
bool Method::needs_clinit_barrier() const {
return is_static() && !method_holder()->is_initialized();
}
objArrayHandle Method::resolved_checked_exceptions_impl(Method* method, TRAPS) {
int length = method->checked_exceptions_length();
if (length == 0) { // common case