changeset 53967:000d494dc5cb lworld

[lworld] Fixed missing masking of JVM_CONSTANT_QDESC_BIT from ldc
author dsimms
date Thu, 24 Jan 2019 12:07:59 +0100
parents 4048bf087f49
children 1d216028b57b
files src/hotspot/cpu/x86/templateTable_x86.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/cpu/x86/templateTable_x86.cpp	Thu Jan 24 11:42:33 2019 +0100
+++ b/src/hotspot/cpu/x86/templateTable_x86.cpp	Thu Jan 24 12:07:59 2019 +0100
@@ -370,6 +370,7 @@
 
   // get type
   __ movzbl(rdx, Address(rax, rbx, Address::times_1, tags_offset));
+  __ andl(rdx, ~JVM_CONSTANT_QDESC_BIT);
 
   // unresolved class - get the resolved class
   __ cmpl(rdx, JVM_CONSTANT_UnresolvedClass);