mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8214728: Unnecessary InstanceKlass::cast at few places
Reviewed-by: lfoltan, jiangli, coleenp
This commit is contained in:
parent
3d0ccc7ec9
commit
4e935d302a
3 changed files with 3 additions and 4 deletions
|
@ -728,7 +728,7 @@ void InterpreterRuntime::resolve_get_put(JavaThread* thread, Bytecodes::Code byt
|
|||
// class is initialized. This is required so that access to the static
|
||||
// field will call the initialization function every time until the class
|
||||
// is completely initialized ala. in 2.17.5 in JVM Specification.
|
||||
InstanceKlass* klass = InstanceKlass::cast(info.field_holder());
|
||||
InstanceKlass* klass = info.field_holder();
|
||||
bool uninitialized_static = is_static && !klass->is_initialized();
|
||||
bool has_initialized_final_update = info.field_holder()->major_version() >= 53 &&
|
||||
info.has_initialized_final_update();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue