hotspot/src/cpu/x86/vm/interp_masm_x86.cpp
changeset 32820 ec181adbf3b1
parent 32391 01e2f5e916c7
child 33083 ffe98d5b5621
--- a/hotspot/src/cpu/x86/vm/interp_masm_x86.cpp	Fri Sep 18 07:01:23 2015 -0400
+++ b/hotspot/src/cpu/x86/vm/interp_masm_x86.cpp	Fri Sep 18 13:41:11 2015 -0700
@@ -169,6 +169,8 @@
     test_method_data_pointer(mdp, profile_continue);
 
     if (MethodData::profile_return_jsr292_only()) {
+      assert(Method::intrinsic_id_size_in_bytes() == 2, "assuming Method::_intrinsic_id is u2");
+
       // If we don't profile all invoke bytecodes we must make sure
       // it's a bytecode we indeed profile. We can't go back to the
       // begining of the ProfileData we intend to update to check its
@@ -180,7 +182,7 @@
       cmpb(Address(_bcp_register, 0), Bytecodes::_invokehandle);
       jcc(Assembler::equal, do_profile);
       get_method(tmp);
-      cmpb(Address(tmp, Method::intrinsic_id_offset_in_bytes()), vmIntrinsics::_compiledLambdaForm);
+      cmpw(Address(tmp, Method::intrinsic_id_offset_in_bytes()), vmIntrinsics::_compiledLambdaForm);
       jcc(Assembler::notEqual, profile_continue);
 
       bind(do_profile);