src/hotspot/cpu/aarch64/macroAssembler_aarch64.hpp
changeset 50411 0191ac1da300
parent 50110 3d98842c8677
child 50536 8434981a4137
--- a/src/hotspot/cpu/aarch64/macroAssembler_aarch64.hpp	Tue Jun 05 09:15:03 2018 -0400
+++ b/src/hotspot/cpu/aarch64/macroAssembler_aarch64.hpp	Tue Jun 05 16:12:57 2018 +0100
@@ -1020,7 +1020,7 @@
   address trampoline_call(Address entry, CodeBuffer *cbuf = NULL);
 
   static bool far_branches() {
-    return ReservedCodeCacheSize > branch_range;
+    return ReservedCodeCacheSize > branch_range || UseAOT;
   }
 
   // Jumps that can reach anywhere in the code cache.