changeset 56419:30094911fffd

8224880: AArch64: java/javac error with AllocatePrefetchDistance Reviewed-by: adinn
author aph
date Tue, 28 May 2019 09:13:11 -0400
parents 755f1c66a891
children 0422b4b5cb8e
files src/hotspot/cpu/aarch64/vm_version_aarch64.cpp
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp	Tue May 28 08:25:22 2019 -0400
+++ b/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp	Tue May 28 09:13:11 2019 -0400
@@ -129,8 +129,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))