mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8223213: Implement fast class initialization checks on x86-64
Reviewed-by: kvn, redestad, dholmes, mdoerr, coleenp
This commit is contained in:
parent
ba723fbdfb
commit
e72bfe15ad
33 changed files with 734 additions and 44 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue