8211241: Missing obj equals in TemplateTable::fast_aldc
authorrkennke
Mon, 01 Oct 2018 16:34:22 +0200
changeset 51967 933b0abb2211
parent 51966 2a2a78bd1fc3
child 51968 5bdf60cd0ed0
8211241: Missing obj equals in TemplateTable::fast_aldc Reviewed-by: dcubed, coleenp
src/hotspot/cpu/aarch64/templateTable_aarch64.cpp
src/hotspot/cpu/x86/templateTable_x86.cpp
--- a/src/hotspot/cpu/aarch64/templateTable_aarch64.cpp	Mon Oct 01 12:07:15 2018 +0200
+++ b/src/hotspot/cpu/aarch64/templateTable_aarch64.cpp	Mon Oct 01 16:34:22 2018 +0200
@@ -412,7 +412,7 @@
     // Stash null_sentinel address to get its value later
     __ movptr(rarg, (uintptr_t)Universe::the_null_sentinel_addr());
     __ ldr(tmp, Address(rarg));
-    __ cmp(result, tmp);
+    __ cmpoop(result, tmp);
     __ br(Assembler::NE, notNull);
     __ mov(result, 0);  // NULL object reference
     __ bind(notNull);
--- a/src/hotspot/cpu/x86/templateTable_x86.cpp	Mon Oct 01 12:07:15 2018 +0200
+++ b/src/hotspot/cpu/x86/templateTable_x86.cpp	Mon Oct 01 16:34:22 2018 +0200
@@ -448,7 +448,7 @@
     Label notNull;
     ExternalAddress null_sentinel((address)Universe::the_null_sentinel_addr());
     __ movptr(tmp, null_sentinel);
-    __ cmpptr(tmp, result);
+    __ cmpoop(tmp, result);
     __ jccb(Assembler::notEqual, notNull);
     __ xorptr(result, result);  // NULL object reference
     __ bind(notNull);