--- old/src/hotspot/cpu/x86/templateTable_x86.cpp 2019-01-25 11:00:49.123306721 +0100 +++ new/src/hotspot/cpu/x86/templateTable_x86.cpp 2019-01-25 11:00:42.677315742 +0100 @@ -2477,7 +2477,7 @@ __ pop_ptr(rdx); const int is_value_mask = markOopDesc::always_locked_pattern; - if (EnableValhalla && UsePointerPerturbation) { + if (EnableValhalla && ACmpOnValues == 1) { Label is_null; __ testptr(rdx, rdx); __ jcc(Assembler::zero, is_null); @@ -2492,7 +2492,7 @@ __ cmpoop(rdx, rax); - if (EnableValhalla && !UsePointerPerturbation) { + if (EnableValhalla && ACmpOnValues != 1) { __ jcc(Assembler::notEqual, (cc == not_equal) ? taken : not_taken); __ testptr(rdx, rdx); __ jcc(Assembler::zero, (cc == equal) ? taken : not_taken);