# HG changeset patch # User njian # Date 1512093408 -28800 # Fri Dec 01 09:56:48 2017 +0800 # Node ID 3ac6cd186e3524ff338d0dae474bbb555b35b090 # Parent 0a52219cfb168db8849bb8da264d8c1999fabbef 8191955: AArch64: incorrect prefetch distance causes an internal error Reviewed-by: aph diff --git a/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp b/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp --- a/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp +++ b/src/hotspot/cpu/aarch64/vm_version_aarch64.cpp @@ -148,6 +148,16 @@ PrefetchCopyIntervalInBytes = 32760; } + if (AllocatePrefetchDistance !=-1 && (AllocatePrefetchDistance & 7)) { + warning("AllocatePrefetchDistance must be multiple of 8"); + AllocatePrefetchDistance &= ~7; + } + + if (AllocatePrefetchStepSize & 7) { + warning("AllocatePrefetchStepSize must be multiple of 8"); + AllocatePrefetchStepSize &= ~7; + } + if (SoftwarePrefetchHintDistance != -1 && (SoftwarePrefetchHintDistance & 7)) { warning("SoftwarePrefetchHintDistance must be -1, or a multiple of 8");