8141140: Zero JVM fails to initialize after JDK-8078554
Summary: Disable AllocatePrefetchDistance for Zero.
Reviewed-by: coleenp
--- a/hotspot/src/cpu/zero/vm/vm_version_zero.cpp Mon Nov 02 16:54:49 2015 +0100
+++ b/hotspot/src/cpu/zero/vm/vm_version_zero.cpp Mon Nov 02 17:18:37 2015 +0100
@@ -37,4 +37,9 @@
warning("Unaligned memory access is not available on this CPU");
FLAG_SET_DEFAULT(UseUnalignedAccesses, false);
}
+ // Disable prefetching for Zero
+ if (! FLAG_IS_DEFAULT(AllocatePrefetchDistance)) {
+ warning("Prefetching is not available for a Zero VM");
+ }
+ FLAG_SET_DEFAULT(AllocatePrefetchDistance, 0);
}