11/*
2- * Copyright (c) 2008, 2024 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2008, 2025 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
@@ -579,7 +579,7 @@ void TemplateInterpreterGenerator::lock_method() {
579579
580580 #ifdef ASSERT
581581 { Label L;
582- __ ldr_u32 (Rtemp, Address (Rmethod, Method::access_flags_offset ()));
582+ __ ldrh (Rtemp, Address (Rmethod, Method::access_flags_offset ()));
583583 __ tbnz (Rtemp, JVM_ACC_SYNCHRONIZED_BIT, L);
584584 __ stop (" method doesn't need synchronization" );
585585 __ bind (L);
@@ -588,7 +588,7 @@ void TemplateInterpreterGenerator::lock_method() {
588588
589589 // get synchronization object
590590 { Label done;
591- __ ldr_u32 (Rtemp, Address (Rmethod, Method::access_flags_offset ()));
591+ __ ldrh (Rtemp, Address (Rmethod, Method::access_flags_offset ()));
592592 __ tst (Rtemp, JVM_ACC_STATIC);
593593 __ ldr (R0, Address (Rlocals, Interpreter::local_offset_in_bytes (0 )), eq); // get receiver (assume this is frequent case)
594594 __ b (done, eq);
@@ -851,7 +851,7 @@ address TemplateInterpreterGenerator::generate_native_entry(bool synchronized) {
851851
852852 // make sure method is native & not abstract
853853#ifdef ASSERT
854- __ ldr_u32 (Rtemp, Address (Rmethod, Method::access_flags_offset ()));
854+ __ ldrh (Rtemp, Address (Rmethod, Method::access_flags_offset ()));
855855 {
856856 Label L;
857857 __ tbnz (Rtemp, JVM_ACC_NATIVE_BIT, L);
@@ -893,7 +893,7 @@ address TemplateInterpreterGenerator::generate_native_entry(bool synchronized) {
893893 // no synchronization necessary
894894#ifdef ASSERT
895895 { Label L;
896- __ ldr_u32 (Rtemp, Address (Rmethod, Method::access_flags_offset ()));
896+ __ ldrh (Rtemp, Address (Rmethod, Method::access_flags_offset ()));
897897 __ tbz (Rtemp, JVM_ACC_SYNCHRONIZED_BIT, L);
898898 __ stop (" method needs synchronization" );
899899 __ bind (L);
@@ -975,7 +975,7 @@ address TemplateInterpreterGenerator::generate_native_entry(bool synchronized) {
975975 // Pass JNIEnv and mirror for static methods
976976 {
977977 Label L;
978- __ ldr_u32 (Rtemp, Address (Rmethod, Method::access_flags_offset ()));
978+ __ ldrh (Rtemp, Address (Rmethod, Method::access_flags_offset ()));
979979 __ add (R0, Rthread, in_bytes (JavaThread::jni_environment_offset ()));
980980 __ tbz (Rtemp, JVM_ACC_STATIC_BIT, L);
981981 __ load_mirror (Rtemp, Rmethod, Rtemp);
@@ -1204,7 +1204,7 @@ address TemplateInterpreterGenerator::generate_normal_entry(bool synchronized) {
12041204
12051205 // make sure method is not native & not abstract
12061206#ifdef ASSERT
1207- __ ldr_u32 (Rtemp, Address (Rmethod, Method::access_flags_offset ()));
1207+ __ ldrh (Rtemp, Address (Rmethod, Method::access_flags_offset ()));
12081208 {
12091209 Label L;
12101210 __ tbz (Rtemp, JVM_ACC_NATIVE_BIT, L);
@@ -1249,7 +1249,7 @@ address TemplateInterpreterGenerator::generate_normal_entry(bool synchronized) {
12491249 // no synchronization necessary
12501250#ifdef ASSERT
12511251 { Label L;
1252- __ ldr_u32 (Rtemp, Address (Rmethod, Method::access_flags_offset ()));
1252+ __ ldrh (Rtemp, Address (Rmethod, Method::access_flags_offset ()));
12531253 __ tbz (Rtemp, JVM_ACC_SYNCHRONIZED_BIT, L);
12541254 __ stop (" method needs synchronization" );
12551255 __ bind (L);
0 commit comments