changeset 6734:5e713e212064

8224880, PR3741: AArch64: java/javac error with AllocatePrefetchDistance Reviewed-by: adinn
author aph
date Tue, 28 May 2019 11:15:11 -0400
parents 6bd6d4c7940e
children 6774b8e70603
files src/cpu/aarch64/vm/vm_version_aarch64.cpp
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/aarch64/vm/vm_version_aarch64.cpp	Tue Jul 16 10:47:47 2019 +0100
+++ b/src/cpu/aarch64/vm/vm_version_aarch64.cpp	Tue May 28 11:15:11 2019 -0400
@@ -127,8 +127,11 @@
 
   int dcache_line = VM_Version::dcache_line_size();
 
+  // Limit AllocatePrefetchDistance so that it does not exceed the
+  // constraint in AllocatePrefetchDistanceConstraintFunc.
   if (FLAG_IS_DEFAULT(AllocatePrefetchDistance))
-    FLAG_SET_DEFAULT(AllocatePrefetchDistance, 3*dcache_line);
+    FLAG_SET_DEFAULT(AllocatePrefetchDistance, MIN2(512, 3*dcache_line));
+
   if (FLAG_IS_DEFAULT(AllocatePrefetchStepSize))
     FLAG_SET_DEFAULT(AllocatePrefetchStepSize, dcache_line);
   if (FLAG_IS_DEFAULT(PrefetchScanIntervalInBytes))