changeset 51967:933b0abb2211

8211241: Missing obj equals in TemplateTable::fast_aldc Reviewed-by: dcubed, coleenp
author rkennke
date Mon, 01 Oct 2018 16:34:22 +0200
parents 2a2a78bd1fc3
children 5bdf60cd0ed0
files src/hotspot/cpu/aarch64/templateTable_aarch64.cpp src/hotspot/cpu/x86/templateTable_x86.cpp
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);