-
Enhancement
-
Resolution: Duplicate
-
P4
-
18
-
aarch64
-
generic
It is found that in C1_MacroAssembler::initialize_object which we can use stp to replace str.
@@ -250,13 +249,16 @@ void C1_MacroAssembler::initialize_object(Register obj, Register klass, Register
for (int i = -unroll; i < 0; i++) {
if (-i == remainder)
bind(entry_point);
- str(zr, Address(rscratch1, i * wordSize));
+ stp(zr, zr, Address(rscratch1, i * 2 * BytesPerWord));
@@ -250,13 +249,16 @@ void C1_MacroAssembler::initialize_object(Register obj, Register klass, Register
for (int i = -unroll; i < 0; i++) {
if (-i == remainder)
bind(entry_point);
- str(zr, Address(rscratch1, i * wordSize));
+ stp(zr, zr, Address(rscratch1, i * 2 * BytesPerWord));
- duplicates
-
JDK-8270947 AArch64: C1: use zero_words to initialize all objects
-
- Resolved
-
- links to
-
Review openjdk/jdk/4808