AArch64:
* For target hotspot_variant-server_libjvm_objs_ad_aarch64.o:
/home/buildbot/worker/jdkX-linux/build/src/hotspot/cpu/aarch64/aarch64.ad: In member function 'virtual void cmpFastLockNode::emit(CodeBuffer&, PhaseRegAlloc*) const':
/home/buildbot/worker/jdkX-linux/build/src/hotspot/cpu/aarch64/aarch64.ad:3448:85: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
__ mov(tmp, (address) (~(os::vm_page_size()-1) | markOopDesc::lock_mask_in_place));
CI history points to JDK-8221408 as the suspect. Reverting that patch makes the AArch64 build pass.
I think moving the two constants from the enum made its values denser than the address width, which blows up the warning now.