8209586: AARCH64: SymbolTable changes throw assert on aarch64
authorgziemski
Fri, 17 Aug 2018 11:56:59 -0500
changeset 51435 72c82bd05971
parent 51434 8b2310e7b741
child 51436 091c0d22e735
8209586: AARCH64: SymbolTable changes throw assert on aarch64 Summary: Cast the comparison value to match the signdeness Reviewed-by: gziemski, coleenp Contributed-by: stuart.monteigh@linaro.org
src/hotspot/share/classfile/symbolTable.cpp
--- a/src/hotspot/share/classfile/symbolTable.cpp	Fri Aug 17 09:53:52 2018 -0700
+++ b/src/hotspot/share/classfile/symbolTable.cpp	Fri Aug 17 11:56:59 2018 -0500
@@ -448,7 +448,7 @@
 #ifdef ASSERT
     assert(sym->utf8_length() == _len, "%s [%d,%d]", where, sym->utf8_length(), _len);
     for (int i = 0; i < _len; i++) {
-      assert(sym->byte_at(i) == _name[i],
+      assert(sym->byte_at(i) == (jbyte) _name[i],
              "%s [%d,%d,%d]", where, i, sym->byte_at(i), _name[i]);
     }
 #endif