--- a/src/hotspot/cpu/x86/interp_masm_x86.cpp Fri Jun 15 11:58:34 2018 +0530
+++ b/src/hotspot/cpu/x86/interp_masm_x86.cpp Mon Jun 11 15:28:24 2018 +0200
@@ -1432,10 +1432,10 @@
void InterpreterMacroAssembler::set_mdp_flag_at(Register mdp_in,
int flag_byte_constant) {
assert(ProfileInterpreter, "must be profiling interpreter");
- int header_offset = in_bytes(DataLayout::header_offset());
- int header_bits = DataLayout::flag_mask_to_header_mask(flag_byte_constant);
+ int header_offset = in_bytes(DataLayout::flags_offset());
+ int header_bits = flag_byte_constant;
// Set the flag
- orl(Address(mdp_in, header_offset), header_bits);
+ orb(Address(mdp_in, header_offset), header_bits);
}