Relax assert in mono_arch_build_imt_trampoline. (mono/mono#18195)
authorEvgenii Stepanov <eugeni.stepanov@gmail.com>
Tue, 17 Dec 2019 00:18:53 +0000 (16:18 -0800)
committerZoltan Varga <vargaz@gmail.com>
Tue, 17 Dec 2019 00:18:53 +0000 (01:18 +0100)
commit812d4ed2a2d3dafd22a25e683689472a3d51b7eb
tree67e86156124d77f3366bd4b5edc6fe8a227f1a8b
parentcbdf096df02073c1f807c27c043ed8275e3b44fa
Relax assert in mono_arch_build_imt_trampoline. (mono/mono#18195)

This assert fails when the trampoline code size worst case is realized.

Observed on a Android device with HWASan [1] enabled, where heap
addresses have a non-zero tag in the most significant byte, and thus
require 4 instructions to materialize in emit_imm64.

[1] https://source.android.com/devices/tech/debug/hwasan

Commit migrated from https://github.com/mono/mono/commit/06673e723ec3d59b071a1b763680f252b71c5de4
src/mono/mono/mini/mini-arm64.c