8284681: compiler/c2/aarch64/TestFarJump.java fails with "RuntimeException: for CodeHeap < 250MB the far jump is expected to be encoded with a single branch instruction"

Reviewed-by: kvn
This commit is contained in:
Boris Ulasevich 2022-04-16 05:57:00 +00:00
parent 9695283458
commit 21de4e55b8

View File

@ -74,9 +74,9 @@ public class TestFarJump {
}
int dump = (int)Long.parseLong(match, 16);
int encoding = Integer.reverseBytes(dump);
if (isADRP(encoding)) {
return true;
}
// Check the first instruction only. The raw pointer can be confused with the encoded adrp instruction:
// emit_exception_handler() = far_call() + should_not_reach_here() = ADRP + ADD + BLR + DCPS1 + raw_pointer
return isADRP(encoding);
}
return false;
}