8211241: Missing obj equals in TemplateTable::fast_aldc
Reviewed-by: dcubed, coleenp
--- 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);